spoko-design-system 0.0.2 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/.astro/icon.d.ts +10291 -2199
  2. package/.vscode/extensions.json +2 -1
  3. package/.vscode/settings.json +6 -0
  4. package/Layout/Header.astro +3 -3
  5. package/README.md +38 -13
  6. package/astro.config.mjs +24 -18
  7. package/package.json +79 -75
  8. package/public/favicon.ico +0 -0
  9. package/public/favicon.svg +0 -0
  10. package/public/locales/en/translation.json +5 -2
  11. package/public/locales/pl/translation.json +5 -2
  12. package/src/components/Badge.vue +1 -1
  13. package/src/components/Badges.vue +1 -1
  14. package/src/components/Button.vue +17 -8
  15. package/src/components/ButtonCopy.vue +52 -0
  16. package/src/components/Card.astro +25 -0
  17. package/src/components/HandDrive.astro +0 -1
  18. package/src/components/Header/Header.astro +1 -1
  19. package/src/components/Headline.vue +37 -5
  20. package/src/components/Image.astro +30 -0
  21. package/src/components/Jumbatron.vue +23 -8
  22. package/src/components/LeftSidebar.astro +9 -8
  23. package/src/components/PrCode.vue +156 -0
  24. package/src/components/ProductNumber.astro +117 -0
  25. package/src/components/ProductTile.astro +54 -0
  26. package/src/components/layout/Header.astro +1 -1
  27. package/src/config.ts +5 -1
  28. package/src/layouts/Layout.astro +0 -8
  29. package/src/layouts/MainLayout.astro +6 -14
  30. package/src/pages/components/badges.mdx +39 -7
  31. package/src/pages/components/breadcrumbs.mdx +37 -1
  32. package/src/pages/components/buttons.mdx +92 -11
  33. package/src/pages/components/card.mdx +40 -0
  34. package/src/pages/components/hand-drive.mdx +6 -1
  35. package/src/pages/components/headline.mdx +22 -3
  36. package/src/pages/components/icons.astro +23 -21
  37. package/src/pages/components/image.mdx +502 -0
  38. package/src/pages/components/jumbatron.mdx +33 -10
  39. package/src/pages/components/modal.mdx +8 -2
  40. package/src/pages/components/post-header.mdx +24 -2
  41. package/src/pages/components/pr-code.mdx +41 -0
  42. package/src/pages/components/product-number.mdx +65 -0
  43. package/src/pages/components/product-tile.mdx +39 -0
  44. package/src/pages/components/table.mdx +19 -0
  45. package/src/pages/core/introduction.mdx +3 -3
  46. package/src/pages/index.astro +25 -22
  47. package/src/styles/base/_base.scss +8 -0
  48. package/src/styles/content.scss +17 -1
  49. package/uno.config.ts +26 -7
