Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
royalfig committed Apr 17, 2021
1 parent 745a750 commit 9137b5d
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion assets/built/critical.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/built/critical.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion default.hbs

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions home.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ into the {body} of the default.hbs template --}}
}
</style>
{{/if}}
<header class="hero">
<div class="hero__text-container">
<h1 class="hero__site-title">{{@site.title}}</h1>
<p class="hero__site-description">{{@site.description}}
</p>
<header class="hero main__outer-container">
<div class="inner-container--hero">
<div class="hero__text-container">
<h1 class="hero__site-title">{{@site.title}}</h1>
<p class="hero__site-description">{{@site.description}}
</p>
</div>
</div>
</header>

Expand Down
7 changes: 7 additions & 0 deletions src/scss/layout/_container.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@
max-width: variables.$laptop;
margin: 0 auto 1rem;

&--hero {
@extend .inner-container;
position: relative;
height: 100%;
margin-bottom: 0;
}

&--footer {
@extend .inner-container;
}
Expand Down
13 changes: 1 addition & 12 deletions src/scss/pages/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,9 @@
&__text-container {
position: absolute;
top: 50%;
left: 50%;
width: 100%;
max-width: variables.$laptop;
padding: 1rem;

@include mixins.respond-between(variables.$tablet, variables.$laptop) {
padding: 1rem 3rem 2rem;
}

@include mixins.respond-above(variables.$laptop) {
padding: 0;
}

transform: translate(-50%, -50%);
transform: translateY(-50%);
}

&__site-title {
Expand Down

0 comments on commit 9137b5d

Please sign in to comment.