Skip to content

Commit 6032287

Browse files
committed
updated header design
1 parent ec009de commit 6032287

File tree

3 files changed

+66
-24
lines changed

3 files changed

+66
-24
lines changed

source/images/logo.svg

Lines changed: 17 additions & 0 deletions
Loading

source/localizable/index.html.erb

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
<nav class="locales">
2-
<% [:en, :es].each do |locale| %>
3-
<% url = locale == :en ? '/' : "/#{locale}" %>
4-
<% css_class = "locales--link#{' -selected' if locale == I18n.locale}" %>
5-
<%= link_to locale.to_s.upcase, url, class: css_class %>
6-
<% end %>
7-
</nav>
8-
<h1 class="layout--title"><%= t('header.title') %></h1>
9-
<p class="layout--sub-title"><%= t('header.sub-title') %></p>
1+
<header class="layout--header">
2+
<nav class="locales">
3+
<% [:en, :es].each do |locale| %>
4+
<% url = locale == :en ? '/' : "/#{locale}" %>
5+
<% css_class = "locales--link#{' -selected' if locale == I18n.locale}" %>
6+
<%= link_to locale.to_s.upcase, url, class: css_class %>
7+
<% end %>
8+
</nav>
9+
<h1 class="layout--title"><%= t('header.title') %></h1>
10+
<p class="layout--sub-title"><%= t('header.sub-title') %></p>
11+
</header>
12+
1013
<section id="code-of-conduct" class="text">
1114
<%= partial 'code-of-conduct' %>
1215
</section>
16+
1317
<section id="supporters" class="supporters">
1418
<h2 class="supporters--title"><%= t('supporters.title') %></h2>
1519
<p class="supporters--sub-title"><%= t('supporters.sub-title') %></p>

source/stylesheets/style.css.scss

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,53 @@
1313
font-family: "ff-meta-serif-web-pro", "times new roman", serif;
1414
font-size: 18px;
1515
line-height: 1.4;
16-
margin: 1em auto;
17-
max-width: 900px;
18-
width: 90%;
16+
margin: 0;
17+
overflow-x: hidden;
18+
overflow-y: auto;
19+
position: relative;
20+
}
21+
22+
.layout--header {
23+
background: black;
24+
color: white;
25+
padding: 1em 1em 0;
26+
position: relative;
27+
z-index: 2;
28+
&:after {
29+
background: inherit;
30+
content: "";
31+
display: block;
32+
margin: -5% -10% 5%;
33+
padding-top: 6%;
34+
position: relative;
35+
-webkit-transform: rotate(-3deg) translateY(50%);
36+
transform: rotate(-3deg) translateY(50%);
37+
z-index: -1;
38+
}
1939
}
2040

2141
.layout--title {
2242
@extend %headline-font;
23-
color: #333;
24-
font-size: 3rem;
43+
background: inline-image("logo.svg") center top no-repeat;
44+
background-size: 9rem;
45+
font-size: 2rem;
2546
font-weight: 100;
26-
margin: 5rem 0 0;
47+
margin: 3rem 0 0;
48+
padding-top: 11rem;
2749
text-align: center;
2850
}
2951

3052
.layout--sub-title {
3153
@extend %headline-font;
32-
color: #888;
33-
font-size: 1rem;
54+
font-size: 0.75rem;
3455
letter-spacing: 1px;
35-
margin: 0.25rem 0 1rem;
56+
margin: 0.25rem 0 0;
3657
text-align: center;
3758

3859
&:before,
3960
&:after {
4061
color: #ccc;
41-
content: "  · · · ·  ";
62+
content: "  · · ·  ";
4263
@media all and (max-width: 570px) {
4364
display: none;
4465
}
@@ -65,19 +86,19 @@
6586
}
6687

6788
&.-selected {
68-
background: black;
69-
color: white;
89+
background: white;
90+
color: black;
7091
}
7192
}
7293

7394

7495
//// TEXT ////
7596

7697
.text {
77-
border: #eee double;
78-
border-width: 3px 0;
79-
margin: 3rem 0;
98+
margin: auto;
99+
max-width: 900px;
80100
padding: 2rem 6rem;
101+
width: 90%;
81102
@media all and (max-width: 570px) {
82103
padding: 2rem 0.5rem;
83104
}

0 commit comments

Comments
 (0)