Skip to content

Commit 17996fc

Browse files
committed
Refactor intro styles: update typography, adjust margins, and enhance strong element styling
1 parent 4cb8d47 commit 17996fc

File tree

2 files changed

+45
-18
lines changed

2 files changed

+45
-18
lines changed

_sass/components/_intro.scss

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,46 +14,57 @@
1414

1515
h1 {
1616
color: $black;
17-
font-size: 48px;
17+
font-size: 2.5rem;
1818
font-weight: 700;
19-
line-height: 1.1;
20-
margin-bottom: 20px;
19+
line-height: 1.2;
20+
margin-bottom: 24px;
21+
letter-spacing: -0.02em;
2122

2223
@include media-breakpoint-up(md) {
23-
font-size: 56px;
24+
font-size: 3.25rem;
2425
}
2526

2627
@include media-breakpoint-up(lg) {
27-
font-size: 64px;
28+
font-size: 3.75rem;
2829
}
2930
}
3031

3132
h2 {
32-
font-size: 1.4rem;
33-
line-height: 1.4;
34-
margin-bottom: 25px;
33+
font-size: 1.3rem;
34+
line-height: 1.5;
35+
margin-bottom: 20px;
36+
margin-top: 20px;
3537
color: $black;
3638
font-family: $font-family-heading;
37-
font-weight: 400;
39+
font-weight: 500;
3840

3941
@include media-breakpoint-up(md) {
4042
width: 90%;
41-
font-size: 1.5rem;
43+
font-size: 1.4rem;
4244
}
4345
}
4446

4547
p {
4648
font-size: 1.1rem;
4749
font-weight: 400;
48-
line-height: 1.6;
50+
line-height: 1.7;
4951
color: $steel;
50-
margin-bottom: 0;
52+
margin-bottom: 16px;
53+
54+
&:last-of-type {
55+
margin-bottom: 0;
56+
}
5157

5258
@include media-breakpoint-up(md) {
53-
width: 85%;
54-
font-size: 1.2rem;
59+
width: 90%;
60+
font-size: 1.15rem;
5561
}
5662
}
63+
64+
strong {
65+
color: $primary;
66+
font-weight: 600;
67+
}
5768
}
5869

5970
.intro-small {

_sass/pages/_page-home.scss

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,36 @@
1111
background-clip: text;
1212
font-weight: 700;
1313
letter-spacing: -0.02em;
14+
margin-bottom: 24px;
1415
}
1516

1617
.intro h2 {
1718
color: #2f2f41;
1819
font-weight: 600;
19-
margin-top: 20px;
20-
margin-bottom: 25px;
20+
margin-top: 24px;
21+
margin-bottom: 20px;
22+
line-height: 1.4;
2123
}
2224

2325
.intro p {
2426
font-size: 1.1rem;
25-
line-height: 1.6;
27+
line-height: 1.7;
2628
color: #5c5a5a;
27-
margin-bottom: 30px;
29+
margin-bottom: 16px;
30+
31+
&:last-of-type {
32+
margin-bottom: 0;
33+
}
34+
35+
@include media-breakpoint-up(md) {
36+
font-size: 1.15rem;
37+
width: 90%;
38+
}
39+
}
40+
41+
.intro strong {
42+
color: #e5261f;
43+
font-weight: 600;
2844
}
2945

3046
.strip-grey {

0 commit comments

Comments
 (0)