Skip to content

Commit d5b4a41

Browse files
committed
Finished re-designing typography and colors
1 parent ad80657 commit d5b4a41

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

starter/05-Design/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +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+
<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:wght@100..900&display=swap"
11+
rel="stylesheet"
12+
/>
713

814
<link rel="stylesheet" href="style.css" />
915
<title>Lisbon Chair Shop</title>

starter/05-Design/style.css

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

9+
/*
10+
MAIN-COLOR: #087f5b
11+
GREY-COLOR: #343a40
12+
*/
13+
914
* {
1015
margin: 0;
1116
padding: 0;
@@ -16,7 +21,9 @@ FONT SIZE SYSTEM (px)
1621
/* GENERAL STYLES */
1722
/* ------------------------ */
1823
body {
19-
font-family: sans-serif;
24+
font-family: "Inter", sans-serif;
25+
color: #343a40;
26+
border-bottom: 8px solid #087f5b;
2027
}
2128

2229
.container {
@@ -31,6 +38,8 @@ section {
3138

3239
h2 {
3340
margin-bottom: 48px;
41+
font-size: 36px;
42+
letter-spacing: -0.5px;
3443
}
3544

3645
.grid-3-cols {
@@ -39,6 +48,32 @@ h2 {
3948
column-gap: 80px;
4049
}
4150

51+
.btn:link,
52+
.btn:visited {
53+
background-color: #087f5b;
54+
color: #fff;
55+
text-decoration: none;
56+
text-transform: uppercase;
57+
58+
display: inline-block;
59+
font-weight: 500;
60+
}
61+
62+
.btn:hover,
63+
.btn-active {
64+
background-color: #099268;
65+
}
66+
67+
.btn--big {
68+
font-size: 18px;
69+
padding: 16px 32px;
70+
}
71+
72+
.btn--small {
73+
font-size: 14px;
74+
padding: 8px 12px;
75+
}
76+
4277
/* ------------------------ */
4378
/* COMPONENT STYLES */
4479
/* ------------------------ */
@@ -57,10 +92,15 @@ header {
5792

5893
h1 {
5994
margin-bottom: 24px;
95+
font-size: 44px;
96+
line-height: 1.1;
97+
letter-spacing: -1px;
6098
}
6199

62100
.header-text {
63101
margin-bottom: 24px;
102+
font-size: 18px;
103+
line-height: 1.7;
64104
}
65105

66106
img {
@@ -73,13 +113,19 @@ img {
73113

74114
.features-title {
75115
margin-bottom: 16px;
116+
font-size: 20px;
76117
}
77118

78119
.features-text {
120+
font-size: 18px;
121+
line-height: 1.7;
79122
}
80123

81124
/* TESTIMONIAL */
82125
.testimonial-section {
126+
background-color: #087f5b;
127+
color: #fff;
128+
padding: 24px;
83129
}
84130

85131
.testimonial-box {
@@ -89,11 +135,14 @@ img {
89135

90136
.testimonial-box h2 {
91137
margin-bottom: 24px;
138+
font-size: 24px;
92139
}
93140

94141
.testimonial-text {
95142
font-style: italic;
96143
margin-bottom: 24px;
144+
font-size: 18px;
145+
line-height: 1.7;
97146
}
98147

99148
/* CHAIRS */
@@ -103,6 +152,7 @@ img {
103152

104153
h3 {
105154
margin-bottom: 24px;
155+
font-size: 20px;
106156
}
107157

108158
.chair-details {
@@ -127,10 +177,15 @@ h3 {
127177
.chair-price {
128178
display: flex;
129179
justify-content: space-between;
180+
font-size: 20px;
130181
}
131182

132183
footer {
133184
margin-bottom: 48px;
185+
font-size: 14px;
186+
color: #495057;
134187
}
135188

136189
/* Completed video lecture on Web Design Rules #1: Typography */
190+
191+
/* Start at Web Design Rules #3: Images and Illustrations */

0 commit comments

Comments
 (0)