Skip to content

Commit 460658f

Browse files
committed
feat: Implementing Typography
1 parent 10de6bc commit 460658f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

starter/05-Design/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4+
<link rel="preconnect" href="https://fonts.googleapis.com" />
45
<meta charset="UTF-8" />
56
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
67
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
78

9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10+
<link
11+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
12+
rel="stylesheet"
13+
/>
14+
815
<link rel="stylesheet" href="style.css" />
916
<title>Lisbon Chair Shop</title>
1017
</head>

starter/05-Design/style.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ FONT SIZE SYSTEM (px)
1616
/* GENERAL STYLES */
1717
/* ------------------------ */
1818
body {
19-
font-family: sans-serif;
19+
font-family: "Inter", sans-serif;
2020
}
2121

2222
.container {
@@ -31,6 +31,8 @@ section {
3131

3232
h2 {
3333
margin-bottom: 48px;
34+
font-size: 36px;
35+
letter-spacing: -0.5px;
3436
}
3537

3638
.grid-3-cols {
@@ -57,10 +59,15 @@ header {
5759

5860
h1 {
5961
margin-bottom: 24px;
62+
font-size: 44px;
63+
line-height: 1.1;
64+
letter-spacing: -1px;
6065
}
6166

6267
.header-text {
6368
margin-bottom: 24px;
69+
font-size: 18px;
70+
line-height: 1.7;
6471
}
6572

6673
img {
@@ -73,9 +80,12 @@ img {
7380

7481
.features-title {
7582
margin-bottom: 16px;
83+
font-size: 20px;
7684
}
7785

7886
.features-text {
87+
font-size: 18px;
88+
line-height: 1.7;
7989
}
8090

8191
/* TESTIMONIAL */
@@ -89,11 +99,14 @@ img {
8999

90100
.testimonial-box h2 {
91101
margin-bottom: 24px;
102+
font-size: 24px;
92103
}
93104

94105
.testimonial-text {
95106
font-style: italic;
96107
margin-bottom: 24px;
108+
font-size: 18px;
109+
line-height: 1.7;
97110
}
98111

99112
/* CHAIRS */
@@ -103,6 +116,7 @@ img {
103116

104117
h3 {
105118
margin-bottom: 24px;
119+
font-size: 20px;
106120
}
107121

108122
.chair-details {
@@ -127,8 +141,10 @@ h3 {
127141
.chair-price {
128142
display: flex;
129143
justify-content: space-between;
144+
font-size: 20px;
130145
}
131146

132147
footer {
133148
margin-bottom: 48px;
149+
font-size: 14px;
134150
}

0 commit comments

Comments
 (0)