Skip to content

Commit 9fbab0c

Browse files
张欧文张欧文
张欧文
authored and
张欧文
committed
implement icons
1 parent 1288365 commit 9fbab0c

File tree

3 files changed

+224
-0
lines changed

3 files changed

+224
-0
lines changed

starter/.DS_Store

0 Bytes
Binary file not shown.

starter/05-Design/index.html

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@ <h1>We design and build better chairs, for a better life</h1>
3535
<h2>What makes our chairs special</h2>
3636
<div class="grid-3-cols">
3737
<div>
38+
<svg
39+
xmlns="http://www.w3.org/2000/svg"
40+
fill="none"
41+
viewBox="0 0 24 24"
42+
stroke-width="1.5"
43+
stroke="currentColor"
44+
class="features-icon"
45+
>
46+
<path
47+
stroke-linecap="round"
48+
stroke-linejoin="round"
49+
d="M9.75 3.104v5.714a2.25 2.25 0 01-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 014.5 0m0 0v5.714c0 .597.237 1.17.659 1.591L19.8 15.3M14.25 3.104c.251.023.501.05.75.082M19.8 15.3l-1.57.393A9.065 9.065 0 0112 15a9.065 9.065 0 00-6.23-.693L5 14.5m14.8.8l1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0112 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"
50+
/>
51+
</svg>
52+
3853
<p class="features-title"><strong>Science meets design</strong></p>
3954
<p class="features-text">
4055
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Natus
@@ -43,6 +58,21 @@ <h2>What makes our chairs special</h2>
4358
</div>
4459

4560
<div>
61+
<svg
62+
xmlns="http://www.w3.org/2000/svg"
63+
fill="none"
64+
viewBox="0 0 24 24"
65+
stroke-width="1.5"
66+
stroke="currentColor"
67+
class="features-icon"
68+
>
69+
<path
70+
stroke-linecap="round"
71+
stroke-linejoin="round"
72+
d="M15.182 15.182a4.5 4.5 0 01-6.364 0M21 12a9 9 0 11-18 0 9 9 0 0118 0zM9.75 9.75c0 .414-.168.75-.375.75S9 10.164 9 9.75 9.168 9 9.375 9s.375.336.375.75zm-.375 0h.008v.015h-.008V9.75zm5.625 0c0 .414-.168.75-.375.75s-.375-.336-.375-.75.168-.75.375-.75.375.336.375.75zm-.375 0h.008v.015h-.008V9.75z"
73+
/>
74+
</svg>
75+
4676
<p class="features-title">
4777
<strong>Maximal comfort</strong>
4878
</p>
@@ -53,6 +83,21 @@ <h2>What makes our chairs special</h2>
5383
</div>
5484

