Skip to content

Commit 1288365

Browse files
张欧文张欧文
张欧文
authored and
张欧文
committed
implement images
1 parent 838a4f6 commit 1288365

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

starter/05-Design/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@
55
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77

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

starter/05-Design/style.css

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ 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+
Gray: #343a40
12+
13+
14+
*/
915
* {
1016
margin: 0;
1117
padding: 0;
@@ -16,7 +22,9 @@ FONT SIZE SYSTEM (px)
1622
/* GENERAL STYLES */
1723
/* ------------------------ */
1824
body {
19-
font-family: sans-serif;
25+
font-family: "Inter", sans-serif;
26+
color: #343a40;
27+
border-bottom: 8px solid #087f5b;
2028
}
2129

2230
.container {
@@ -31,6 +39,8 @@ section {
3139

3240
h2 {
3341
margin-bottom: 48px;
42+
font-size: 36px;
43+
letter-spacing: -0.5px;
3444
}
3545

3646
.grid-3-cols {
@@ -39,6 +49,31 @@ h2 {
3949
column-gap: 80px;
4050
}
4151

52+
.btn:link,
53+
.btn:visited {
54+
font-weight: 500;
55+
background-color: #087f5b;
56+
color: #fff;
57+
text-decoration: none;
58+
text-transform: uppercase;
59+
display: inline-block;
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: white;
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,8 +177,11 @@ 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: #52575d;
134187
}

0 commit comments

Comments
 (0)