-
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.
Merge pull request #32 from bixgomez/9-10-11--header-elements--03
9 10 11 header elements 03
- Loading branch information
Showing
64 changed files
with
508 additions
and
72 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
18 changes: 18 additions & 0 deletions
18
design-library/source/_patterns/01-atoms/08-logo/_logo.scss
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,18 @@ | ||
.logo--wrapper { | ||
display: block; | ||
padding: 0; | ||
margin: 0; | ||
width: 10em; | ||
height: 10em; | ||
} | ||
|
||
.logo--link { | ||
display: block; | ||
padding: 0; | ||
margin: 0; | ||
width: inherit; | ||
height: inherit; | ||
background-size: contain; | ||
background-repeat: no-repeat; | ||
text-indent: -9999px; | ||
} |
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 @@ | ||
{ | ||
"image_url": "/images/nerdstein_11.png", | ||
"image_alt": "Nerdstein Logo", | ||
"image_link": "#" | ||
} |
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 @@ | ||
# Atom: Logo | ||
|
||
*Belongs to* | ||
|
||
* Organism: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="logo--wrapper"> | ||
<a | ||
href="{{ image_link }}" | ||
class="logo--link" | ||
style="background-image: url({{ image_url }})"> | ||
{{ image_alt }} | ||
</a> | ||
</div> |
25 changes: 25 additions & 0 deletions
25
design-library/source/_patterns/01-atoms/09-social-icon/_social-icon.scss
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,25 @@ | ||
li.social_media--item { | ||
display: inline-block; | ||
padding: 0; | ||
margin: 0; | ||
height: 2em; | ||
width: 2em; | ||
} | ||
|
||
a.social_media--icon { | ||
display: block; | ||
text-indent: -9999px; | ||
height: inherit; | ||
width: inherit; | ||
background-repeat: no-repeat; | ||
background-size: contain; | ||
&.Twitter { | ||
background-image: url('../images/social_media_icons/social_twitter.png'); | ||
} | ||
&.Facebook { | ||
background-image: url('../images/social_media_icons/social_facebook.png'); | ||
} | ||
&.LinkedIn { | ||
background-image: url('../images/social_media_icons/social_linkedin.png'); | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
design-library/source/_patterns/01-atoms/09-social-icon/social-icon.json
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 @@ | ||
{ | ||
"name":"Twitter", | ||
"message":"Follow us on Twitter", | ||
"image":"/images/social_media_icons/social_twitter.png", | ||
"link":"http://www.twitter.com" | ||
} |
5 changes: 5 additions & 0 deletions
5
design-library/source/_patterns/01-atoms/09-social-icon/social-icon.md
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 @@ | ||
# Atom: Social Icon | ||
|
||
*Belongs to* | ||
|
||
* Molecule: Social Icons |
3 changes: 3 additions & 0 deletions
3
design-library/source/_patterns/01-atoms/09-social-icon/social-icon.twig
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,3 @@ | ||
<li class="social_media--item"> | ||
<a href="{{ link }}" title="{{ message }}" class="social_media--icon {{ name }}">{{ message }}</a> | ||
</li> |
32 changes: 32 additions & 0 deletions
32
design-library/source/_patterns/02-molecules/04-social-icons/_social-icons.scss
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,32 @@ | ||
ul.social_media--list { | ||
display: block; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
li.social_media--item { | ||
display: inline-block; | ||
padding: 0; | ||
margin: 0; | ||
height: 2em; | ||
width: 2em; | ||
} | ||
|
||
a.social_media--icon { | ||
display: block; | ||
text-indent: -9999px; | ||
height: inherit; | ||
width: inherit; | ||
background-repeat: no-repeat; | ||
background-size: contain; | ||
&.Twitter { | ||
background-image: url('../images/social_media_icons/social_twitter.png'); | ||
} | ||
&.Facebook { | ||
background-image: url('../images/social_media_icons/social_facebook.png'); | ||
} | ||
&.LinkedIn { | ||
background-image: url('../images/social_media_icons/social_linkedin.png'); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
design-library/source/_patterns/02-molecules/04-social-icons/social-icons.json
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,22 @@ | ||
{ | ||
"social_media": [ | ||
{ | ||
"name":"Twitter", | ||
"message":"Follow us on Twitter", | ||
"image":"/images/social_media_icons/social_twitter.png", | ||
"link":"http://www.twitter.com" | ||
}, | ||
{ | ||
"name":"Facebook", | ||
"message":"Like us on Facebook", | ||
"image":"/images/social_media_icons/social_facebook.png", | ||
"link":"http://www.facebook.com" | ||
}, | ||
{ | ||
"name":"LinkedIn", | ||
"message":"Follow us on LinkedIn", | ||
"image":"/images/social_media_icons/social_linkedin.png", | ||
"link":"http://www.linkedIn.com" | ||
} | ||
] | ||
} |
5 changes: 5 additions & 0 deletions
5
design-library/source/_patterns/02-molecules/04-social-icons/social-icons.md
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 @@ | ||
# Atom: Social Icons | ||
|
||
*Belongs to* | ||
|
||
* Organism: Header |
10 changes: 10 additions & 0 deletions
10
design-library/source/_patterns/02-molecules/04-social-icons/social-icons.twig
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 @@ | ||
<ul class="social_media--list"> | ||
{% for social_media__item in social_media %} | ||
{% include "@atoms/social-icon.twig" with { | ||
"name":social_media__item.name, | ||
"message":social_media__item.message, | ||
"image":social_media__item.image, | ||
"link":social_media__item.link | ||
} %} | ||
{% endfor %} | ||
</ul> |
40 changes: 40 additions & 0 deletions
40
design-library/source/_patterns/03-organisms/02-header/_header.scss
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,40 @@ | ||
#site-header { | ||
background-color: #eee; | ||
border: 0px solid #aaa; | ||
padding: 1.5vw; | ||
display: grid; | ||
grid-template-columns: repeat(6, 1fr); | ||
grid-gap: 1em; | ||
grid-template-areas: | ||
"a a a b b b"; | ||
grid-template-rows: 1fr; | ||
|
||
> .grid-cell { | ||
border: 0px solid #aaa; | ||
padding: 0em; | ||
display: flex; | ||
align-items: center; | ||
} | ||
} | ||
|
||
.logo--wrapper { | ||
width: 23vw; | ||
height: 10vw; | ||
} | ||
|
||
.grid-cell--logo { | ||
grid-area: a; | ||
justify-content: left; | ||
} | ||
|
||
.grid-cell--social-icons { | ||
grid-area: b; | ||
justify-content: right; | ||
.social_media--list { | ||
margin-left: auto; | ||
.social_media--item { | ||
height: 5vw; | ||
width: 5vw; | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
design-library/source/_patterns/03-organisms/02-header/header.json
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,25 @@ | ||
{ | ||
"image_url": "/images/nerdstein_11.png", | ||
"image_alt": "Nerdstein Logo", | ||
"image_link": "#", | ||
"social_media": [ | ||
{ | ||
"name":"Twitter", | ||
"message":"Follow us on Twitter", | ||
"image":"/images/social_media_icons/social_twitter.png", | ||
"link":"http://www.twitter.com" | ||
}, | ||
{ | ||
"name":"Facebook", | ||
"message":"Like us on Facebook", | ||
"image":"/images/social_media_icons/social_facebook.png", | ||
"link":"http://www.facebook.com" | ||
}, | ||
{ | ||
"name":"LinkedIn", | ||
"message":"Follow us on LinkedIn", | ||
"image":"/images/social_media_icons/social_linkedin.png", | ||
"link":"http://www.linkedIn.com" | ||
} | ||
] | ||
} |
6 changes: 6 additions & 0 deletions
6
design-library/source/_patterns/03-organisms/02-header/header.md
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 @@ | ||
# Organism: Site Header | ||
|
||
*Depends on* | ||
|
||
* Atom: Logo | ||
* Molecule: Social Icons |
14 changes: 14 additions & 0 deletions
14
design-library/source/_patterns/03-organisms/02-header/header.twig
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,14 @@ | ||
<header id="site-header" class="grid"> | ||
<div class="grid-cell grid-cell--logo"> | ||
{% include "@atoms/logo.twig" with { | ||
"image_url":image_url, | ||
"image_alt":image_alt, | ||
"image_link":image_link | ||
} %} | ||
</div> | ||
<div class="grid-cell grid-cell--social-icons"> | ||
{% include "@molecules/social-icons.twig" with { | ||
"social_media":social_media | ||
} %} | ||
</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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.