5585
<div>
86+
<svg
87+
xmlns="http://www.w3.org/2000/svg"
88+
fill="none"
89+
viewBox="0 0 24 24"
90+
stroke-width="1.5"
91+
stroke="currentColor"
92+
class="features-icon"
93+
>
94+
<path
95+
stroke-linecap="round"
96+
stroke-linejoin="round"
97+
d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"
98+
/>
99+
</svg>
100+
56101
<p class="features-title">
57102
<strong>Ethical and sustainable</strong>
58103
</p>
@@ -88,16 +133,76 @@ <h2>Our bestselling chairs</h2>
88133
<h3>The Laid Back</h3>
89134
<ul class="chair-details">
90135
<li>
136+
<svg
137+
xmlns="http://www.w3.org/2000/svg"
138+
fill="none"
139+
viewBox="0 0 24 24"
140+
stroke-width="1.5"
141+
stroke="currentColor"
142+
class="chair-icon"
143+
>
144+
<path
145+
stroke-linecap="round"
146+
stroke-linejoin="round"
147+
d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"
148+
/>
149+
</svg>
150+
91151
<!-- Span is a generic INLINE text element, it doesn't have any meaning. It's like a div element, but inline -->
92152
<span>Leisure and relaxing</span>
93153
</li>
94154
<li>
155+
<svg
156+
xmlns="http://www.w3.org/2000/svg"
157+
fill="none"
158+
viewBox="0 0 24 24"
159+
stroke-width="1.5"
160+
stroke="currentColor"
161+
class="chair-icon"
162+
>
163+
<path
164+
stroke-linecap="round"
165+
stroke-linejoin="round"
166+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
167+
/>
168+
</svg>
169+
95170
<span>Comfortable for 4h</span>
96171
</li>
97172
<li>
173+
<svg
174+
xmlns="http://www.w3.org/2000/svg"
175+
fill="none"
176+
viewBox="0 0 24 24"
177+
stroke-width="1.5"
178+
stroke="currentColor"
179+
class="chair-icon"
180+
>
181+
<path
182+
stroke-linecap="round"
183+
stroke-linejoin="round"
184+
d="M12.75 3.03v.568c0 .334.148.65.405.864l1.068.89c.442.369.535 1.01.216 1.49l-.51.766a2.25 2.25 0 01-1.161.886l-.143.048a1.107 1.107 0 00-.57 1.664c.369.555.169 1.307-.427 1.605L9 13.125l.423 1.059a.956.956 0 01-1.652.928l-.679-.906a1.125 1.125 0 00-1.906.172L4.5 15.75l-.612.153M12.75 3.031a9 9 0 00-8.862 12.872M12.75 3.031a9 9 0 016.69 14.036m0 0l-.177-.529A2.25 2.25 0 0017.128 15H16.5l-.324-.324a1.453 1.453 0 00-2.328.377l-.036.073a1.586 1.586 0 01-.982.816l-.99.282c-.55.157-.894.702-.8 1.267l.073.438c.08.474.49.821.97.821.846 0 1.598.542 1.865 1.345l.215.643m5.276-3.67a9.012 9.012 0 01-5.276 3.67m0 0a9 9 0 01-10.275-4.835M15.75 9c0 .896-.393 1.7-1.016 2.25"
185+
/>
186+
</svg>
187+
98188
<span>Vegan leather</span>
99189
</li>
100190
<li>
191+
<svg
192+
xmlns="http://www.w3.org/2000/svg"
193+
fill="none"
194+
viewBox="0 0 24 24"
195+
stroke-width="1.5"
196+
stroke="currentColor"
197+
class="chair-icon"
198+
>
199+
<path
200+
stroke-linecap="round"
201+
stroke-linejoin="round"
202+
d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
203+
/>
204+
</svg>
205+
101206
<span>Weighs 16 kg</span>
102207
</li>
103208
</ul>
@@ -114,15 +219,71 @@ <h3>The Laid Back</h3>
114219
<h3>The Worker Bee</h3>
115220
<ul class="chair-details">
116221
<li>
222+
<svg
223+
xmlns="http://www.w3.org/2000/svg"
224+
fill="none"
225+
viewBox="0 0 24 24"
226+
stroke-width="1.5"
227+
stroke="currentColor"
228+
class="chair-icon"
229+
>
230+
<path
231+
stroke-linecap="round"
232+
stroke-linejoin="round"
233+
d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"
234+
/>
235+
</svg>
117236
<span>Work</span>
118237
</li>
119238
<li>
239+
<svg
240+
xmlns="http://www.w3.org/2000/svg"
241+
fill="none"
242+
viewBox="0 0 24 24"
243+
stroke-width="1.5"
244+
stroke="currentColor"
245+
class="chair-icon"
246+
>
247+
<path
248+
stroke-linecap="round"
249+
stroke-linejoin="round"
250+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
251+
/>
252+
</svg>
120253
<span>Comfortable for 8h</span>
121254
</li>
122255
<li>
256+
<svg
257+
xmlns="http://www.w3.org/2000/svg"
258+
fill="none"
259+
viewBox="0 0 24 24"
260+
stroke-width="1.5"
261+
stroke="currentColor"
262+
class="chair-icon"
263+
>
264+
<path
265+
stroke-linecap="round"
266+
stroke-linejoin="round"
267+
d="M12.75 3.03v.568c0 .334.148.65.405.864l1.068.89c.442.369.535 1.01.216 1.49l-.51.766a2.25 2.25 0 01-1.161.886l-.143.048a1.107 1.107 0 00-.57 1.664c.369.555.169 1.307-.427 1.605L9 13.125l.423 1.059a.956.956 0 01-1.652.928l-.679-.906a1.125 1.125 0 00-1.906.172L4.5 15.75l-.612.153M12.75 3.031a9 9 0 00-8.862 12.872M12.75 3.031a9 9 0 016.69 14.036m0 0l-.177-.529A2.25 2.25 0 0017.128 15H16.5l-.324-.324a1.453 1.453 0 00-2.328.377l-.036.073a1.586 1.586 0 01-.982.816l-.99.282c-.55.157-.894.702-.8 1.267l.073.438c.08.474.49.821.97.821.846 0 1.598.542 1.865 1.345l.215.643m5.276-3.67a9.012 9.012 0 01-5.276 3.67m0 0a9 9 0 01-10.275-4.835M15.75 9c0 .896-.393 1.7-1.016 2.25"
268+
/>
269+
</svg>
123270
<span>Vegan leather</span>
124271
</li>
125272
<li>
273+
<svg
274+
xmlns="http://www.w3.org/2000/svg"
275+
fill="none"
276+
viewBox="0 0 24 24"
277+
stroke-width="1.5"
278+
stroke="currentColor"
279+
class="chair-icon"
280+
>
281+
<path
282+
stroke-linecap="round"
283+
stroke-linejoin="round"
284+
d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
285+
/>
286+
</svg>
126287
<span>Weighs 22 kg</span>
127288
</li>
128289
</ul>
@@ -139,15 +300,71 @@ <h3>The Worker Bee</h3>
139300
<h3>The Chair 4/2</h3>
140301
<ul class="chair-details">
141302
<li>
303+
<svg
304+
xmlns="http://www.w3.org/2000/svg"
305+
fill="none"
306+
viewBox="0 0 24 24"
307+
stroke-width="1.5"
308+
stroke="currentColor"
309+
class="chair-icon"
310+
>
311+
<path
312+
stroke-linecap="round"
313+
stroke-linejoin="round"
314+
d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.894 20.567L16.5 21.75l-.394-1.183a2.25 2.25 0 00-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 001.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 001.423 1.423l1.183.394-1.183.394a2.25 2.25 0 00-1.423 1.423z"
315+
/>
316+
</svg>
142317
<span>Leisure and relaxing</span>
143318
</li>
144319
<li>
320+
<svg
321+
xmlns="http://www.w3.org/2000/svg"
322+
fill="none"
323+
viewBox="0 0 24 24"
324+
stroke-width="1.5"
325+
stroke="currentColor"
326+
class="chair-icon"
327+
>
328+
<path
329+
stroke-linecap="round"
330+
stroke-linejoin="round"
331+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
332+
/>
333+
</svg>
145334
<span>Comfortable all day!</span>
146335
</li>
147336
<li>
337+
<svg
338+
xmlns="http://www.w3.org/2000/svg"
339+
fill="none"
340+
viewBox="0 0 24 24"
341+
stroke-width="1.5"
342+
stroke="currentColor"
343+
class="chair-icon"
344+
>
345+
<path
346+
stroke-linecap="round"
347+
stroke-linejoin="round"
348+
d="M12.75 3.03v.568c0 .334.148.65.405.864l1.068.89c.442.369.535 1.01.216 1.49l-.51.766a2.25 2.25 0 01-1.161.886l-.143.048a1.107 1.107 0 00-.57 1.664c.369.555.169 1.307-.427 1.605L9 13.125l.423 1.059a.956.956 0 01-1.652.928l-.679-.906a1.125 1.125 0 00-1.906.172L4.5 15.75l-.612.153M12.75 3.031a9 9 0 00-8.862 12.872M12.75 3.031a9 9 0 016.69 14.036m0 0l-.177-.529A2.25 2.25 0 0017.128 15H16.5l-.324-.324a1.453 1.453 0 00-2.328.377l-.036.073a1.586 1.586 0 01-.982.816l-.99.282c-.55.157-.894.702-.8 1.267l.073.438c.08.474.49.821.97.821.846 0 1.598.542 1.865 1.345l.215.643m5.276-3.67a9.012 9.012 0 01-5.276 3.67m0 0a9 9 0 01-10.275-4.835M15.75 9c0 .896-.393 1.7-1.016 2.25"
349+
/>
350+
</svg>
148351
<span>Organic cotton</span>
149352
</li>
150353
<li>
354+
<svg
355+
xmlns="http://www.w3.org/2000/svg"
356+
fill="none"
357+
viewBox="0 0 24 24"
358+
stroke-width="1.5"
359+
stroke="currentColor"
360+
class="chair-icon"
361+
>
362+
<path
363+
stroke-linecap="round"
364+
stroke-linejoin="round"
365+
d="M21 7.5l-9-5.25L3 7.5m18 0l-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
366+
/>
367+
</svg>
151368
<span>Weighs 80 kg</span>
152369
</li>
153370
</ul>

starter/05-Design/style.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ img {
109109

110110
/* FEATURES */
111111
.features-icon {
112+
stroke: #087f5b;
113+
width: 32px;
114+
height: 32px;
115+
margin-bottom: 16px;
112116
}
113117

114118
.features-title {
@@ -172,6 +176,9 @@ h3 {
172176
}
173177

174178
.chair-icon {
179+
stroke: #087f5b;
180+
width: 24px;
181+
height: 24px;
175182
}
176183

177184
.chair-price {

0 commit comments

Comments
 (0)