Skip to content

Commit ef4f3cd

Browse files
Style homepage
1 parent 2d3dfc6 commit ef4f3cd

3 files changed

Lines changed: 35 additions & 20 deletions

File tree

app/components/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Home = () => (
1010
</div>
1111
<h1 id="welcome">Welcome to Chronos</h1>
1212
<p>A very short short description about Chronos...</p>
13-
<Link className="get-started-btn" to="/applications">
13+
<Link className="link" to="/applications">
1414
Get Started
1515
</Link>
1616
</div>

app/stylesheets/Home.scss

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -33,24 +33,26 @@
3333
p {
3434
margin: 15px 0;
3535
}
36-
}
3736

38-
.get-started-btn {
39-
width: 175px;
40-
font-size: 145%;
41-
padding: 10px;
42-
letter-spacing: 0.5px;
43-
text-decoration: none;
44-
border: thin solid #242631;
45-
border-radius: 10px;
46-
background-color: #242631;
47-
color: #fff;
48-
display: flex;
49-
justify-content: center;
50-
align-items: center;
51-
transition: 0.2s;
52-
}
53-
54-
.get-started-btn:hover {
55-
background-color: #494fee;
37+
// Get Started Button
38+
.link {
39+
width: 175px;
40+
font-size: 145%;
41+
padding: 10px 15px;
42+
letter-spacing: 0.5px;
43+
text-decoration: none;
44+
border: thin solid $sidebarblue;
45+
border-radius: 30px;
46+
background-color: $sidebarblue;
47+
color: #fff;
48+
@include centerWithFlex();
49+
transition: 0.1s;
50+
animation: glow linear 2s infinite;
51+
52+
&:hover {
53+
background-color: $brandgold;
54+
color: #333;
55+
animation: none;
56+
}
57+
}
5658
}

app/stylesheets/constants.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ $brandgold: #fce356;
22
$sidebarblue: #24262f;
33
$headergray: #e8e8e8;
44
$lightgray: #c3c3c3;
5+
$boxshadow: 2px 2px 6px rgb(187, 187, 187);
56

67
@mixin centerWithFlex($justify: center, $direction: row) {
78
display: flex;
@@ -47,3 +48,15 @@ $lightgray: #c3c3c3;
4748
transform: rotateZ(360deg);
4849
}
4950
}
51+
52+
@keyframes glow {
53+
0% {
54+
background-color: $sidebarblue;
55+
}
56+
66% {
57+
background-color: lighten($sidebarblue, 35%);
58+
}
59+
100% {
60+
background-color: $sidebarblue;
61+
}
62+
}

0 commit comments

Comments
 (0)