Skip to content

Commit 60084cf

Browse files
committed
feat: implementing icons
1 parent ea56638 commit 60084cf

File tree

3 files changed

+227
-1
lines changed

3 files changed

+227
-1
lines changed

starter/05-Design/UsefulLinks.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Images toolbox
2323
Squoosh (Compress Images)
2424

2525
Icons toolbox
26+
Hero Icons (free icon packs)
27+
https://heroicons.com/
2628
Phosphor Icons (free icon packs)
2729
ionicons (free icon packs)
2830
icons8 (free icon packs)
29-

starter/05-Design/index.html

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ <h1>We design and build better chairs, for a better life</h1>
3232
<h2>What makes our chairs special</h2>
3333
<div class="grid-3-cols">
3434
<div>
35+
<svg
36+
xmlns="http://www.w3.org/2000/svg"
37+
fill="none"
38+
viewBox="0 0 24 24"
39+
stroke-width="1.5"
40+
stroke="currentColor"
41+
class="features-icon"
42+
>
43+
<path
44+
stroke-linecap="round"
45+
stroke-linejoin="round"
46+
d="M9.75 3.104v5.714a2.25 2.25 0 0 1-.659 1.591L5 14.5M9.75 3.104c-.251.023-.501.05-.75.082m.75-.082a24.301 24.301 0 0 1 4.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 0 1 12 15a9.065 9.065 0 0 0-6.23-.693L5 14.5m14.8.8 1.402 1.402c1.232 1.232.65 3.318-1.067 3.611A48.309 48.309 0 0 1 12 21c-2.773 0-5.491-.235-8.135-.687-1.718-.293-2.3-2.379-1.067-3.61L5 14.5"
47+
/>
48+
</svg>
49+
3550
<p class="features-title"><strong>Science meets design</strong></p>
3651
<p class="features-text">
3752
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Natus
@@ -40,6 +55,21 @@ <h2>What makes our chairs special</h2>
4055
</div>
4156

4257
<div>
58+
<svg
59+
xmlns="http://www.w3.org/2000/svg"
60+
fill="none"
61+
viewBox="0 0 24 24"
62+
stroke-width="1.5"
63+
stroke="currentColor"
64+
class="features-icon"
65+
>
66+
<path
67+
stroke-linecap="round"
68+
stroke-linejoin="round"
69+
d="M15.182 15.182a4.5 4.5 0 0 1-6.364 0M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 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"
70+
/>
71+
</svg>
72+
4373
<p class="features-title">
4474
<strong>Maximal comfort</strong>
4575
</p>
@@ -50,6 +80,21 @@ <h2>What makes our chairs special</h2>
5080
</div>
5181

