-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(app): implement footer as directive
- Loading branch information
Showing
15 changed files
with
114 additions
and
95 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 |
---|---|---|
@@ -1,34 +1,27 @@ | ||
.thing-form { | ||
margin: 20px 0; | ||
margin: 20px 0; | ||
} | ||
|
||
#banner { | ||
border-bottom: none; | ||
margin-top: -20px; | ||
border-bottom: none; | ||
margin-top: -20px; | ||
} | ||
|
||
#banner h1 { | ||
font-size: 60px; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
font-size: 60px; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
} | ||
|
||
.hero-unit { | ||
position: relative; | ||
padding: 30px 15px; | ||
color: #F5F5F5; | ||
text-align: center; | ||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); | ||
background: #4393B9; | ||
} | ||
|
||
.footer { | ||
text-align: center; | ||
padding: 30px 0; | ||
margin-top: 70px; | ||
border-top: 1px solid #E5E5E5; | ||
position: relative; | ||
padding: 30px 15px; | ||
color: #F5F5F5; | ||
text-align: center; | ||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); | ||
background: #4393B9; | ||
} | ||
|
||
.navbar-text { | ||
margin-left: 15px; | ||
} | ||
margin-left: 15px; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
.thing-form { | ||
margin: 20px 0; | ||
margin: 20px 0; | ||
} | ||
|
||
#banner { | ||
border-bottom: none; | ||
margin-top: -20px; | ||
border-bottom: none; | ||
margin-top: -20px; | ||
} | ||
|
||
#banner h1 { | ||
font-size: 60px; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
font-size: 60px; | ||
line-height: 1; | ||
letter-spacing: -1px; | ||
} | ||
|
||
.hero-unit { | ||
position: relative; | ||
padding: 30px 15px; | ||
color: #F5F5F5; | ||
text-align: center; | ||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); | ||
background: #4393B9; | ||
} | ||
|
||
.footer { | ||
text-align: center; | ||
padding: 30px 0; | ||
margin-top: 70px; | ||
border-top: 1px solid #E5E5E5; | ||
position: relative; | ||
padding: 30px 15px; | ||
color: #F5F5F5; | ||
text-align: center; | ||
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1); | ||
background: #4393B9; | ||
} | ||
|
||
.navbar-text { | ||
margin-left: 15px; | ||
} | ||
} |
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,28 +1,22 @@ | ||
.thing-form | ||
margin 20px 0 | ||
margin 20px 0 | ||
|
||
#banner | ||
border-bottom none | ||
margin-top -20px | ||
border-bottom none | ||
margin-top -20px | ||
|
||
#banner h1 | ||
font-size 60px | ||
letter-spacing -1px | ||
line-height 1 | ||
font-size 60px | ||
letter-spacing -1px | ||
line-height 1 | ||
|
||
.hero-unit | ||
background #4393B9 | ||
color #F5F5F5 | ||
padding 30px 15px | ||
position relative | ||
text-align center | ||
text-shadow 0 1px 0 rgba(0, 0, 0, 0.1) | ||
|
||
.footer | ||
border-top 1px solid #E5E5E5 | ||
margin-top 70px | ||
padding 30px 0 | ||
text-align center | ||
background #4393B9 | ||
color #F5F5F5 | ||
padding 30px 15px | ||
position relative | ||
text-align center | ||
text-shadow 0 1px 0 rgba(0, 0, 0, 0.1) | ||
|
||
.navbar-text | ||
margin-left 15px | ||
margin-left 15px |
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,6 @@ | ||
footer.footer { | ||
text-align: center; | ||
padding: 30px 0; | ||
margin-top: 70px; | ||
border-top: 1px solid #E5E5E5; | ||
} |
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,6 @@ | ||
<div class="container"> | ||
<p>Angular Fullstack v<%= pkg.version %> | | ||
<a href="https://twitter.com/tyhenkel">@tyhenkel</a> | | ||
<a href="https://github.com/DaftMonk/generator-angular-fullstack/issues?state=open">Issues</a> | ||
</p> | ||
</div> |
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,7 @@ | ||
.container | ||
p | ||
| Angular Fullstack v<%= pkg.version %> | ||
= ' | ' | ||
a(href='https://twitter.com/tyhenkel') @tyhenkel | ||
= ' | ' | ||
a(href='https://github.com/DaftMonk/generator-angular-fullstack/issues?state=open') Issues |
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,6 @@ | ||
footer.footer { | ||
text-align: center; | ||
padding: 30px 0; | ||
margin-top: 70px; | ||
border-top: 1px solid #E5E5E5; | ||
} |
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,6 @@ | ||
footer.footer { | ||
text-align: center; | ||
padding: 30px 0; | ||
margin-top: 70px; | ||
border-top: 1px solid #E5E5E5; | ||
} |
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,5 @@ | ||
footer.footer | ||
border-top 1px solid #E5E5E5 | ||
margin-top 70px | ||
padding 30px 0 | ||
text-align center |
8 changes: 8 additions & 0 deletions
8
app/templates/client/components/footer/footer.directive(coffee).coffee
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,8 @@ | ||
'use strict' | ||
|
||
angular.module '<%= scriptAppName %>' | ||
.directive 'footer', -> | ||
templateUrl: 'components/footer/footer.html' | ||
restrict: 'E', | ||
link: (scope, element) -> | ||
element.addClass('footer') |
12 changes: 12 additions & 0 deletions
12
app/templates/client/components/footer/footer.directive(js).js
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 @@ | ||
'use strict'; | ||
|
||
angular.module('<%= scriptAppName %>') | ||
.directive('footer', function () { | ||
return { | ||
templateUrl: 'components/footer/footer.html', | ||
restrict: 'E', | ||
link: function (scope, element) { | ||
element.addClass('footer'); | ||
} | ||
}; | ||
}); |
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