spoko-design-system 0.2.30 → 0.2.33

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 (130) hide show
  1. package/.astro/icon.d.ts +1627 -12
  2. package/.astro/settings.json +5 -0
  3. package/.github/dependabot.yml +11 -11
  4. package/.github/todo.yml +3 -3
  5. package/.github/workflows/deploy.yml +39 -39
  6. package/.stackblitzrc +5 -5
  7. package/.vscode/extensions.json +5 -5
  8. package/.vscode/launch.json +11 -11
  9. package/.vscode/settings.json +5 -5
  10. package/LICENSE +21 -21
  11. package/README.md +113 -113
  12. package/astro-i18next.config.mjs +17 -17
  13. package/astro-i18next.config.ts +10 -10
  14. package/astro.config.mjs +147 -141
  15. package/dev-dist/sw.js +91 -91
  16. package/dev-dist/workbox-c676b6d3.js +3391 -3391
  17. package/index.ts +6 -6
  18. package/package.json +42 -40
  19. package/public/fonts/lg.svg +53 -53
  20. package/public/fonts/vwhead-bold-demo.html +549 -549
  21. package/public/fonts/vwhead-regular-demo.html +549 -549
  22. package/public/fonts/vwtext-bold-demo.html +549 -549
  23. package/public/fonts/vwtext-regular-demo.html +549 -549
  24. package/public/github.svg +3 -3
  25. package/public/grid_dot.svg +4 -4
  26. package/public/linkedin.svg +44 -44
  27. package/public/locales/en/translation.json +8 -8
  28. package/public/locales/pl/translation.json +8 -8
  29. package/public/make-scrollable-code-focusable.js +3 -3
  30. package/public/pagefind.yml +3 -3
  31. package/public/polo.blue.svg +29 -29
  32. package/public/spoko.space.svg +71 -71
  33. package/public/twitter.svg +46 -46
  34. package/renovate.json +6 -6
  35. package/sandbox.config.json +11 -11
  36. package/src/MyComponent.astro +8 -8
  37. package/src/components/Badge.vue +19 -19
  38. package/src/components/Badges.vue +21 -21
  39. package/src/components/Breadcrumbs.vue +110 -110
  40. package/src/components/Button.vue +55 -55
  41. package/src/components/ButtonCopy.vue +47 -47
  42. package/src/components/Card.astro +27 -27
  43. package/src/components/Carousel.astro +26 -26
  44. package/src/components/CategoryLink.astro +18 -18
  45. package/src/components/Copyright.astro +12 -12
  46. package/src/components/Date.astro +7 -7
  47. package/src/components/Faq.astro +33 -0
  48. package/src/components/FaqItem.astro +96 -0
  49. package/src/components/FeaturesList.vue +41 -41
  50. package/src/components/FuckRussia.vue +80 -80
  51. package/src/components/HandDrive.astro +29 -29
  52. package/src/components/Header/Header.astro +214 -214
  53. package/src/components/Header/SkipToContent.astro +1 -1
  54. package/src/components/Headline.vue +48 -48
  55. package/src/components/Image.astro +30 -30
  56. package/src/components/Jumbatron.vue +40 -40
  57. package/src/components/LeftSidebar.astro +53 -53
  58. package/src/components/MainColors.vue +23 -23
  59. package/src/components/MainInput.vue +15 -15
  60. package/src/components/Modal.astro +27 -27
  61. package/src/components/PageContent.astro +5 -5
  62. package/src/components/PartNumber.vue +27 -27
  63. package/src/components/PostHeader.astro +103 -103
  64. package/src/components/PrCode.vue +156 -156
  65. package/src/components/ProductCarousel.astro +38 -38
  66. package/src/components/ProductCodes.vue +39 -39
  67. package/src/components/ProductDetailName.vue +52 -52
  68. package/src/components/ProductDetailsList.vue +65 -65
  69. package/src/components/ProductNumber copy.astro +116 -116
  70. package/src/components/ProductNumber.astro +114 -114
  71. package/src/components/ProductTile.astro +48 -48
  72. package/src/components/Quote.vue +23 -23
  73. package/src/components/ReloadPrompt.astro +50 -50
  74. package/src/components/SlimBanner.vue +72 -72
  75. package/src/components/Table.vue +32 -32
  76. package/src/components/TableOfContents.astro +15 -15
  77. package/src/components/Translations.vue +23 -23
  78. package/src/components/flags/FlagPL.vue +3 -3
  79. package/src/components/flags/FlagUA.vue +2 -2
  80. package/src/components/layout/Container.astro +7 -7
  81. package/src/components/layout/Header.astro +80 -80
  82. package/src/config.ts +56 -56
  83. package/src/design.config.ts +81 -81
  84. package/src/env.d.ts +1 -1
  85. package/src/layouts/Layout.astro +60 -60
  86. package/src/layouts/MainLayout.astro +81 -81
  87. package/src/layouts/partials/FooterCommon.astro +4 -4
  88. package/src/layouts/partials/HeadCommon.astro +44 -44
  89. package/src/layouts/partials/HeadSEO.astro +41 -41
  90. package/src/pages/components/badges.mdx +57 -57
  91. package/src/pages/components/breadcrumbs.mdx +139 -139
  92. package/src/pages/components/buttons.mdx +236 -236
  93. package/src/pages/components/card.mdx +294 -294
  94. package/src/pages/components/carousel.mdx +62 -62
  95. package/src/pages/components/copyright.mdx +42 -42
  96. package/src/pages/components/details-list.mdx +115 -115
  97. package/src/pages/components/features-list.mdx +37 -37
  98. package/src/pages/components/flags.mdx +49 -49
  99. package/src/pages/components/fuck-russia.mdx +39 -39
  100. package/src/pages/components/hand-drive.mdx +38 -38
  101. package/src/pages/components/headline.mdx +152 -152
  102. package/src/pages/components/icons.astro +48 -48
  103. package/src/pages/components/image.mdx +513 -513
  104. package/src/pages/components/input.mdx +45 -45
  105. package/src/pages/components/jumbatron.mdx +95 -95
  106. package/src/pages/components/modal.mdx +64 -64
  107. package/src/pages/components/post-header.mdx +60 -60
  108. package/src/pages/components/pr-code.mdx +65 -65
  109. package/src/pages/components/product-number.mdx +66 -66
  110. package/src/pages/components/product-tile.mdx +51 -51
  111. package/src/pages/components/quote.mdx +33 -33
  112. package/src/pages/components/slimbanner.mdx +35 -35
  113. package/src/pages/components/table.mdx +108 -108
  114. package/src/pages/core/colors.mdx +10 -10
  115. package/src/pages/core/grid.mdx +89 -89
  116. package/src/pages/core/introduction.mdx +77 -77
  117. package/src/pages/core/shadows.astro +20 -20
  118. package/src/pages/core/typography.astro +47 -47
  119. package/src/pages/index.astro +126 -125
  120. package/src/pages/patterns/introduction.mdx +60 -60
  121. package/src/pwa.ts +12 -12
  122. package/src/styles/_variables.scss +66 -66
  123. package/src/styles/base/_base.scss +184 -184
  124. package/src/styles/base/_typography.scss +70 -70
  125. package/src/styles/base/grid.scss +93 -93
  126. package/src/styles/content.scss +73 -73
  127. package/src/styles/main.scss +7 -7
  128. package/tailwind.config.cjs +8 -8
  129. package/tsconfig.json +11 -11
  130. package/uno.config.ts +256 -256