5282
<div>
83+
<svg
84+
xmlns="http://www.w3.org/2000/svg"
85+
fill="none"
86+
viewBox="0 0 24 24"
87+
stroke-width="1.5"
88+
stroke="currentColor"
89+
class="features-icon"
90+
>
91+
<path
92+
stroke-linecap="round"
93+
stroke-linejoin="round"
94+
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"
95+
/>
96+
</svg>
97+
5398
<p class="features-title">
5499
<strong>Ethical and sustainable</strong>
55100
</p>
@@ -85,16 +130,76 @@ <h2>Our bestselling chairs</h2>
85130
<h3>The Laid Back</h3>
86131
<ul class="chair-details">
87132
<li>
133+
<svg
134+
xmlns="http://www.w3.org/2000/svg"
135+
fill="none"
136+
viewBox="0 0 24 24"
137+
stroke-width="1.5"
138+
stroke="currentColor"
139+
class="chair-icon"
140+
>
141+
<path
142+
stroke-linecap="round"
143+
stroke-linejoin="round"
144+
d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"
145+
/>
146+
</svg>
147+
88148
<!-- Span is a generic INLINE text element, it doesn't have any meaning. It's like a div element, but inline -->
89149
<span>Leisure and relaxing</span>
90150
</li>
91151
<li>
152+
<svg
153+
xmlns="http://www.w3.org/2000/svg"
154+
fill="none"
155+
viewBox="0 0 24 24"
156+
stroke-width="1.5"
157+
stroke="currentColor"
158+
class="chair-icon"
159+
>
160+
<path
161+
stroke-linecap="round"
162+
stroke-linejoin="round"
163+
d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
164+
/>
165+
</svg>
166+
92167
<span>Comfortable for 4h</span>
93168
</li>
94169
<li>
170+
<svg
171+
xmlns="http://www.w3.org/2000/svg"
172+
fill="none"
173+
viewBox="0 0 24 24"
174+
stroke-width="1.5"
175+
stroke="currentColor"
176+
class="chair-icon"
177+
>
178+
<path
179+
stroke-linecap="round"
180+
stroke-linejoin="round"
181+
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 0 1-1.161.886l-.143.048a1.107 1.107 0 0 0-.57 1.664c.369.555.169 1.307-.427 1.605L9 13.125l.423 1.059a.956.956 0 0 1-1.652.928l-.679-.906a1.125 1.125 0 0 0-1.906.172L4.5 15.75l-.612.153M12.75 3.031a9 9 0 0 0-8.862 12.872M12.75 3.031a9 9 0 0 1 6.69 14.036m0 0-.177-.529A2.25 2.25 0 0 0 17.128 15H16.5l-.324-.324a1.453 1.453 0 0 0-2.328.377l-.036.073a1.586 1.586 0 0 1-.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 0 1-5.276 3.67m0 0a9 9 0 0 1-10.275-4.835M15.75 9c0 .896-.393 1.7-1.016 2.25"
182+
/>
183+
</svg>
184+
95185
<span>Vegan leather</span>
96186
</li>
97187
<li>
188+
<svg
189+
xmlns="http://www.w3.org/2000/svg"
190+
fill="none"
191+
viewBox="0 0 24 24"
192+
stroke-width="1.5"
193+
stroke="currentColor"
194+
class="chair-icon"
195+
>
196+
<path
197+
stroke-linecap="round"
198+
stroke-linejoin="round"
199+
d="m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
200+
/>
201+
</svg>
202+
98203
<span>Weighs 16 kg</span>
99204
</li>
100205
</ul>
@@ -111,15 +216,71 @@ <h3>The Laid Back</h3>
111216
<h3>The Worker Bee</h3>
112217
<ul class="chair-details">
113218
<li>
219+
<svg
220+
xmlns="http://www.w3.org/2000/svg"
221+
fill="none"
222+
viewBox="0 0 24 24"
223+
stroke-width="1.5"
224+
stroke="currentColor"
225+
class="chair-icon"
226+
>
227+
<path
228+
stroke-linecap="round"
229+
stroke-linejoin="round"
230+
d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"
231+
/>
232+
</svg>
114233
<span>Work</span>
115234
</li>
116235
<li>
236+
<svg
237+
xmlns="http://www.w3.org/2000/svg"
238+
fill="none"
239+
viewBox="0 0 24 24"
240+
stroke-width="1.5"
241+
stroke="currentColor"
242+
class="chair-icon"
243+
>
244+
<path
245+
stroke-linecap="round"
246+
stroke-linejoin="round"
247+
d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
248+
/>
249+
</svg>
117250
<span>Comfortable for 8h</span>
118251
</li>
119252
<li>
253+
<svg
254+
xmlns="http://www.w3.org/2000/svg"
255+
fill="none"
256+
viewBox="0 0 24 24"
257+
stroke-width="1.5"
258+
stroke="currentColor"
259+
class="chair-icon"
260+
>
261+
<path
262+
stroke-linecap="round"
263+
stroke-linejoin="round"
264+
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 0 1-1.161.886l-.143.048a1.107 1.107 0 0 0-.57 1.664c.369.555.169 1.307-.427 1.605L9 13.125l.423 1.059a.956.956 0 0 1-1.652.928l-.679-.906a1.125 1.125 0 0 0-1.906.172L4.5 15.75l-.612.153M12.75 3.031a9 9 0 0 0-8.862 12.872M12.75 3.031a9 9 0 0 1 6.69 14.036m0 0-.177-.529A2.25 2.25 0 0 0 17.128 15H16.5l-.324-.324a1.453 1.453 0 0 0-2.328.377l-.036.073a1.586 1.586 0 0 1-.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 0 1-5.276 3.67m0 0a9 9 0 0 1-10.275-4.835M15.75 9c0 .896-.393 1.7-1.016 2.25"
265+
/>
266+
</svg>
120267
<span>Vegan leather</span>
121268
</li>
122269
<li>
270+
<svg
271+
xmlns="http://www.w3.org/2000/svg"
272+
fill="none"
273+
viewBox="0 0 24 24"
274+
stroke-width="1.5"
275+
stroke="currentColor"
276+
class="chair-icon"
277+
>
278+
<path
279+
stroke-linecap="round"
280+
stroke-linejoin="round"
281+
d="m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
282+
/>
283+
</svg>
123284
<span>Weighs 22 kg</span>
124285
</li>
125286
</ul>
@@ -136,15 +297,71 @@ <h3>The Worker Bee</h3>
136297
<h3>The Chair 4/2</h3>
137298
<ul class="chair-details">
138299
<li>
300+
<svg
301+
xmlns="http://www.w3.org/2000/svg"
302+
fill="none"
303+
viewBox="0 0 24 24"
304+
stroke-width="1.5"
305+
stroke="currentColor"
306+
class="chair-icon"
307+
>
308+
<path
309+
stroke-linecap="round"
310+
stroke-linejoin="round"
311+
d="M9.813 15.904 9 18.75l-.813-2.846a4.5 4.5 0 0 0-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 0 0 3.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 0 0 3.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 0 0-3.09 3.09ZM18.259 8.715 18 9.75l-.259-1.035a3.375 3.375 0 0 0-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 0 0 2.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 0 0 2.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 0 0-2.456 2.456ZM16.894 20.567 16.5 21.75l-.394-1.183a2.25 2.25 0 0 0-1.423-1.423L13.5 18.75l1.183-.394a2.25 2.25 0 0 0 1.423-1.423l.394-1.183.394 1.183a2.25 2.25 0 0 0 1.423 1.423l1.183.394-1.183.394a2.25 2.25 0 0 0-1.423 1.423Z"
312+
/>
313+
</svg>
139314
<span>Leisure and relaxing</span>
140315
</li>
141316
<li>
317+
<svg
318+
xmlns="http://www.w3.org/2000/svg"
319+
fill="none"
320+
viewBox="0 0 24 24"
321+
stroke-width="1.5"
322+
stroke="currentColor"
323+
class="chair-icon"
324+
>
325+
<path
326+
stroke-linecap="round"
327+
stroke-linejoin="round"
328+
d="M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
329+
/>
330+
</svg>
142331
<span>Comfortable all day!</span>
143332
</li>
144333
<li>
334+
<svg
335+
xmlns="http://www.w3.org/2000/svg"
336+
fill="none"
337+
viewBox="0 0 24 24"
338+
stroke-width="1.5"
339+
stroke="currentColor"
340+
class="chair-icon"
341+
>
342+
<path
343+
stroke-linecap="round"
344+
stroke-linejoin="round"
345+
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 0 1-1.161.886l-.143.048a1.107 1.107 0 0 0-.57 1.664c.369.555.169 1.307-.427 1.605L9 13.125l.423 1.059a.956.956 0 0 1-1.652.928l-.679-.906a1.125 1.125 0 0 0-1.906.172L4.5 15.75l-.612.153M12.75 3.031a9 9 0 0 0-8.862 12.872M12.75 3.031a9 9 0 0 1 6.69 14.036m0 0-.177-.529A2.25 2.25 0 0 0 17.128 15H16.5l-.324-.324a1.453 1.453 0 0 0-2.328.377l-.036.073a1.586 1.586 0 0 1-.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 0 1-5.276 3.67m0 0a9 9 0 0 1-10.275-4.835M15.75 9c0 .896-.393 1.7-1.016 2.25"
346+
/>
347+
</svg>
145348
<span>Organic cotton</span>
146349
</li>
147350
<li>
351+
<svg
352+
xmlns="http://www.w3.org/2000/svg"
353+
fill="none"
354+
viewBox="0 0 24 24"
355+
stroke-width="1.5"
356+
stroke="currentColor"
357+
class="chair-icon"
358+
>
359+
<path
360+
stroke-linecap="round"
361+
stroke-linejoin="round"
362+
d="m21 7.5-9-5.25L3 7.5m18 0-9 5.25m9-5.25v9l-9 5.25M3 7.5l9 5.25M3 7.5v9l9 5.25m0-9v9"
363+
/>
364+
</svg>
148365
<span>Weighs 80 kg</span>
149366
</li>
150367
</ul>

starter/05-Design/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ img {
110110

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

115119
.features-title {
@@ -171,6 +175,10 @@ h3 {
171175
}
172176

173177
.chair-icon {
178+
stroke: #087f5b;
179+
/* fill: red; */
180+
width: 24px;
181+
height: 24px;
174182
}
175183

176184
.chair-price {

0 commit comments

Comments
 (0)