Skip to content

Commit 60a254e

Browse files
committed
feat: implementing typography
1 parent d0ed7b1 commit 60a254e

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

starter/05-Design/index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
<meta charset="UTF-8" />
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
7+
<link rel="preconnect" href="https://fonts.googleapis.com" />
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9+
<link
10+
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
11+
rel="stylesheet"
12+
/>
813
<link rel="stylesheet" href="style.css" />
914
<title>Lisbon Chair Shop</title>
1015
</head>

starter/05-Design/style.css

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ FONT SIZE SYSTEM (px)
1616
/* GENERAL STYLES */
1717
/* ------------------------ */
1818
body {
19-
font-family: sans-serif;
19+
/* * Use 'Inter' first, if not possible use 'sans-serif' */
20+
font-family: "Inter", sans-serif;
2021
}
2122

2223
.container {
@@ -31,6 +32,9 @@ section {
3132

3233
h2 {
3334
margin-bottom: 48px;
35+
font-size: 36px;
36+
letter-spacing: -0.5px;
37+
/* 24 / 30 / 36 */
3438
}
3539

3640
.grid-3-cols {
@@ -57,10 +61,17 @@ header {
5761

5862
h1 {
5963
margin-bottom: 24px;
64+
font-size: 44px;
65+
line-height: 1.1;
66+
letter-spacing: -1px;
67+
/* 44 / 52 / 62 */
6068
}
6169

6270
.header-text {
6371
margin-bottom: 24px;
72+
font-size: 18px;
73+
line-height: 1.7;
74+
/* 18 / 20 / 24 */
6475
}
6576

6677
img {
@@ -73,9 +84,12 @@ img {
7384

7485
.features-title {
7586
margin-bottom: 16px;
87+
font-size: 20px;
7688
}
7789

7890
.features-text {
91+
font-size: 18px;
92+
line-height: 1.7;
7993
}
8094

8195
/* TESTIMONIAL */
@@ -89,11 +103,15 @@ img {
89103

90104
.testimonial-box h2 {
91105
margin-bottom: 24px;
106+
/* 20 / 24 / 30 */
107+
font-size: 24px;
92108
}
93109

94110
.testimonial-text {
95111
font-style: italic;
96112
margin-bottom: 24px;
113+
font-size: 18px;
114+
line-height: 1.7;
97115
}
98116

99117
/* CHAIRS */
@@ -103,6 +121,7 @@ img {
103121

104122
h3 {
105123
margin-bottom: 24px;
124+
font-size: 20px;
106125
}
107126

108127
.chair-details {
@@ -127,8 +146,11 @@ h3 {
127146
.chair-price {
128147
display: flex;
129148
justify-content: space-between;
149+
font-size: 20px;
130150
}
131151

132152
footer {
133153
margin-bottom: 48px;
154+
/* 12 / 14 / 16 */
155+
font-size: 14px;
134156
}

0 commit comments

Comments
 (0)