Skip to content

Commit 4b35fd2

Browse files
Make pangolin responsive
1 parent 5444c5b commit 4b35fd2

4 files changed

Lines changed: 45 additions & 26 deletions

File tree

app/components/Home.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ import '../stylesheets/Home.scss';
55

66
const Home = () => (
77
<div className="home">
8-
<img src={'../assets/pangolin.png'} alt="Chronos logo" />
9-
<h1 id="welcome">Welcome to Chronos!</h1>
8+
<div className="pangolin-container">
9+
<img src={'../assets/pangolin.png'} alt="Chronos logo" />
10+
</div>
11+
<h1 id="welcome">Welcome to Chronos</h1>
12+
<p>A very short short description about Chronos...</p>
1013
<Link className="get-started-btn" to="/applications">
1114
Get Started
1215
</Link>

app/stylesheets/Home.scss

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
1+
@import './constants.scss';
2+
13
.home {
24
background-color: #f4f4f4;
35
height: 100%;
46
display: flex;
57
align-items: center;
68
justify-content: flex-start;
79
flex-direction: column;
8-
}
910

10-
.home img {
11-
margin-top: 75px;
12-
width: 400px;
13-
height: auto;
14-
animation: twirl 20s infinite linear;
15-
transition: 0.3s ease-in;
16-
}
11+
.pangolin-container {
12+
margin-top: 65px;
13+
height: auto;
14+
width: 40%;
15+
max-width: 650px;
16+
17+
img {
18+
width: 100%;
19+
animation: twirl 20s infinite linear;
20+
transition: 0.3s ease-in;
21+
22+
&:hover {
23+
filter: brightness(0.9);
24+
}
25+
}
26+
}
27+
28+
h1 {
29+
font-size: 325%;
30+
letter-spacing: 2px;
31+
}
1732

18-
.home h1 {
19-
font-size: 325%;
20-
letter-spacing: 2px;
21-
margin: 0 0 15px;
33+
p {
34+
margin: 15px 0;
35+
}
2236
}
2337

2438
.get-started-btn {
@@ -40,15 +54,3 @@
4054
.get-started-btn:hover {
4155
background-color: #494fee;
4256
}
43-
44-
.home img:hover {
45-
filter: brightness(0.90);
46-
}
47-
@keyframes twirl {
48-
from {
49-
transform: rotateZ(0deg);
50-
}
51-
to {
52-
transform: rotateZ(360deg);
53-
}
54-
}

app/stylesheets/MainContainer.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
@include centerWithFlex(space-between);
77
flex-direction: column;
88

9+
.main-routes {
10+
width: 100%;
11+
height: 100%;
12+
}
13+
914
.copyright-container {
1015
@include centerWithFlex();
1116
width: 100%;

app/stylesheets/constants.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@ $headergray: #dedede;
1717
100% {
1818
background-color: rgb(170, 1, 1);
1919
}
20+
}
21+
22+
@keyframes twirl {
23+
from {
24+
transform: rotateZ(0deg);
25+
}
26+
to {
27+
transform: rotateZ(360deg);
28+
}
2029
}

0 commit comments

Comments
 (0)