@@ -0,0 +1,502 @@
1
+ ---
2
+ title: "Jumbatron"
3
+ layout: "../../layouts/MainLayout.astro"
4
+ ---
5
+ import Image from '../../components/Image.astro'
6
+
7
+ ## Image
8
+
9
+ Image converted to AVIF format and resized.
10
+ AVIF compresses images significantly better than older-generation formats such as WebP and JPEG.
11
+
12
+ #
13
+ Displaying great product images is one of the most important keys to e-Commerce success.
14
+
15
+
16
+
17
+ - https://en.wikipedia.org/wiki/AVIF
18
+
19
+ #
20
+
21
+ You can choose the image format you need so that you do not unnecessarily load an image that is larger than the area in which you are displaying it. This ensures maximum page optimisation.
22
+
23
+ - https://docs.astro.build/en/guides/images/
24
+
25
+ #
26
+
27
+ Use `.img--overlay` class for images on white background to make a layer with light grey overlay.
28
+
29
+
30
+ ### Small Image
31
+ `.img--small`
32
+
33
+ <div class="component-preview">
34
+ <div class="img--overlay img--4/3 img--small">
35
+ <Image
36
+ imageObject={
37
+ {
38
+ src: 'https://img.freepik.com/darmowe-wektory/tlo-retro-modeli-geometrycznych_52683-17902.jpg?w=1380&t=st=1706311337',
39
+ alt: 'Image Alt',
40
+ height: '180',
41
+ width: '240',
42
+ class: 'object-cover'
43
+ }
44
+ }
45
+ />
46
+ </div>
47
+
48
+
49
+ <div class="img--4/3 img--small">
50
+ <Image
51
+ imageObject={
52
+ {
53
+ src: 'https://img.freepik.com/free-photo/beautiful-green-landscape-with-plantations-trees-cloudy-sky_181624-42918.jpg?w=970&t=st=1706315168',
54
+ alt: 'Image Alt',
55
+ height: '180',
56
+ width: '240',
57
+ class: 'object-cover'
58
+ }
59
+ }
60
+ />
61
+ </div>
62
+
63
+ <div class="img--4/3 img--small">
64
+ <Image
65
+ imageObject={
66
+ {
67
+ src: 'https://img.freepik.com/free-photo/lake-mountains_1204-508.jpg?w=970&t=st=1706315236',
68
+ alt: 'Image Alt',
69
+ height: '180',
70
+ width: '240',
71
+ class: 'object-cover'
72
+ }
73
+ }
74
+ />
75
+ </div>
76
+ </div>
77
+
78
+
79
+
80
+
81
+ ```js
82
+ <div class="img--overlay img--4/3 img--small">
83
+ <Image
84
+ imageObject={
85
+ {
86
+ src: 'https://img.freepik.com/darmowe-wektory/tlo-retro-modeli-geometrycznych_52683-17902.jpg?w=1380&t=st=1706311337',
87
+ alt: 'Image Alt',
88
+ height: '180',
89
+ width: '240',
90
+ class: 'object-cover'
91
+ }
92
+ }
93
+ />
94
+
95
+ <div class="img--4/3 img--small">
96
+ <Image
97
+ imageObject={
98
+ {
99
+ src: 'https://img.freepik.com/free-photo/beautiful-green-landscape-with-plantations-trees-cloudy-sky_181624-42918.jpg?w=970&t=st=1706315168',
100
+ alt: 'Image Alt',
101
+ height: '180',
102
+ width: '240',
103
+ class: 'object-cover'
104
+ }
105
+ }
106
+ />
107
+ </div>
108
+
109
+ <div class="img--4/3 img--small">
110
+ <Image
111
+ imageObject={
112
+ {
113
+ src: 'https://img.freepik.com/free-photo/lake-mountains_1204-508.jpg?w=970&t=st=1706315236',
114
+ alt: 'Image Alt',
115
+ height: '180',
116
+ width: '240',
117
+ class: 'object-cover'
118
+ }
119
+ }
120
+ />
121
+ </div>
122
+
123
+
124
+
125
+ </div>
126
+ ```
127
+
128
+
129
+ ### Medium Image
130
+ `.img--medium`
131
+
132
+ <div class="component-preview">
133
+ <a class="img--medium img--3/2 b-l b-white" href="#">
134
+ <Image
135
+ imageObject={
136
+ {
137
+ src: 'https://img.freepik.com/darmowe-wektory/tlo-retro-modeli-geometrycznych_52683-17902.jpg?w=1380&t=st=1706311337',
138
+ alt: 'Image Alt',
139
+ height: '180',
140
+ width: '240',
141
+ }
142
+ }
143
+ />
144
+ </a>
145
+
146
+ <a class="img--medium img--3/2 b-l b-white" href="#">
147
+ <Image
148
+ imageObject={
149
+ {
150
+ src: 'https://img.freepik.com/free-photo/beautiful-green-landscape-with-plantations-trees-cloudy-sky_181624-42918.jpg?w=970&t=st=1706315168',
151
+ alt: 'Image Alt',
152
+ height: '180',
153
+ width: '240',
154
+ class: 'bg-gray-100/70'
155
+ }
156
+ }
157
+ />
158
+ </a>
159
+
160
+ <a class="img--medium img--3/2 b-l b-white" href="#">
161
+ <Image
162
+ imageObject={
163
+ {
164
+ src: 'https://img.freepik.com/free-photo/lake-mountains_1204-508.jpg?w=970&t=st=1706315236',
165
+ alt: 'Image Alt',
166
+ height: '180',
167
+ width: '240',
168
+ class: 'bg-gray-100/70'
169
+ }
170
+ }
171
+ />
172
+ </a>
173
+ </div>
174
+
175
+ ```ts
176
+ <a class="img--medium img--3/2 b-l b-white" href="#">
177
+ <Image
178
+ imageObject={
179
+ {
180
+ src: 'https://img.freepik.com/darmowe-wektory/tlo-retro-modeli-geometrycznych_52683-17902.jpg?w=1380&t=st=1706311337',
181
+ alt: 'Image Alt',
182
+ height: '180',
183
+ width: '240',
184
+ }
185
+ }
186
+ />
187
+ </a>
188
+
189
+ <a class="img--medium img--3/2 b-l b-white" href="#">
190
+ <Image
191
+ imageObject={
192
+ {
193
+ src: 'https://img.freepik.com/free-photo/beautiful-green-landscape-with-plantations-trees-cloudy-sky_181624-42918.jpg?w=970&t=st=1706315168',
194
+ alt: 'Image Alt',
195
+ height: '180',
196
+ width: '240',
197
+ class: 'bg-gray-100/70'
198
+ }
199
+ }
200
+ />
201
+ </a>
202
+
203
+ <a class="img--medium img--3/2 b-l b-white" href="#">
204
+ <Image
205
+ imageObject={
206
+ {
207
+ src: 'https://img.freepik.com/free-photo/lake-mountains_1204-508.jpg?w=970&t=st=1706315236',
208
+ alt: 'Image Alt',
209
+ height: '180',
210
+ width: '240',
211
+ class: 'bg-gray-100/70'
212
+ }
213
+ }
214
+ />
215
+ </a>
216
+ ```
217
+
218
+ ### Responsive Image with srcset
219
+ - https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#resolution_switching_different_sizes
220
+
221
+ <div class="component-preview">
222
+ <div class="h-full img--3/2 overflow-hidden">
223
+ <Image
224
+ imageObject={
225
+ {
226
+ src: 'https://img.freepik.com/free-photo/beautiful-green-landscape-with-plantations-trees-cloudy-sky_181624-42918.jpg?w=1970&t=st=1706315168',
227
+ alt: 'Image Alt',
228
+ height: '1350',
229
+ width: '1800',
230
+ class: 'bg-gray-100/70',
231
+ srcset: [430, 690, 960, 1200, 1800]
232
+ }
233
+ }
234
+ />
235
+ </div>
236
+ </div>
237
+
238
+ ```js
239
+ <Image
240
+ imageObject={
241
+ {
242
+ src: 'https://img.freepik.com/free-photo/beautiful-green-landscape-with-plantations-trees-cloudy-sky_181624-42918.jpg?w=1970&t=st=1706315168',
243
+ alt: 'Image Alt',
244
+ height: '1350',
245
+ width: '1800',
246
+ class: 'bg-gray-100/70',
247
+ srcset: [430, 690, 960, 1200, 1800]
248
+ }
249
+ }
250
+ />
251
+ ```
252
+
253
+
254
+
255
+ ### Image Aspect Ratios
256
+
257
+ Image ratio, also known as aspect ratio, is how wide an image is in relation to how tall it is.
258
+ For viewing on a mobile device, the recommended image ratio is 1:1 (a square picture).
259
+
260
+ <div class="component-preview">
261
+ <div class="columns-2 lg:columns-4 w-full">
262
+ <div class="text-center mb-4">
263
+ <div class="img--medium img--1/1 b-l b-white w-full">
264
+ <Image
265
+ imageObject={
266
+ {
267
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
268
+ alt: 'Image Alt',
269
+ height: '700',
270
+ width: '700',
271
+ }
272
+ }
273
+ />
274
+ <div class="absolute bottom-0 bg-black/40 text-white px-5 py-0 left-0 right-0">1:1</div>
275
+ </div>
276
+ </div>
277
+
278
+ <div class="text-center mb-4">
279
+ <div class="img--medium img--3/1 b-l b-white w-full">
280
+ <Image
281
+ imageObject={
282
+ {
283
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
284
+ alt: 'Image Alt',
285
+ height: '700',
286
+ width: '700',
287
+ }
288
+ }
289
+ />
290
+ <div class="absolute bottom-0 bg-black/40 text-white px-5 py-0 left-0 right-0">3:1</div>
291
+ </div>
292
+ </div>
293
+
294
+ <div class="text-center mb-4">
295
+ <div class="img--medium img--4/3 b-l b-white w-full">
296
+ <Image
297
+ imageObject={
298
+ {
299
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
300
+ alt: 'Image Alt',
301
+ height: '700',
302
+ width: '700',
303
+ }
304
+ }
305
+ />
306
+ <div class="absolute bottom-0 bg-black/40 text-white px-5 py-0 left-0 right-0">4:3</div>
307
+ </div>
308
+ </div>
309
+ <div class="text-center mb-4">
310
+ <div class="img--medium img--3/2 b-l b-white w-full">
311
+ <Image
312
+ imageObject={
313
+ {
314
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
315
+ alt: 'Image Alt',
316
+ height: '700',
317
+ width: '700',
318
+ }
319
+ }
320
+ />
321
+ <div class="absolute bottom-0 bg-black/40 text-white px-5 py-0 left-0 right-0">3:2</div>
322
+ </div>
323
+ </div>
324
+
325
+ <div class="text-center mb-4">
326
+ <div class="img--medium img--16/9 b-l b-white w-full">
327
+ <Image
328
+ imageObject={
329
+ {
330
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
331
+ alt: 'Image Alt',
332
+ height: '700',
333
+ width: '700',
334
+ }
335
+ }
336
+ />
337
+ <div class="absolute bottom-0 bg-black/40 text-white px-5 py-0 left-0 right-0">16:9</div>
338
+ </div>
339
+ </div>
340
+ <div class="text-center mb-4">
341
+ <div class="img--medium img--3/4 b-l b-white w-full">
342
+ <Image
343
+ imageObject={
344
+ {
345
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
346
+ alt: 'Image Alt',
347
+ height: '700',
348
+ width: '700',
349
+ }
350
+ }
351
+ />
352
+ <div class="absolute bottom-0 bg-black/40 text-white px-5 py-0 left-0 right-0">3:4</div>
353
+ </div>
354
+ </div>
355
+ <div class="text-center mb-4">
356
+ <div class="img--medium img--2/3 b-l b-white w-full">
357
+ <Image
358
+ imageObject={
359
+ {
360
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
361
+ alt: 'Image Alt',
362
+ height: '700',
363
+ width: '700',
364
+ }
365
+ }
366
+ />
367
+ <div class="absolute bottom-0 bg-black/40 text-white px-5 py-0 left-0 right-0">2:3</div>
368
+ </div>
369
+ </div>
370
+ </div>
371
+ </div>
372
+
373
+
374
+ ```js
375
+ <div class="img--medium img--1/1 b-l b-white w-full">
376
+ <Image
377
+ imageObject={
378
+ {
379
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
380
+ alt: 'Image Alt',
381
+ height: '700',
382
+ width: '700',
383
+ }
384
+ }
385
+ />
386
+ </div>
387
+
388
+ <div class="img--medium img--3/1 b-l b-white w-full">
389
+ <Image
390
+ imageObject={
391
+ {
392
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
393
+ alt: 'Image Alt',
394
+ height: '700',
395
+ width: '700',
396
+ }
397
+ }
398
+ />
399
+ </div>
400
+
401
+ <div class="img--medium img--4/3 b-l b-white w-full">
402
+ <Image
403
+ imageObject={
404
+ {
405
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
406
+ alt: 'Image Alt',
407
+ height: '700',
408
+ width: '700',
409
+ }
410
+ }
411
+ />
412
+ </div>
413
+
414
+ <div class="img--medium img--3/2 b-l b-white w-full">
415
+ <Image
416
+ imageObject={
417
+ {
418
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
419
+ alt: 'Image Alt',
420
+ height: '700',
421
+ width: '700',
422
+ }
423
+ }
424
+ />
425
+ </div>
426
+
427
+ <div class="img--medium img--16/9 b-l b-white w-full">
428
+ <Image
429
+ imageObject={
430
+ {
431
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
432
+ alt: 'Image Alt',
433
+ height: '300',
434
+ width: '300',
435
+ }
436
+ }
437
+ />
438
+ </div>
439
+
440
+ <div class="img--medium img--3/4 b-l b-white w-full">
441
+ <Image
442
+ imageObject={
443
+ {
444
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
445
+ alt: 'Image Alt',
446
+ height: '700',
447
+ width: '700',
448
+ }
449
+ }
450
+ />
451
+ </div>
452
+
453
+ <div class="img--medium img--2/3 b-l b-white w-full">
454
+ <Image
455
+ imageObject={
456
+ {
457
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
458
+ alt: 'Image Alt',
459
+ height: '700',
460
+ width: '700',
461
+ }
462
+ }
463
+ />
464
+ </div>
465
+
466
+ ```
467
+
468
+
469
+ It is good to have all the images in the same ratio so that they look fairly uniform. Additionally, you can use a different ratio on desktop than on mobile view.
470
+
471
+ ### Image 1:1 on mobile, and 4:3 on desktop
472
+
473
+ <div class="component-preview">
474
+ <div class="columns-1 md:columns-3">
475
+ <div class="img--medium img--1/1 md:img--4/3 b-l b-white w-full">
476
+ <Image
477
+ imageObject={
478
+ {
479
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
480
+ alt: 'Image Alt',
481
+ height: '700',
482
+ width: '700',
483
+ }
484
+ }
485
+ />
486
+ </div>
487
+ </div>
488
+ </div>
489
+ ```js
490
+ <div class="img--medium img--1/1 md:img--4/3 b-l b-white w-full">
491
+ <Image
492
+ imageObject={
493
+ {
494
+ src: 'https://img.freepik.com/free-photo/nature-beauty-tropical-rainforest-adventure-tranquility-freshness-generated-by-artificial-intellingence_25030-62539.jpg?size=960&ext=jpg',
495
+ alt: 'Image Alt',
496
+ height: '700',
497
+ width: '700',
498
+ }
499
+ }
500
+ />
501
+ </div>
502
+ ```
@@ -3,6 +3,7 @@ title: "Jumbatron"
3
3
  layout: "../../layouts/MainLayout.astro"
