Skip to content

Commit efd6920

Browse files
committed
Implementing Icons.
1 parent 000a614 commit efd6920

File tree

2 files changed

+224
-0
lines changed

2 files changed

+224
-0
lines changed

starter/05-Design/index.html

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ <h1>We design and build better chairs, for a better life</h1>
3434
<h2>What makes our chairs special</h2>
3535
<div class="grid-3-cols">
3636
<div>
37+
<svg
38+
xmlns="http://www.w3.org/2000/svg"
39+
fill="none"
40+
viewBox="0 0 24 24"
41+
stroke-width="1.5"
42+
stroke="currentColor"
43+
class="features-icon"
44+
>
45+
<path
46+
stroke-linecap="round"
47+
stroke-linejoin="round"
48+
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"
49+
/>
50+
</svg>
51+
3752
<p class="features-title"><strong>Science meets design</strong></p>
3853
<p class="features-text">
3954
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Natus
@@ -42,6 +57,21 @@ <h2>What makes our chairs special</h2>
4257
</div>
4358

4459
<div>
60+
<svg
61+
xmlns="http://www.w3.org/2000/svg"
62+
fill="none"
63+
viewBox="0 0 24 24"
64+
stroke-width="1.5"
65+
stroke="currentColor"
66+
class="features-icon"
67+
>
68+
<path
69+
stroke-linecap="round"
70+
stroke-linejoin="round"
71+
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"
72+
/>
73+
</svg>
74+
4575
<p class="features-title">
4676
<strong>Maximal comfort</strong>
4777
</p>
@@ -52,6 +82,21 @@ <h2>What makes our chairs special</h2>
5282
</div>
5383

