Skip to content

Commit 136da1c

Browse files
clean up
1 parent 5fa33f6 commit 136da1c

File tree

1 file changed

+30
-20
lines changed

1 file changed

+30
-20
lines changed

src/css/styles.css

Lines changed: 30 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
/* =================================================================
2-
VARIABLES - Design tokens and responsive values
3-
================================================================= */
1+
/* ============================================================
2+
VARIABLES - CSS custom properties for responsive design
3+
============================================================ */
44

55
:root {
6-
/* Colors */
76
--clr-navy: #070f2b;
87
--clr-gradient-mid: #3572ef;
98
--clr-gradient-end: #3abef9;
109
--clr-linkedin: #2856c7;
1110
--clr-white: #ffffff;
1211

13-
/* Responsive values - Mobile first */
12+
/* Mobile-first responsive values */
1413
--lang-selector-top: 15px;
1514
--lang-selector-right: 15px;
1615
--lang-selector-width: 100px;
@@ -41,9 +40,9 @@
4140
}
4241
}
4342

44-
/* =================================================================
45-
BASE - Global styles
46-
================================================================= */
43+
/* ============================================================
44+
BASE
45+
============================================================ */
4746

4847
a {
4948
text-decoration: none;
@@ -54,9 +53,9 @@ body {
5453
max-width: 100vw;
5554
}
5655

57-
/* =================================================================
58-
HERO SECTION - Main landing area
59-
================================================================= */
56+
/* ============================================================
57+
HERO SECTION
58+
============================================================ */
6059

6160
.hero {
6261
background: linear-gradient(
@@ -95,7 +94,7 @@ body {
9594

9695
.hero__profile-image {
9796
display: block;
98-
margin: 0 auto;
97+
margin: 0 auto 1.5rem auto;
9998
width: 100%;
10099
max-width: 350px;
101100
border-radius: 2%;
@@ -114,11 +113,24 @@ body {
114113

115114
.hero__text {
116115
color: var(--clr-white);
116+
white-space: nowrap; /* Keep text on single line */
117117
}
118118

119-
/* =================================================================
120-
LANGUAGE SELECTOR - Dropdown component
121-
================================================================= */
119+
@media (max-width: 576px) {
120+
.hero__text {
121+
font-size: 0.95rem;
122+
}
123+
}
124+
125+
@media (max-width: 400px) {
126+
.hero__text {
127+
font-size: 0.85rem;
128+
}
129+
}
130+
131+
/* ============================================================
132+
LANGUAGE SELECTOR (BEM naming: lang-selector)
133+
============================================================ */
122134

123135
.lang-selector {
124136
position: absolute;
@@ -199,9 +211,9 @@ body {
199211
background-color: rgba(255, 255, 255, 0.25);
200212
}
201213

202-
/* =================================================================
203-
BUTTONS - LinkedIn and GitHub
204-
================================================================= */
214+
/* ============================================================
215+
BUTTONS (BEM naming: btn--linkedin, btn--github)
216+
============================================================ */
205217

206218
.btn__icon {
207219
width: var(--btn-icon-size);
@@ -210,7 +222,6 @@ body {
210222
filter: brightness(0) invert(1);
211223
}
212224

213-
/* LinkedIn button */
214225
.btn--linkedin {
215226
display: flex;
216227
align-items: center;
@@ -238,7 +249,6 @@ body {
238249
filter: brightness(0) invert(0);
239250
}
240251

241-
/* GitHub button */
242252
.btn--github {
243253
display: flex;
244254
align-items: center;

0 commit comments

Comments
 (0)