4
4
  ---
5
5
  import Jumbatron from '../../components/Jumbatron.vue'
6
+ import Button from '../../components/Button.vue'
6
7
 
7
8
  ## Jumbatron
8
9
 
@@ -16,15 +17,12 @@ Find the code for this page in the `src/pages/components/jumbatron.mdx` file.
16
17
  class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
17
18
  set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
18
19
  />
19
-
20
-
21
- <a slot="cta"
22
- href="/about/"
20
+ <Button primary slot="cta"
21
+ href="#"
23
22
  title="short text"
24
- class="w-full inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-full text-white bg-lightBlue-500 hover:bg-lightBlue-600 md:py-2 md:text-lg md:px-10 shadow"
25
23
  >
26
24
  Read More
27
- </a>
25
+ </Button>
28
26
  </Jumbatron>
29
27
  </div>
30
28
 
@@ -35,14 +33,39 @@ Find the code for this page in the `src/pages/components/jumbatron.mdx` file.
35
33
  class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
36
34
  set:html="subtitle"
37
35
  />
36
+ <Button primary slot="cta"
37
+ href="#"
38
+ title="short text"
39
+ >
40
+ Read More
41
+ </Button>
42
+ </Jumbatron>
43
+ ```
44
+
45
+ ## Jumbatron smaller
38
46
 
47
+ <div class="component-preview">
48
+ <Jumbatron class="w-full" small>
49
+ <span slot="intro" set:html={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`} />
50
+ <p slot="subtitle"
51
+ class="mt-5 sm:mt-8 sm:flex sm:justify-center"
52
+ set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
53
+ />
54
+ </Jumbatron>
55
+ </div>
39
56
 