5484
<div>
85+
<svg
86+
xmlns="http://www.w3.org/2000/svg"
87+
fill="none"
88+
viewBox="0 0 24 24"
89+
stroke-width="1.5"
90+
stroke="currentColor"
91+
class="features-icon"
92+
>
93+
<path
94+
stroke-linecap="round"
95+
stroke-linejoin="round"
96+
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"
97+
/>
98+
</svg>
99+
55100
<p class="features-title">
56101
<strong>Ethical and sustainable</strong>
57102
</p>
@@ -87,16 +132,76 @@ <h2>Our bestselling chairs</h2>
87132
<h3>The Laid Back</h3>
88133
<ul class="chair-details">
89134
<li>
135+
<svg
136+
xmlns="http://www.w3.org/2000/svg"
137+
fill="none"
138+
viewBox="0 0 24 24"
139+
stroke-width="1.5"
140+
stroke="currentColor"
141+
class="chair-icon"
142+
>
143+
<path
144+
stroke-linecap="round"
145+
stroke-linejoin="round"
146+
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"
147+
/>
148+
</svg>
149+
90150
<!-- Span is a generic INLINE text element, it doesn't have any meaning. It's like a div element, but inline -->
91151
<span>Leisure and relaxing</span>
92152
</li>
93153
<li>
154+
<svg
155+
xmlns="http://www.w3.org/2000/svg"
156+
fill="none"
157+
viewBox="0 0 24 24"
158+
stroke-width="1.5"
159+
stroke="currentColor"
160+
class="chair-icon"
161+
>
162+
<path
163+
stroke-linecap="round"
164+
stroke-linejoin="round"
165+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
166+
/>
167+
</svg>
168+
94169
<span>Comfortable for 4h</span>
95170
</li>
96171
<li>
172+
<svg
173+
xmlns="http://www.w3.org/2000/svg"
174+
fill="none"
175+
viewBox="0 0 24 24"
176+
stroke-width="1.5"
177+
stroke="currentColor"
178+
class="chair-icon"
179+
>
180+
<path
181+
stroke-linecap="round"
182+
stroke-linejoin="round"
183+
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"
184+
/>
185+
</svg>
186+
97187
<span>Vegan leather</span>
98188
</li>
99189
<li>
190+
<svg
191+
xmlns="http://www.w3.org/2000/svg"
192+
fill="none"
193+
viewBox="0 0 24 24"
194+
stroke-width="1.5"
195+
stroke="currentColor"
196+
class="chair-icon"
197+
>
198+
<path
199+
stroke-linecap="round"
200+
stroke-linejoin="round"
201+
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"
202+
/>
203+
</svg>
204+
100205
<span>Weighs 16 kg</span>
101206
</li>
102207
</ul>
@@ -113,15 +218,71 @@ <h3>The Laid Back</h3>
113218
<h3>The Worker Bee</h3>
114219
<ul class="chair-details">
115220
<li>
221+
<svg
222+
xmlns="http://www.w3.org/2000/svg"
223+
fill="none"
224+
viewBox="0 0 24 24"
225+
stroke-width="1.5"
226+
stroke="currentColor"
227+
class="chair-icon"
228+
>
229+
<path
230+
stroke-linecap="round"
231+
stroke-linejoin="round"
232+
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"
233+
/>
234+
</svg>
116235
<span>Work</span>
117236
</li>
118237
<li>
238+
<svg
239+
xmlns="http://www.w3.org/2000/svg"
240+
fill="none"
241+
viewBox="0 0 24 24"
242+
stroke-width="1.5"
243+
stroke="currentColor"
244+
class="chair-icon"
245+
>
246+
<path
247+
stroke-linecap="round"
248+
stroke-linejoin="round"
249+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
250+
/>
251+
</svg>
119252
<span>Comfortable for 8h</span>
120253
</li>
121254
<li>
255+
<svg
256+
xmlns="http://www.w3.org/2000/svg"
257+
fill="none"
258+
viewBox="0 0 24 24"
259+
stroke-width="1.5"
260+
stroke="currentColor"
261+
class="chair-icon"
262+
>
263+
<path
264+
stroke-linecap="round"
265+
stroke-linejoin="round"
266+
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"
267+
/>
268+
</svg>
122269
<span>Vegan leather</span>
123270
</li>
124271
<li>
272+
<svg
273+
xmlns="http://www.w3.org/2000/svg"
274+
fill="none"
275+
viewBox="0 0 24 24"
276+
stroke-width="1.5"
277+
stroke="currentColor"
278+
class="chair-icon"
279+
>
280+
<path
281+
stroke-linecap="round"
282+
stroke-linejoin="round"
283+
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"
284+
/>
285+
</svg>
125286
<span>Weighs 22 kg</span>
126287
</li>
127288
</ul>
@@ -138,15 +299,71 @@ <h3>The Worker Bee</h3>
138299
<h3>The Chair 4/2</h3>
139300
<ul class="chair-details">
140301
<li>
302+
<svg
303+
xmlns="http://www.w3.org/2000/svg"
304+
fill="none"
305+
viewBox="0 0 24 24"
306+
stroke-width="1.5"
307+
stroke="currentColor"
308+
class="chair-icon"
309+
>
310+
<path
311+
stroke-linecap="round"
312+
stroke-linejoin="round"
313+
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"
314+
/>
315+
</svg>
141316
<span>Leisure and relaxing</span>
142317
</li>
143318
<li>
319+
<svg
320+
xmlns="http://www.w3.org/2000/svg"
321+
fill="none"
322+
viewBox="0 0 24 24"
323+
stroke-width="1.5"
324+
stroke="currentColor"
325+
class="chair-icon"
326+
>
327+
<path
328+
stroke-linecap="round"
329+
stroke-linejoin="round"
330+
d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"
331+
/>
332+
</svg>
144333
<span>Comfortable all day!</span>
145334
</li>
146335
<li>
336+
<svg
337+
xmlns="http://www.w3.org/2000/svg"
338+
fill="none"
339+
viewBox="0 0 24 24"
340+
stroke-width="1.5"
341+
stroke="currentColor"
342+
class="chair-icon"
343+
>
344+
<path
345+
stroke-linecap="round"
346+
stroke-linejoin="round"
347+
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"
348+
/>
349+
</svg>
147350
<span>Organic cotton</span>
148351
</li>
149352
<li>
353+
<svg
354+
xmlns="http://www.w3.org/2000/svg"
355+
fill="none"
356+
viewBox="0 0 24 24"
357+
stroke-width="1.5"
358+
stroke="currentColor"
359+
class="chair-icon"
360+
>
361+
<path
362+
stroke-linecap="round"
363+
stroke-linejoin="round"
364+
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"
365+
/>
366+
</svg>
150367
<span>Weighs 80 kg</span>
151368
</li>
152369
</ul>

starter/05-Design/style.css

Lines changed: 7 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 {
@@ -174,6 +178,9 @@ h3 {
174178
}
175179

176180
.chair-icon {
181+
stroke: #087f5b;
182+
width: 24px;
183+
height: 24px;
177184
}
178185

179186
.chair-price {

0 commit comments

Comments
 (0)