Skip to content

Commit

Permalink
created yellow hero area, removed full-page yellow on hp
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrignell committed Apr 28, 2018
1 parent c375b46 commit e691966
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 32 deletions.
20 changes: 20 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@
{% include nav.html %}
{% if page.layout == "home" %}
<h1 class="intro">Design <br>Principles</h1>
{% include info-block.html title="An open source collection of Design Principles and methods." description=""%}
</div>
<div class="wrapper">

{% assign authors = site.examples | map: 'author' | uniq %}
{% assign principles = site.examples | map: 'principles' | join: '- principle:' | split: '- principle:' | uniq %}
<p class="full h3 mtn">The collection contains:</p>
<div class="three-up">
<p class="h1 bold mtn mbn">{{ site.examples.size }}</p>
<p>Examples</p>
</div>
<div class="three-up">
<p class="h1 bold mtn mbn">{{ principles.size }}</p>
<p>Design Principles</p>
</div>
<div class="three-up">
<p class="h1 bold mtn mbn">{{ authors.size }}</p>
<p>Creators</p>
</div>
</div>
{% endif %}
</div>
</header>
30 changes: 3 additions & 27 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,9 @@


{% include header.html %}
<div class="wrapper">
{% include info-block.html title="This site is an open source resource created to help us understand and write Design Principles." description=""%}




</div>

<div class="wrapper">

{% assign authors = site.examples | map: 'author' | uniq %}
{% assign principles = site.examples | map: 'principles' | join: '- principle:' | split: '- principle:' | uniq %}
<p class="full h3 mtn">The collection contains:</p>
<div class="three-up">
<p class="h1 bold mtn mbn">{{ site.examples.size }}</p>
<p>Examples</p>
</div>
<div class="three-up">
<p class="h1 bold mtn mbn">{{ principles.size }}</p>
<p>Design Principles</p>
</div>
<div class="three-up">
<p class="h1 bold mtn mbn">{{ authors.size }}</p>
<p>Creators</p>
</div>
</div>

<!-- <div style="padding-top: 2em; margin-bottom: 2em; border-bottom: dashed 12px #efefef;"> -->

<!-- </div> -->
<div class="wrapper">
{% include info-block.html title="What are Design Principles?" description="Design Principles are a set of considerations that form the basis of any good product."%}

Expand Down
1 change: 0 additions & 1 deletion _sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
}
body, html {
height: 100%;
background: $primary;
}

.footer {
Expand Down
1 change: 1 addition & 0 deletions _sass/_scratch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ p.source {
header.site-header {
background: $primary;
height: auto;
margin-bottom: 2em;
}

div.page-content {
Expand Down
5 changes: 1 addition & 4 deletions _sass/_tile.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tile:hover {
background: lighten($primary, 12.5%);
background: $primary;
}
.tile a:hover, .tile-list a:hover {
color: $black;
Expand All @@ -19,9 +19,6 @@ a.full-link {
width: 100%;
line-height: inherit;
}
body.examples .tile:hover {
background: $primary;
}
.ghost {
border: dotted 8px $black;
padding-left: 1em;
Expand Down

0 comments on commit e691966

Please sign in to comment.