Skip to content

Commit 2cd5d6a

Browse files
committed
typography implemented
1 parent a9e04ab commit 2cd5d6a

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

practice/05 - Design/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
<meta charset="UTF-8"/>
55
<meta content="IE=edge" http-equiv="X-UA-Compatible"/>
66
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
7-
7+
<link rel="preconnect" href="https://fonts.googleapis.com">
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap" rel="stylesheet">
810
<link href="style.css" rel="stylesheet"/>
911
<title>Lisbon Chair Shop</title>
1012
</head>

practice/05 - Design/style.css

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ FONT SIZE SYSTEM (px)
66
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98
77
*/
88

9-
* {
9+
*,
10+
*::before,
11+
*::after {
1012
margin: 0;
1113
padding: 0;
1214
box-sizing: border-box;
@@ -16,7 +18,7 @@ FONT SIZE SYSTEM (px)
1618
/* GENERAL STYLES */
1719
/* ------------------------ */
1820
body {
19-
font-family: sans-serif;
21+
font-family: 'Inter', sans-serif;
2022
}
2123

2224
.container {
@@ -31,6 +33,9 @@ section {
3133

3234
h2 {
3335
margin-bottom: 48px;
36+
/*24 / 30 / 36*/
37+
font-size: 36px;
38+
letter-spacing: -0.5px;
3439
}
3540

3641
.grid-3-cols {
@@ -57,10 +62,15 @@ header {
5762

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

6270
.header-text {
6371
margin-bottom: 24px;
72+
font-size: 18px;
73+
line-height: 1.7;
6474
}
6575

6676
img {
@@ -73,9 +83,12 @@ img {
7383

7484
.features-title {
7585
margin-bottom: 16px;
86+
font-size: 20px;
7687
}
7788

7889
.features-text {
90+
font-size: 18px;
91+
line-height: 1.7;
7992
}
8093

8194
/* TESTIMONIAL */
@@ -89,11 +102,14 @@ img {
89102

90103
.testimonial-box h2 {
91104
margin-bottom: 24px;
105+
font-size: 24px;
92106
}
93107

94108
.testimonial-text {
95109
font-style: italic;
96110
margin-bottom: 24px;
111+
font-size: 18px;
112+
line-height: 1.7;
97113
}
98114

99115
/* CHAIRS */
@@ -103,6 +119,7 @@ img {
103119

104120
h3 {
105121
margin-bottom: 24px;
122+
font-size: 20px;
106123
}
107124

108125
.chair-details {
@@ -127,8 +144,10 @@ h3 {
127144
.chair-price {
128145
display: flex;
129146
justify-content: space-between;
147+
font-size: 20px;
130148
}
131149

132150
footer {
133151
margin-bottom: 48px;
152+
font-size: 14px;
134153
}

0 commit comments

Comments
 (0)