40
- <a slot="cta"
41
- href="/about/"
57
+ ```js
58
+ <Jumbatron small>
59
+ <span slot="intro" set:html="text-intro" />
60
+ <p slot="subtitle"
61
+ class="mt-5 sm:mt-8 sm:flex sm:justify-center"
62
+ set:html="subtitle"
63
+ />
64
+ <Button primary slot="cta"
65
+ href="#"
42
66
  title="short text"
43
- class="w-full inline-flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-full text-white bg-lightBlue-500 hover:bg-lightBlue-600 md:py-2 md:text-lg md:px-10 shadow"
44
67
  >
45
68
  Read More
46
- </a>
69
+ </Button>
47
70
  </Jumbatron>
48
71
  ```
@@ -9,8 +9,14 @@ import { Icon } from 'astro-icon/components';
9
9
 
10
10
  ## Modal
11
11
 
12
- ### Modal (native) based on dialog tag.
13
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
12
+ Native modal window based on `<dialog>` tag with `::backdrop` CSS pseudo-element (pure CSS3 modal window).
13
+ #
14
+ **Documentation:**
15
+
16
+ - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
17
+ - https://developer.mozilla.org/en-US/docs/Web/CSS/::backdrop
18
+
19
+ ### Modal window
14
20
 
15
21
 
