Skip to content

Commit 6962b48

Browse files
committed
CTA buttons and css polish
1 parent 800209f commit 6962b48

File tree

2 files changed

+36
-7
lines changed

2 files changed

+36
-7
lines changed

site/_css/index.less

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ body.index {
2424

2525
.hero {
2626
background: @dark-color;
27-
min-height: 500px;
27+
min-height: 540px;
2828
max-height: 1000px;
2929
height: 70vh;
3030
position: relative;
@@ -122,8 +122,7 @@ body.index {
122122
.fadein-cols(3);
123123
.fadein-cols(@n) when (@n > 0) { .fadein-cols(@n - 1);
124124
.marketing-col:nth-child(@{n}) {
125-
animation: fade 1.1s 0.8s * @n ease-in-out;
126-
animation-fill-mode: both;
125+
animation: fade 1.1s 0.8s * @n ease-in-out both;
127126
}
128127
}
129128

@@ -138,6 +137,21 @@ body.index {
138137
transform: translate(0, 0);
139138
}
140139
}
140+
141+
.buttons-unit {
142+
animation: fade 1.1s 3s ease-in-out both;
143+
144+
.button {
145+
.headline-font(@size: 17px, @color: white);
146+
border: solid 1px fadeout(white, 60%);
147+
148+
&:hover, &:focus, &:active {
149+
color: @text-color;
150+
background: white;
151+
text-decoration: none;
152+
}
153+
}
154+
}
141155
}
142156

143157
section h1,
@@ -394,10 +408,16 @@ body.index {
394408
box-shadow:
395409
0 0 0 1px rgba(0, 0, 0, 0.2),
396410
0 16px 64px rgba(0, 0, 0, 0.6);
397-
margin: 3em -10px -100px;
411+
margin: 3em -10px -80px;
412+
overflow: hidden;
413+
padding-top: 45%;
414+
pointer-events: none;
415+
position: relative;
398416
transform: translateZ(0);
399417

400418
video {
419+
position: absolute;
420+
top: 0;
401421
width: 100%;
402422
}
403423
}
@@ -455,9 +475,9 @@ body.index {
455475
transition: background 0.1s ease-out, color 0.1s ease-out;
456476

457477
border: solid 1px @rhodamine-color;
458-
border-radius: 4px;
459-
padding: 0.5em 1.5em;
460-
margin: 0 16px;
478+
border-radius: 6px;
479+
padding: 0.4em 1.2em;
480+
margin: 0 0.6em;
461481
display: inline-block;
462482
text-decoration: none;
463483

site/index.html.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ var index = React.createClass({
6060
</div>
6161
</section>
6262

63+
<div className="buttons-unit">
64+
<a className="button" href="/code/">
65+
Get Started
66+
</a>
67+
<a className="button" href="/docs/">
68+
Learn More
69+
</a>
70+
</div>
71+
6372
</div>
6473
</div>
6574

0 commit comments

Comments
 (0)