Skip to content

Commit 3b705fc

Browse files
committed
Added data passage
1 parent 39799fb commit 3b705fc

File tree

3 files changed

+122
-1
lines changed

3 files changed

+122
-1
lines changed

css/pages/index/index.css

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,39 @@
4949
width: 50%;
5050
}
5151

52+
.data-container {
53+
margin-top: 8%;
54+
display: flex;
55+
justify-content: space-evenly;
56+
background-color: #062233;
57+
color:white;
58+
padding: 3% 0;
59+
font-family: "Inter";
60+
font-weight: 500;
61+
}
62+
63+
.data-field {
64+
display: flex;
65+
justify-content: center;
66+
flex-direction: column;
67+
background-color: #132d3d;
68+
border-radius: 10px;
69+
padding: 2% 0%;
70+
width: 18%;
71+
72+
text-align: center;
73+
font-size: 45px;
74+
font-weight: 700;
75+
}
76+
77+
.data-field-subtitle {
78+
font-weight: 600;
79+
font-size: 24px;
80+
color: #8e9ba3;
81+
}
82+
5283
.paragraph {
84+
color:white;
5385
font-family: "Inter";
5486
font-size: 34px;
5587
font-weight: 600;

css/pages/index/indexResponsive.css

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@
1111
padding: 14px 80px;
1212
font-size: 32px;
1313
}
14+
15+
.data-field {
16+
font-size: 42px;
17+
}
18+
19+
.data-field-subtitle {
20+
font-size: 20px;
21+
}
1422
}
1523

1624
@media only screen and (max-width: 1250px) {
@@ -34,6 +42,14 @@
3442
padding: 12px 75px;
3543
font-size: 30px;
3644
}
45+
46+
.data-field {
47+
font-size: 37px;
48+
}
49+
50+
.data-field-subtitle {
51+
font-size: 17px;
52+
}
3753
}
3854

3955
@media only screen and (max-width: 1020px) {
@@ -49,6 +65,14 @@
4965
padding: 10px 70px;
5066
font-size: 28px;
5167
}
68+
69+
.data-field {
70+
font-size: 35px;
71+
}
72+
73+
.data-field-subtitle {
74+
font-size: 15px;
75+
}
5276
}
5377

5478
@media only screen and (max-width: 940px) {
@@ -64,9 +88,49 @@
6488
padding: 8px 65px;
6589
font-size: 26px;
6690
}
91+
92+
.data-field {
93+
font-size: 32px;
94+
}
95+
96+
.data-field-subtitle {
97+
font-size: 12px;
98+
}
6799
}
68100

69101
@media only screen and (max-width: 750px) {
102+
.paragraph {
103+
font-size: 20px;
104+
}
105+
106+
.introduction-text h1 {
107+
font-size: 45px;
108+
}
109+
110+
.introduction-join-btn {
111+
padding: 6px 60px;
112+
font-size: 24px;
113+
}
114+
115+
.data-container {
116+
margin-top: 15%;
117+
flex-direction: column;
118+
}
119+
120+
.data-field {
121+
font-size: 28px;
122+
width: 70%;
123+
margin-left: auto;
124+
margin-right: auto;
125+
margin-bottom: 6px;
126+
}
127+
128+
.data-field-subtitle {
129+
font-size: 14px;
130+
}
131+
}
132+
133+
@media only screen and (max-width: 500px) {
70134
.paragraph {
71135
font-size: 18px;
72136
}
@@ -79,4 +143,12 @@
79143
padding: 6px 60px;
80144
font-size: 24px;
81145
}
146+
147+
.data-field {
148+
font-size: 26px;
149+
}
150+
151+
.data-field-subtitle {
152+
font-size: 12px;
153+
}
82154
}

index.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
</nav>
3636
</div>
3737
<!-- BODY -->
38+
<!-- INTRODUCTION -->
3839
<div class="introduction-container">
3940
<div class="introduction-text">
4041
<h1>HELP. <a style="color:#ff212d">CODE.</a> LEARN.</h1>
@@ -45,8 +46,24 @@ <h1>HELP. <a style="color:#ff212d">CODE.</a> LEARN.</h1>
4546
<img src="./assets/sample.png" alt="" style="width:85%;">
4647
</div>
4748
</div>
49+
<!-- DATA/STATS -->
50+
<div class="data-container">
51+
<div class="data-field">
52+
<p>1,200+</p>
53+
<p class="data-field-subtitle">active users¹</p>
54+
</div>
55+
<div class="data-field">
56+
<p>12,000+</p>
57+
<p class="data-field-subtitle">members</p>
58+
</div>
59+
<div class="data-field">
60+
<p>12,500+</p>
61+
<p class="data-field-subtitle">messages each week²</p>
62+
</div>
63+
</div>
64+
<p class="paragraph">&nbsp</p>
4865

49-
<!-- Hamburger Menu -->
66+
<!-- Hamburger Menu JavaScript -->
5067
<script type="text/javascript">
5168
const hamburger = document.getElementById("hamburger");
5269
const navUL = document.getElementById("nav-ul");

0 commit comments

Comments
 (0)