16
22
  <div class="component-preview">
@@ -19,7 +19,7 @@ WordPress PostHeader - post top component for WordPress Single Post template dat
19
19
  categories={categories}
20
20
  title="Lorem Ipsum"
21
21
  date={date}
22
- image="https://placehold.co/2000x700/EEE/31343C"
22
+ image="https://img.freepik.com/free-photo/morskie-oko-tatry_1204-510.jpg?w=1380&t=st=1706297574~exp=1706298174~hmac=5c93e7317e7dbe602d5dcd708c5b9708ffabcb5e8ab2b7f2790941975dfcefe4"
23
23
  />
24
24
  </div>
25
25
  </div>
@@ -29,8 +29,30 @@ WordPress PostHeader - post top component for WordPress Single Post template dat
29
29
  <PostHeader
30
30
  author={ { firstName: 'Szymon', name: 'CNK' } }
31
31
  categories={ [{"name":"Tools & garage accessories","uri":"/category/garage/tools-garage-accessories/"}, , {"name":"Lorem Ipsum","uri":"#"}] }
32
+ title="Lorem Ipsum"
32
33
  date="2023-07-13T01:35:03"
33
- image="https://placehold.co/2000x700/EEE/31343C"
34
+ image="https://img.freepik.com/free-photo/morskie-oko-tatry_1204-510.jpg?w=1380&t=st=1706297574~exp=1706298174~hmac=5c93e7317e7dbe602d5dcd708c5b9708ffabcb5e8ab2b7f2790941975dfcefe4"
35
+ />
36
+ </div>
37
+ ```
38
+
39
+
40
+ ## PostHeader - only title
41
+
42
+ <div class="component-preview">
43
+ <div class="relative w-full">
44
+ <PostHeader
45
+ title="Lorem Ipsum"
46
+ image="https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg?w=1380&t=st=1706297408~exp=1706298008~hmac=34fe549db6a665d24269d38a8ecdd7eb3f82cfea6346c8a4039ee3c03b62aad8"
47
+ />
48
+ </div>
49
+ </div>
50
+
51
+ ```js
52
+ <div class="relative">
53
+ <PostHeader
54
+ title="Lorem Ipsum"
55
+ image="https://img.freepik.com/free-photo/painting-mountain-lake-with-mountain-background_188544-9126.jpg?w=1380&t=st=1706297408~exp=1706298008~hmac=34fe549db6a665d24269d38a8ecdd7eb3f82cfea6346c8a4039ee3c03b62aad8"
34
56
  />
