-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #24 - transforma o jumbotron em uma diretiva
- Loading branch information
Showing
5 changed files
with
40 additions
and
14 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/js/components/jumbotron/directives/jumbotron.directive.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,16 @@ | ||
(function(){ | ||
'use strict'; | ||
|
||
angular.module('guest-post.jumbotron').directive('jumbotron', jumbotronDirective); | ||
|
||
function jumbotronDirective(){ | ||
var directive = { | ||
restrict: 'E', | ||
templateUrl: '/js/components/jumbotron/templates/jumbotron.template.html', | ||
scope: {}, | ||
replace: true | ||
}; | ||
return directive; | ||
} | ||
|
||
})(); |
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 @@ | ||
(function(){ | ||
'use strict'; | ||
|
||
angular.module('guest-post.jumbotron', []); | ||
GUEST.angularDependencies.push('guest-post.jumbotron'); | ||
})(); |
13 changes: 13 additions & 0 deletions
13
src/js/components/jumbotron/templates/jumbotron.template.html
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,13 @@ | ||
<header class="jumbotron"> | ||
<div class="jumbotron__content"> | ||
<h1 class="jumbotron__title">Blogs que aceitam guest post</h1> | ||
<h2 class='jumbotron__subtitle'> | ||
Mais de 150 blogs sobre assuntos variados que aceitam posts de convidados. | ||
</h2> | ||
<a href="/sobre" class="jumbotron__main-link">Conheça nossa proposta.</a></h2> | ||
<span class="input-box input-box--is-extra-large"> | ||
<input type="text" placeholder="Encontre um blog" class='input-box__input'> | ||
<i class="fa fa-search input-box__icon"></i> | ||
</span> | ||
</div> | ||
</header> |
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