Skip to content

Commit 76b2b57

Browse files
committed
project
1 parent a9c66a0 commit 76b2b57

File tree

13 files changed

+466
-0
lines changed

13 files changed

+466
-0
lines changed

.editorconfig

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
# Unix-style newlines with a newline ending every file
7+
[*]
8+
end_of_line = lf
9+
insert_final_newline = true
10+
11+
# Matches multiple files with brace expansion notation
12+
# Set default charset
13+
[*.{js,css,jade}]
14+
charset = utf-8
15+
16+
[*.jade]
17+
indent_style = space
18+
indent_size = 4
19+
20+
# Indentation override for all JS under lib directory
21+
[gulpfile.js]
22+
indent_style = space
23+
indent_size = 2
24+
25+
# Tab indentation (no size specified)
26+
[Makefile]
27+
indent_style = tab
28+
29+
# Indentation override for all JS
30+
[assets/**.{js,css}]
31+
indent_style = space
32+
indent_size = 2
33+
34+
# Matches the exact files either package.json or .travis.yml
35+
[{package.json,.travis.yml}]
36+
indent_style = space
37+
indent_size = 2

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.log
2+
*.DS_Store
3+
node_modules
4+
dist

LICENSE

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
LICENSE
2+
3+
The MIT License
4+
5+
Copyright (c) 2016 Daniel Rohers Moura
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23+
THE SOFTWARE.

_includes/footer.jade

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.mastfoot
2+
.inner
3+
p
4+
| Cover template for
5+
a(href='http://getbootstrap.com') Bootstrap
6+
| , by
7+
a(href='https://twitter.com/mdo') @mdo
8+
| .

_includes/navbar.jade

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.masthead.clearfix
2+
.inner
3+
h3.masthead-brand Cover
4+
nav
5+
ul.nav.masthead-nav
6+
li
7+
a(href='/') Home
8+
li
9+
a(href='/features') Features
10+
li
11+
a(href='/contact') Contact

_layouts/default.jade

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
doctype html(lang='en')
2+
3+
head
4+
meta(charset='utf-8')
5+
meta(http-equiv='X-UA-Compatible', content='IE=edge')
6+
meta(name='viewport', content='width=device-width, initial-scale=1')
7+
// The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags
8+
meta(name='description', content='')
9+
meta(name='author', content='')
10+
11+
title Cover Template for Bootstrap
12+
13+
// Bootstrap core CSS
14+
link(href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css', rel='stylesheet')
15+
16+
// HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries
17+
//if lt IE 9
18+
script(src='https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js')
19+
script(src='https://oss.maxcdn.com/respond/1.4.2/respond.min.js')
20+
21+
block head
22+
23+
body
24+
block content
25+
26+
script(src='https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js')
27+
script(src='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js')
28+
29+
block defer

_site/contact.jade

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
extends ../_layouts/default
2+
3+
block head
4+
// Custom styles for this template
5+
link(href='/assets/stylesheets/example.css', rel='stylesheet')
6+
7+
block defer
8+
script(src='/assets/javascripts/example.js')
9+
10+
block content
11+
.site-wrapper
12+
13+
.site-wrapper-inner
14+
15+
.cover-container
16+
17+
include ../_includes/navbar
18+
19+
.inner.cover
20+
h1.cover-heading #contact
21+
p.lead
22+
| Cover is a one-page template for building simple and beautiful home pages. Download, edit the text, and add your own fullscreen background photo to make it your own.
23+
p.lead
24+
a.btn.btn-lg.btn-default(href='#') Learn more
25+
26+
include ../_includes/footer

_site/features.jade

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
extends ../_layouts/default
2+
3+
block head
4+
// Custom styles for this template
5+
link(href='/assets/stylesheets/example.css', rel='stylesheet')
6+
7+
block defer
8+
script(src='/assets/javascripts/example.js')
9+
10+
block content
11+
.site-wrapper
12+
13+
.site-wrapper-inner
14+
15+
.cover-container
16+
17+
include ../_includes/navbar
18+
19+
.inner.cover
20+
h1.cover-heading #features
21+
p.lead
22+
| Cover is a one-page template for building simple and beautiful home pages. Download, edit the text, and add your own fullscreen background photo to make it your own.
23+
p.lead
24+
a.btn.btn-lg.btn-default(href='#') Learn more
25+
26+
include ../_includes/footer

_site/index.jade

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
extends ../_layouts/default
2+
3+
block head
4+
// Custom styles for this template
5+
link(href='/assets/stylesheets/example.css', rel='stylesheet')
6+
7+
block defer
8+
script(src='/assets/javascripts/example.js')
9+
10+
block content
11+
.site-wrapper
12+
13+
.site-wrapper-inner
14+
15+
.cover-container
16+
17+
include ../_includes/navbar
18+
19+
.inner.cover
20+
h1.cover-heading #home
21+
p.lead
22+
| Cover is a one-page template for building simple and beautiful home pages. Download, edit the text, and add your own fullscreen background photo to make it your own.
23+
p.lead
24+
a.btn.btn-lg.btn-default(href='#') Learn more
25+
26+
include ../_includes/footer

assets/javascripts/example.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
;(function (window, document, undefined) {
2+
3+
'use strict';
4+
5+
var Main = (function () {
6+
7+
var _getPathname = function () {
8+
return window.location.pathname;
9+
};
10+
11+
var _isMenuActive = function (path) {
12+
return path === _getPathname();
13+
};
14+
15+
var _setMenuActive = function () {
16+
var links = document.querySelectorAll('nav a');
17+
[].forEach.call(links, function (link) {
18+
if (_isMenuActive(link.getAttribute('href'))) {
19+
link.parentElement.classList.add('active');
20+
}
21+
});
22+
}
23+
24+
return {
25+
26+
init : function () {
27+
_setMenuActive();
28+
}
29+
30+
}
31+
32+
})();
33+
34+
window.Main = Main;
35+
36+
Main.init();
37+
38+
})(window, document);

0 commit comments

Comments
 (0)