@@ -1,46 +1,46 @@
1
- ---
2
- title: Input
3
- layout: ../../layouts/MainLayout.astro
4
- ---
5
- import MainInput from '../../components/MainInput.vue'
6
-
7
- # Input text
8
-
9
- <div class="component-preview">
10
- <MainInput label="Name"></MainInput>
11
- </div>
12
-
13
- ```js
14
- <MainInput type="text" value="Hello world!"></MainInput>
15
- ```
16
-
17
-
18
-
19
- <div class="component-preview">
20
-
21
- <div class="bg-white grid items-end w-full gap-6 md:grid-cols-3 px-4 py-6">
22
- <div class="relative">
23
- <input type="text" id="floating_filled" class="block rounded-t-lg px-2.5 pb-2.5 pt-5 w-full text-sm text-gray-900 bg-gray-50 dark:bg-gray-700 border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
24
- <label for="floating_filled" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating filled</label>
25
- </div>
26
-
27
- <div class="relative z-0">
28
- <input type="text" id="floating_standard" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
29
- <label for="floating_standard" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating standard</label>
30
- </div>
31
- </div>
32
-
33
- </div>
34
-
35
-
36
- ```js
37
- <div class="relative">
38
- <input type="text" id="floating_filled" class="block rounded-t-lg px-2.5 pb-2.5 pt-5 w-full text-sm text-gray-900 bg-gray-50 dark:bg-gray-700 border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
39
- <label for="floating_filled" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating filled</label>
40
- </div>
41
-
42
- <div class="relative z-0">
43
- <input type="text" id="floating_standard" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
44
- <label for="floating_standard" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating standard</label>
45
- </div>
1
+ ---
2
+ title: Input
3
+ layout: ../../layouts/MainLayout.astro
4
+ ---
5
+ import MainInput from '../../components/MainInput.vue'
6
+
7
+ # Input text
8
+
9
+ <div class="component-preview">
10
+ <MainInput label="Name"></MainInput>
11
+ </div>
12
+
13
+ ```js
14
+ <MainInput type="text" value="Hello world!"></MainInput>
15
+ ```
16
+
17
+
18
+
19
+ <div class="component-preview">
20
+
21
+ <div class="bg-white grid items-end w-full gap-6 md:grid-cols-3 px-4 py-6">
22
+ <div class="relative">
23
+ <input type="text" id="floating_filled" class="block rounded-t-lg px-2.5 pb-2.5 pt-5 w-full text-sm text-gray-900 bg-gray-50 dark:bg-gray-700 border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
24
+ <label for="floating_filled" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating filled</label>
25
+ </div>
26
+
27
+ <div class="relative z-0">
28
+ <input type="text" id="floating_standard" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
29
+ <label for="floating_standard" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating standard</label>
30
+ </div>
31
+ </div>
32
+
33
+ </div>
34
+
35
+
36
+ ```js
37
+ <div class="relative">
38
+ <input type="text" id="floating_filled" class="block rounded-t-lg px-2.5 pb-2.5 pt-5 w-full text-sm text-gray-900 bg-gray-50 dark:bg-gray-700 border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
39
+ <label for="floating_filled" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-4 scale-75 top-4 z-10 origin-[0] start-2.5 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-4 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating filled</label>
40
+ </div>
41
+
42
+ <div class="relative z-0">
43
+ <input type="text" id="floating_standard" class="block py-2.5 px-0 w-full text-sm text-gray-900 bg-transparent border-0 border-b-2 border-gray-300 appearance-none dark:text-white dark:border-gray-600 dark:focus:border-blue-500 focus:outline-none focus:ring-0 focus:border-blue-600 peer" placeholder=" " />
44
+ <label for="floating_standard" class="absolute text-sm text-gray-500 dark:text-gray-400 duration-300 transform -translate-y-6 scale-75 top-3 -z-10 origin-[0] peer-focus:start-0 peer-focus:text-blue-600 peer-focus:dark:text-blue-500 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-0 peer-focus:scale-75 peer-focus:-translate-y-6 rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto">Floating standard</label>
45
+ </div>
46
46
  ```
@@ -1,95 +1,95 @@
1
- ---
2
- title: "Jumbatron"
3
- layout: "../../layouts/MainLayout.astro"
4
- ---
5
- import Jumbatron from '../../components/Jumbatron.vue'
6
- import Button from '../../components/Button.vue'
7
-
8
- # Jumbatron
9
-
10
- A jumbotron indicates a big box for calling extra attention to some special content or information.
11
-
12
- Find the code for this page in the `src/pages/components/jumbatron.mdx` file.
13
-
14
- ## Jumbatron - classic
15
- <div class="component-preview">
16
- <Jumbatron class="w-full" intro={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`}>
17
- <p slot="subtitle"
18
- class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
19
- set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
20
- />
21
- <Button primary slot="cta" rounded
22
- href="#"
23
- title="short text"
24
- >
25
- Read More
26
- </Button>
27
- </Jumbatron>
28
- </div>
29
-
30
- ```js
31
- <Jumbatron intro={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`}>
32
- <span slot="intro" set:html= />
33
- <p slot="subtitle"
34
- class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
35
- set:html="subtitle"
36
- />
37
- <Button primary slot="cta" rounded
38
- href="#"
39
- title="short text"
40
- >
41
- Read More
42
- </Button>
43
- </Jumbatron>
44
- ```
45
-
46
- ## Small Jumbatron
47
-
48
- <div class="component-preview">
49
- <Jumbatron class="w-full" small intro={`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>
56
-
57
- ```js
58
- <Jumbatron small intro={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`}>
59
-
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="#"
66
- title="short text"
67
- >
68
- Read More
69
- </Button>
70
- </Jumbatron>
71
- ```
72
-
73
-
74
- ## Small Jumbatron - custom slot intro instead of prop
75
- <div class="component-preview">
76
- <Jumbatron class="w-full" small >
77
- <h2 slot="intro" class="text-3xl text-white sm:(text-3xl pt-0) md:text-4xl lg:text-5xl font-light font-headbold">Lorem ipsum dolor sit amet, <span class="text-lightBlue-500">consectetur</span> adipiscing elit.</h2>
78
- <p slot="subtitle"
79
- class="mt-5 sm:mt-8 sm:flex sm:justify-center"
80
- set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
81
- />
82
- </Jumbatron>
83
- </div>
84
-
85
- ```js
86
- <Jumbatron class="w-full" small >
87
- <h2 slot="intro" class="text-3xl text-white sm:(text-3xl pt-0) md:text-4xl lg:text-5xl font-light font-headbold">
88
- Lorem ipsum dolor sit amet, <span class="text-lightBlue-500">consectetur</span> adipiscing elit.
89
- </h2>
90
- <p slot="subtitle"
91
- class="mt-5 sm:mt-8 sm:flex sm:justify-center"
92
- set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
93
- />
94
- </Jumbatron>
95
- ```
1
+ ---
2
+ title: "Jumbatron"
3
+ layout: "../../layouts/MainLayout.astro"
4
+ ---
5
+ import Jumbatron from '../../components/Jumbatron.vue'
6
+ import Button from '../../components/Button.vue'
7
+
8
+ # Jumbatron
9
+
10
+ A jumbotron indicates a big box for calling extra attention to some special content or information.
11
+
12
+ Find the code for this page in the `src/pages/components/jumbatron.mdx` file.
13
+
14
+ ## Jumbatron - classic
15
+ <div class="component-preview">
16
+ <Jumbatron class="w-full" intro={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`}>
17
+ <p slot="subtitle"
18
+ class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
19
+ set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
20
+ />
21
+ <Button primary slot="cta" rounded
22
+ href="#"
23
+ title="short text"
24
+ >
25
+ Read More
26
+ </Button>
27
+ </Jumbatron>
28
+ </div>
29
+
30
+ ```js
31
+ <Jumbatron intro={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`}>
32
+ <span slot="intro" set:html= />
33
+ <p slot="subtitle"
34
+ class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
35
+ set:html="subtitle"
36
+ />
37
+ <Button primary slot="cta" rounded
38
+ href="#"
39
+ title="short text"
40
+ >
41
+ Read More
42
+ </Button>
43
+ </Jumbatron>
44
+ ```
45
+
46
+ ## Small Jumbatron
47
+
48
+ <div class="component-preview">
49
+ <Jumbatron class="w-full" small intro={`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>
56
+
57
+ ```js
58
+ <Jumbatron small intro={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`}>
59
+
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="#"
66
+ title="short text"
67
+ >
68
+ Read More
69
+ </Button>
70
+ </Jumbatron>
71
+ ```
72
+
73
+
74
+ ## Small Jumbatron - custom slot intro instead of prop
75
+ <div class="component-preview">
76
+ <Jumbatron class="w-full" small >
77
+ <h2 slot="intro" class="text-3xl text-white sm:(text-3xl pt-0) md:text-4xl lg:text-5xl font-light font-headbold">Lorem ipsum dolor sit amet, <span class="text-lightBlue-500">consectetur</span> adipiscing elit.</h2>
78
+ <p slot="subtitle"
79
+ class="mt-5 sm:mt-8 sm:flex sm:justify-center"
80
+ set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
81
+ />
82
+ </Jumbatron>
83
+ </div>
84
+
85
+ ```js
86
+ <Jumbatron class="w-full" small >
87
+ <h2 slot="intro" class="text-3xl text-white sm:(text-3xl pt-0) md:text-4xl lg:text-5xl font-light font-headbold">
88
+ Lorem ipsum dolor sit amet, <span class="text-lightBlue-500">consectetur</span> adipiscing elit.
89
+ </h2>
90
+ <p slot="subtitle"
91
+ class="mt-5 sm:mt-8 sm:flex sm:justify-center"
92
+ set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
93
+ />
94
+ </Jumbatron>
95
+ ```
@@ -1,64 +1,64 @@
1
- ---
2
- title: "Modal"
3
- layout: "../../layouts/MainLayout.astro"
4
- ---
5
- import Modal from '../../components/Modal.astro'
6
- import Button from '../../components/Button.vue'
7
- import { Icon } from 'astro-icon/components';
8
-
9
-
10
- # Modal
11
-
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
20
-
21
-
22
- <div class="component-preview">
23
- <Modal id="dialog" open="Open modal">
24
- <main slot="main">
25
- <p>Some extra content you would like here</p>
26
- <hr />
27
- </main>
28
- <Button primary slot="close" class="mt-4">Close</Button>
29
- </Modal>
30
- </div>
31
-
32
- ```js
33
- <Modal id="dialog" open="Open modal">
34
- <main slot="main">
35
- <p>Some extra content you would like here</p>
36
- <hr />
37
- <img width="60" height="80" src="/assets/logo.svg" alt="Astro logo">
38
- </main>
39
- <Button primary slot="close" class="mt-4">Close</Button>
40
- </Modal>
41
- ```
42
-
43
- ## Modal with different close button
44
-
45
- <div class="component-preview">
46
- <Modal id="dialog2" open="Open modal">
47
- <main slot="main">
48
- <p>Some extra content you would like here</p>
49
- </main>
50
- <Button primary slot="close" class="mt-4"><Icon name="octicon:x-24" /></Button>
51
- </Modal>
52
- </div>
53
-
54
- ```js
55
- <Modal id="dialog2" open="Open modal">
56
- <main slot="main">
57
- <p>Some extra content you would like here</p>
58
- <img width="60" height="80" src="/assets/logo.svg" alt="Astro logo">
59
- </main>
60
- <Button primary slot="close" class="mt-4"><Icon name="octicon:x-24" /></Button>
61
- </Modal>
62
- ```
63
-
64
-
1
+ ---
2
+ title: "Modal"
3
+ layout: "../../layouts/MainLayout.astro"
4
+ ---
5
+ import Modal from '../../components/Modal.astro'
6
+ import Button from '../../components/Button.vue'
7
+ import { Icon } from 'astro-icon/components';
8
+
9
+
10
+ # Modal
11
+
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
20
+
21
+
22
+ <div class="component-preview">
23
+ <Modal id="dialog" open="Open modal">
24
+ <main slot="main">
25
+ <p>Some extra content you would like here</p>
26
+ <hr />
27
+ </main>
28
+ <Button primary slot="close" class="mt-4">Close</Button>
29
+ </Modal>
30
+ </div>
31
+
32
+ ```js
33
+ <Modal id="dialog" open="Open modal">
34
+ <main slot="main">
35
+ <p>Some extra content you would like here</p>
36
+ <hr />
37
+ <img width="60" height="80" src="/assets/logo.svg" alt="Astro logo">
38
+ </main>
39
+ <Button primary slot="close" class="mt-4">Close</Button>
40
+ </Modal>
41
+ ```
42
+
43
+ ## Modal with different close button
44
+
45
+ <div class="component-preview">
46
+ <Modal id="dialog2" open="Open modal">
47
+ <main slot="main">
48
+ <p>Some extra content you would like here</p>
49
+ </main>
50
+ <Button primary slot="close" class="mt-4"><Icon name="octicon:x-24" /></Button>
51
+ </Modal>
52
+ </div>
53
+
54
+ ```js
55
+ <Modal id="dialog2" open="Open modal">
56
+ <main slot="main">
57
+ <p>Some extra content you would like here</p>
58
+ <img width="60" height="80" src="/assets/logo.svg" alt="Astro logo">
59
+ </main>
60
+ <Button primary slot="close" class="mt-4"><Icon name="octicon:x-24" /></Button>
61
+ </Modal>
62
+ ```
63
+
64
+
@@ -1,60 +1,60 @@
1
- ---
2
- title: "PostHeader"
3
- layout: "../../layouts/MainLayout.astro"
4
- ---
5
- import PostHeader from '../../components/PostHeader.astro'
6
- export const author = { firstName: 'Szymon', name: 'CNK' }
7
- export const categories = [{"name":"Tools & garage accessories","uri":"#"}, {"name":"Lorem Ipsum","uri":"#"}]
8
- export const date = "2023-07-13T01:35:03"
9
-
10
- # PostHeader
11
-
12
- WordPress PostHeader - post top component for WordPress Single Post template data like categories etc. comes from WP Rest API.
13
-
14
-
15
- ## PostHeader with some content for WordPress single page template
16
-
17
- <div class="component-preview">
18
- <div class="relative w-full">
19
- <PostHeader
20
- author={author}
21
- categories={categories}
22
- title="Lorem Ipsum"
23
- date={date}
24
- image="https://img.freepik.com/free-photo/morskie-oko-tatry_1204-510.jpg?w=1380&t=st=1706297574~exp=1706298174~hmac=5c93e7317e7dbe602d5dcd708c5b9708ffabcb5e8ab2b7f2790941975dfcefe4"
25
- />
26
- </div>
27
- </div>
28
-
29
- ```js
30
- <div class="relative">
31
- <PostHeader
32
- author={ { firstName: 'Szymon', name: 'CNK' } }
33
- categories={ [{"name":"Tools & garage accessories","uri":"/category/garage/tools-garage-accessories/"}, , {"name":"Lorem Ipsum","uri":"#"}] }
34
- title="Lorem Ipsum"
35
- date="2023-07-13T01:35:03"
36
- image="https://img.freepik.com/free-photo/morskie-oko-tatry_1204-510.jpg?w=1380&t=st=1706297574~exp=1706298174~hmac=5c93e7317e7dbe602d5dcd708c5b9708ffabcb5e8ab2b7f2790941975dfcefe4"
37
- />
38
- </div>
39
- ```
40
-
41
-
42
- ## PostHeader - only title
43
-
44
- <div class="component-preview">
45
- <div class="relative w-full">
46
- <PostHeader
47
- title="Lorem Ipsum"
48
- 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"
49
- />
50
- </div>
51
- </div>
52
-
53
- ```js
54
- <div class="relative">
55
- <PostHeader
56
- title="Lorem Ipsum"
57
- 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"
58
- />
59
- </div>
60
- ```
1
+ ---
2
+ title: "PostHeader"
3
+ layout: "../../layouts/MainLayout.astro"
4
+ ---
5
+ import PostHeader from '../../components/PostHeader.astro'
6
+ export const author = { firstName: 'Szymon', name: 'CNK' }
7
+ export const categories = [{"name":"Tools & garage accessories","uri":"#"}, {"name":"Lorem Ipsum","uri":"#"}]
8
+ export const date = "2023-07-13T01:35:03"
9
+
10
+ # PostHeader
11
+
12
+ WordPress PostHeader - post top component for WordPress Single Post template data like categories etc. comes from WP Rest API.
13
+
14
+
15
+ ## PostHeader with some content for WordPress single page template
16
+
17
+ <div class="component-preview">
18
+ <div class="relative w-full">
19
+ <PostHeader
20
+ author={author}
21
+ categories={categories}
22
+ title="Lorem Ipsum"
23
+ date={date}
24
+ image="https://img.freepik.com/free-photo/morskie-oko-tatry_1204-510.jpg?w=1380&t=st=1706297574~exp=1706298174~hmac=5c93e7317e7dbe602d5dcd708c5b9708ffabcb5e8ab2b7f2790941975dfcefe4"
25
+ />
26
+ </div>
27
+ </div>
28
+
29
+ ```js
30
+ <div class="relative">
31
+ <PostHeader
32
+ author={ { firstName: 'Szymon', name: 'CNK' } }
33
+ categories={ [{"name":"Tools & garage accessories","uri":"/category/garage/tools-garage-accessories/"}, , {"name":"Lorem Ipsum","uri":"#"}] }
34
+ title="Lorem Ipsum"
35
+ date="2023-07-13T01:35:03"
36
+ image="https://img.freepik.com/free-photo/morskie-oko-tatry_1204-510.jpg?w=1380&t=st=1706297574~exp=1706298174~hmac=5c93e7317e7dbe602d5dcd708c5b9708ffabcb5e8ab2b7f2790941975dfcefe4"
37
+ />
38
+ </div>
39
+ ```
40
+
41
+
42
+ ## PostHeader - only title
43
+
44
+ <div class="component-preview">
45
+ <div class="relative w-full">
46
+ <PostHeader
47
+ title="Lorem Ipsum"
48
+ 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"
49
+ />
50
+ </div>
51
+ </div>
52
+
53
+ ```js
54
+ <div class="relative">
55
+ <PostHeader
56
+ title="Lorem Ipsum"
57
+ 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"
58
+ />
59
+ </div>
60
+ ```