35
57
  </div>
36
58
  ```
@@ -0,0 +1,41 @@
1
+ ---
2
+ title: "PrCode"
3
+ layout: "../../layouts/MainLayout.astro"
4
+ ---
5
+ import PrCode from '../../components/PrCode.vue'
6
+
7
+
8
+ ## PR-Code
9
+
10
+ PR Code are Production Codes for all of the installed equipment in the vehicle and is used by manufacturers including VW, Audi, Seat, Skoda, Porsche, Lamborghini etc.
11
+ PR Codes contain 3 characters comprising of letters and numbers.
12
+
13
+ PR codes are located on vehicle´s build sticker that is located on first pages of cars warranty booklet or there should be one in a trunk as well usually under the carpet or in spare tire area.
14
+
15
+ They are important when purchasing spare parts as they provide information about the manufacturer, make, model, year of manufacture, and other vehicle details.
16
+
17
+
18
+
19
+
20
+ #### import:
21
+
22
+ ```js
23
+ import PrCode from 'spoko-design-system/src/components/PrCode.vue'
24
+ ```
25
+
26
+
27
+ ### PR-Code
28
+
29
+ <div class="component-preview">
30
+ <div class="bg-white p-6 w-full">
31
+ <PrCode prcode="2JP" />
32
+ <PrCode prcode="1ZJ" />
33
+ </div>
34
+ </div>
35
+
36
+ ```js
37
+ <PrCode prcode="2JP" />
38
+ <PrCode prcode="1ZJ" />
39
+ ```
40
+
41
+