Skip to content

Commit b0522cf

Browse files
committed
Seperate header and hero
1 parent 706e0eb commit b0522cf

File tree

4 files changed

+17
-21
lines changed

4 files changed

+17
-21
lines changed

_includes/header.html

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,10 @@
22
<div class="w-80 center flex justify-between items-center">
33
<h1 class="mv0 normal f3 lh-copy black-90">Feather <span class="f5 black-60">v{{ site.data.package.version }}</span></h1>
44

5-
<ul class="list mv0 pl0 flex dn">
5+
<ul class="list mv0 pl0 flex">
66
<li class="dn dib-ns"><a class="no-underline color-inherit dim" href="https://twitter.com/intent/tweet?text=Feather%20-%20Simply%20beautiful%20open%20source%20icons%20by%20%40colebemis%20feather.netlify.com" target="_blank">Tweet</a></li>
77
<li class="dn dib-ns ml4"><a class="no-underline color-inherit dim" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=G6CPFZ6PQRZW8&lc=US&item_name=Feather&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted" target="_blank">Donate</a></li>
88
<li class="ml4"><a class="no-underline color-inherit dim" href="https://github.com/colebemis/feather" target="_blank">GitHub</a></li>
99
</ul>
1010
</div>
1111
</header>
12-
13-
<div class="flex flex-column items-center w-80 mw8 pt5 pt6-ns center">
14-
<h2 class="mt0 mb4 f2 fw3 tc lh-title black-90">Simply beautiful open source icons</h2>
15-
16-
<a
17-
class="button white bg-accent br2"
18-
href="feather-{{ site.data.package.version }}.zip"
19-
download
20-
onclick="ga('send', 'event', 'download', 'click', 'all');">
21-
Download
22-
</a>
23-
</div>

_includes/hero.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<div class="flex flex-column items-center w-80 mw8 pt5 pt6-ns center">
2+
<h2 class="mt0 mb4 f2 fw3 tc lh-title black-90">Simply beautiful open source icons</h2>
3+
<a
4+
class="button white bg-accent bg-animate hover-bg-accent-darker br2"
5+
href="feather-{{ site.data.package.version }}.zip"
6+
download
7+
onclick="ga('send', 'event', 'download', 'click', 'all');">
8+
Download
9+
</a>
10+
</div>

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
<body class="ma0 rubik font-smoothing black-60 bg-white">
3535

3636
{% include header.html %}
37+
{% include hero.html %}
3738
{% include icons.html %}
3839
{% include footer.html links=page.links %}
3940

style.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
:root {
22
--accent: #4353FF;
3-
}
4-
5-
.accent {
6-
color: var(--accent);
3+
--accent-darker: #3E4DED;
74
}
85

96
.bg-accent {
107
background-color: var(--accent);
118
}
129

10+
.hover-bg-accent-darker:hover {
11+
background-color: var(--accent-darker);
12+
}
13+
1314
.rubik {
1415
font-family: "Rubik", sans-serif;
1516
}
@@ -28,10 +29,6 @@
2829
text-decoration: none;
2930
}
3031

31-
.button-outline {
32-
box-shadow: inset 0 0 0 1px currentColor;
33-
}
34-
3532
.lh-none {
3633
line-height: 0;
3734
}

0 commit comments

Comments
 (0)