-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b37aa0c
commit 9a948be
Showing
23 changed files
with
346 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Configuration. | ||
* | ||
* Project Configuration for gulp tasks. | ||
* | ||
* In paths you can add <<glob or array of globs>>. Edit the variables as per your project requirements. | ||
*/ | ||
|
||
module.exports = { | ||
viewSrc: './views/**/*.pug', | ||
viewDst: './', | ||
styleSrc: './css/style.scss', | ||
styleDst: './', | ||
outputStyle: 'compressed', | ||
viewWatchFiles: './views/**/*.pug', | ||
styleWatchFiles: './css/**/*.scss', | ||
browserAutoOpen: false, | ||
injectChanges: true | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@mixin disp { | ||
display: table; | ||
width: 100%; | ||
margin: 0 auto; | ||
} | ||
|
||
// @mixin disp_prpty { | ||
// display: table; | ||
// width: 100%; | ||
// margin: 0 auto; | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
footer.mb { | ||
@include disp; // scss mixin | ||
padding: 5rem 5rem 5rem 0; | ||
background: #f3edec; | ||
box-shadow: 0 10px 50px rgba(191, 191, 191, 0.35); | ||
} | ||
|
||
.mb p { | ||
font-size: 1.5rem; | ||
max-width: 120rem; | ||
/* text-align: left; */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.steps { | ||
margin: 2.5rem 0; | ||
} | ||
.step { | ||
display: table; | ||
width: 100%; | ||
margin: 0 auto; | ||
text-align: center; | ||
padding: 2rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.todo { | ||
display: table; | ||
width: 100%; | ||
/* background: #f3edec; */ | ||
margin: 3rem auto 0; | ||
padding: 1rem; | ||
max-width: 75rem; | ||
box-shadow: 0 10px 50px rgba(191, 191, 191, 0.35); | ||
} | ||
|
||
code { | ||
font-size: 1.5rem; | ||
line-height: 1.45; | ||
text-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,35 @@ | ||
.top { | ||
display: table; | ||
width: 100%; | ||
margin: 0 auto; | ||
@include disp; // scss mixin for display properties | ||
|
||
background: tomato; | ||
padding: 5rem; | ||
text-align: center; | ||
min-height: 60vh; | ||
background: #ff416c; /* fallback for old browsers */ | ||
background: -webkit-linear-gradient(to right, #ff4b2b, #ff416c); /* Chrome 10-25, Safari 5.1-6 */ | ||
background: linear-gradient( | ||
to right, | ||
#ff4b2b, | ||
#ff416c | ||
); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ | ||
} | ||
background: #ff416c; | ||
background: linear-gradient(to right, #ff4b2b, #ff416c); | ||
|
||
.top_inner { | ||
display: table-cell; | ||
vertical-align: middle; | ||
} | ||
&_inner { | ||
display: table-cell; | ||
vertical-align: middle; | ||
} | ||
|
||
.top h1 { | ||
display: table; | ||
width: 100%; | ||
vertical-align: middle; | ||
font-size: 4rem; | ||
color: white; | ||
} | ||
h1 { | ||
@include disp; // scss mixin for display | ||
vertical-align: middle; | ||
color: white; | ||
font-size: 4rem; | ||
|
||
.top h1 > span { | ||
display: table; | ||
width: 100%; | ||
margin: 0 auto 0.5rem; | ||
} | ||
.emoji { | ||
@include disp; | ||
margin: 0 auto 0.5rem; | ||
} | ||
} | ||
|
||
.top p { | ||
display: table; | ||
width: 100%; | ||
vertical-align: middle; | ||
font-size: 1.6rem; | ||
color: white; | ||
line-height: 1.4; | ||
p { | ||
@include disp; | ||
vertical-align: middle; | ||
color: white; | ||
font-size: 1.6rem; | ||
line-height: 1.4; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Tip 1</title> | ||
<meta name="description" content="This is description."> | ||
<link rel="stylesheet" href="style.css"> | ||
<link href="https://fonts.googleapis.com/css?family=Quando" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="main"></div> | ||
</body> | ||
</html> | ||
<div class="top"> | ||
<div class="top_inner"> | ||
<h1><span class="emoji">🎯</span><span>Tip 1</span></h1> | ||
<p>This is description.</p> | ||
</div> | ||
</div> | ||
<div class="steps"> | ||
<div class="step"> | ||
<h2>#1: Install NodeJS & NPM</h2> | ||
<p> | ||
BrowserSync is an NPM package, and it needs Node.js to be installed. If you’ve already installed it earlier, just check through | ||
the following commands or download and install it from<a href="https://nodejs.org/en/download/">here</a>. | ||
</p> | ||
<div class="todo"> | ||
<script src="https://gist.github.com/MaedahBatool/913b0ef676873c1598ad3fd08e27567b.js?file=1.sh"></script> | ||
</div> | ||
</div> | ||
<div class="step"> | ||
<h2>#2: Install BrowserSync</h2> | ||
<p>Next, you’ll install BrowserSync globally by typing the following commands in your terminal.</p> | ||
<div class="todo"> | ||
<script src="https://gist.github.com/MaedahBatool/913b0ef676873c1598ad3fd08e27567b.js?file=2.sh"></script> | ||
</div> | ||
</div> | ||
<div class="step"> | ||
<h2>#3: Start Running BrowserSync</h2> | ||
<p> | ||
BrowserSync creates a server for static websites and can be used as a proxy for dynamic sites. Therefore, it defines separate | ||
commands for each of these. | ||
</p> | ||
<div class="todo"> | ||
<script src="https://gist.github.com/MaedahBatool/913b0ef676873c1598ad3fd08e27567b.js?file=3.sh"></script> | ||
</div> | ||
</div> | ||
<div class="step"> | ||
<h2>#4: Tunneling</h2> | ||
<p> | ||
One of the best things which I like about BrowserSync is that you can share a local development site with your teammates | ||
over the internet right from your own computer. This is its tunnel option comes into play. Each time you start BrowserSync, | ||
just enter the following command: | ||
</p> | ||
<div class="todo"> | ||
<script src="https://gist.github.com/MaedahBatool/913b0ef676873c1598ad3fd08e27567b.js?file=4.sh"></script> | ||
</div> | ||
</div> | ||
</div> | ||
<footer class="mb"> | ||
<p>© 2018 — A project by<a href="https://maedahbatool.com/">Maedah Batool</a> | Say 👋on<a href="https://twitter.com/MaedahBatool">Twitter</a></p> | ||
</footer> |
Oops, something went wrong.