spoko-design-system 0.2.20 → 0.2.23
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.
- package/.github/dependabot.yml +11 -11
- package/.github/todo.yml +3 -3
- package/.github/workflows/deploy.yml +39 -39
- package/.stackblitzrc +5 -5
- package/.vscode/extensions.json +5 -5
- package/.vscode/launch.json +11 -11
- package/.vscode/settings.json +5 -5
- package/LICENSE +21 -21
- package/README.md +113 -113
- package/astro-i18next.config.mjs +17 -17
- package/astro-i18next.config.ts +10 -10
- package/astro.config.mjs +141 -141
- package/dev-dist/sw.js +91 -91
- package/dev-dist/workbox-c676b6d3.js +3391 -3391
- package/index.ts +6 -6
- package/package.json +95 -95
- package/public/fonts/lg.svg +53 -53
- package/public/fonts/vwhead-bold-demo.html +549 -549
- package/public/fonts/vwhead-regular-demo.html +549 -549
- package/public/fonts/vwtext-bold-demo.html +549 -549
- package/public/fonts/vwtext-regular-demo.html +549 -549
- package/public/github.svg +3 -3
- package/public/grid_dot.svg +4 -4
- package/public/linkedin.svg +44 -44
- package/public/locales/en/translation.json +8 -8
- package/public/locales/pl/translation.json +8 -8
- package/public/make-scrollable-code-focusable.js +3 -3
- package/public/pagefind.yml +3 -3
- package/public/polo.blue.svg +29 -29
- package/public/spoko.space.svg +71 -71
- package/public/twitter.svg +46 -46
- package/renovate.json +6 -6
- package/sandbox.config.json +11 -11
- package/src/MyComponent.astro +8 -8
- package/src/components/Badge.vue +19 -19
- package/src/components/Badges.vue +21 -21
- package/src/components/Breadcrumbs.vue +110 -110
- package/src/components/Button.vue +55 -55
- package/src/components/ButtonCopy.vue +47 -47
- package/src/components/Card.astro +27 -27
- package/src/components/Carousel.astro +26 -26
- package/src/components/CategoryLink.astro +18 -18
- package/src/components/Copyright.astro +12 -12
- package/src/components/Date.astro +7 -7
- package/src/components/FeaturesList.vue +41 -41
- package/src/components/FuckRussia.vue +80 -80
- package/src/components/HandDrive.astro +29 -29
- package/src/components/Header/Header.astro +214 -214
- package/src/components/Header/SkipToContent.astro +1 -1
- package/src/components/Headline.vue +48 -48
- package/src/components/Image.astro +30 -30
- package/src/components/Jumbatron.vue +40 -40
- package/src/components/LeftSidebar.astro +53 -53
- package/src/components/MainColors.vue +23 -23
- package/src/components/MainInput.vue +15 -15
- package/src/components/Modal.astro +27 -27
- package/src/components/PageContent.astro +5 -5
- package/src/components/PartNumber.vue +27 -27
- package/src/components/PostHeader.astro +103 -103
- package/src/components/PrCode.vue +156 -156
- package/src/components/ProductCarousel.astro +38 -38
- package/src/components/ProductCodes.vue +39 -39
- package/src/components/ProductDetailName.vue +52 -52
- package/src/components/ProductDetailsList.vue +65 -65
- package/src/components/ProductNumber copy.astro +116 -116
- package/src/components/ProductNumber.astro +114 -114
- package/src/components/ProductTile.astro +48 -48
- package/src/components/Quote.vue +23 -23
- package/src/components/ReloadPrompt.astro +50 -50
- package/src/components/SlimBanner.vue +70 -70
- package/src/components/Table.vue +32 -32
- package/src/components/TableOfContents.astro +15 -15
- package/src/components/Translations.vue +23 -23
- package/src/components/flags/FlagPL.vue +3 -3
- package/src/components/flags/FlagUA.vue +2 -2
- package/src/components/layout/Container.astro +7 -7
- package/src/components/layout/Header.astro +80 -80
- package/src/config.ts +56 -56
- package/src/design.config.ts +79 -79
- package/src/env.d.ts +1 -1
- package/src/layouts/Layout.astro +60 -60
- package/src/layouts/MainLayout.astro +81 -81
- package/src/layouts/partials/FooterCommon.astro +4 -4
- package/src/layouts/partials/HeadCommon.astro +44 -44
- package/src/layouts/partials/HeadSEO.astro +41 -41
- package/src/pages/components/badges.mdx +55 -55
- package/src/pages/components/breadcrumbs.mdx +139 -139
- package/src/pages/components/buttons.mdx +236 -236
- package/src/pages/components/card.mdx +294 -294
- package/src/pages/components/carousel.mdx +62 -62
- package/src/pages/components/copyright.mdx +42 -42
- package/src/pages/components/details-list.mdx +115 -115
- package/src/pages/components/features-list.mdx +37 -37
- package/src/pages/components/flags.mdx +49 -49
- package/src/pages/components/fuck-russia.mdx +39 -39
- package/src/pages/components/hand-drive.mdx +38 -38
- package/src/pages/components/headline.mdx +152 -152
- package/src/pages/components/icons.astro +48 -48
- package/src/pages/components/image.mdx +513 -513
- package/src/pages/components/input.mdx +45 -45
- package/src/pages/components/jumbatron.mdx +73 -73
- package/src/pages/components/modal.mdx +64 -64
- package/src/pages/components/post-header.mdx +60 -60
- package/src/pages/components/pr-code.mdx +65 -65
- package/src/pages/components/product-number.mdx +66 -66
- package/src/pages/components/product-tile.mdx +51 -51
- package/src/pages/components/quote.mdx +33 -33
- package/src/pages/components/slimbanner.mdx +29 -29
- package/src/pages/components/table.mdx +108 -108
- package/src/pages/core/colors.mdx +10 -10
- package/src/pages/core/grid.mdx +89 -89
- package/src/pages/core/introduction.mdx +77 -77
- package/src/pages/core/shadows.astro +20 -20
- package/src/pages/core/typography.astro +47 -47
- package/src/pages/index.astro +125 -125
- package/src/pages/patterns/introduction.mdx +60 -60
- package/src/pwa.ts +12 -12
- package/src/styles/_variables.scss +66 -66
- package/src/styles/base/_base.scss +184 -184
- package/src/styles/base/_typography.scss +70 -70
- package/src/styles/base/grid.scss +98 -98
- package/src/styles/content.scss +64 -64
- package/src/styles/main.scss +7 -7
- package/tailwind.config.cjs +8 -8
- package/tsconfig.json +11 -11
- package/uno.config.ts +252 -253
|
@@ -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,73 +1,73 @@
|
|
|
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">
|
|
17
|
-
<span slot="intro" set:html={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`} />
|
|
18
|
-
<p slot="subtitle"
|
|
19
|
-
class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
|
|
20
|
-
set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
|
|
21
|
-
/>
|
|
22
|
-
<Button primary slot="cta"
|
|
23
|
-
href="#"
|
|
24
|
-
title="short text"
|
|
25
|
-
>
|
|
26
|
-
Read More
|
|
27
|
-
</Button>
|
|
28
|
-
</Jumbatron>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
```js
|
|
32
|
-
<Jumbatron>
|
|
33
|
-
<span slot="intro" set:html="text-intro" />
|
|
34
|
-
<p slot="subtitle"
|
|
35
|
-
class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
|
|
36
|
-
set:html="subtitle"
|
|
37
|
-
/>
|
|
38
|
-
<Button primary slot="cta"
|
|
39
|
-
href="#"
|
|
40
|
-
title="short text"
|
|
41
|
-
>
|
|
42
|
-
Read More
|
|
43
|
-
</Button>
|
|
44
|
-
</Jumbatron>
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Small Jumbatron
|
|
48
|
-
|
|
49
|
-
<div class="component-preview">
|
|
50
|
-
<Jumbatron class="w-full" small>
|
|
51
|
-
<span slot="intro" set:html={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`} />
|
|
52
|
-
<p slot="subtitle"
|
|
53
|
-
class="mt-5 sm:mt-8 sm:flex sm:justify-center"
|
|
54
|
-
set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
|
|
55
|
-
/>
|
|
56
|
-
</Jumbatron>
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
|
-
```js
|
|
60
|
-
<Jumbatron small>
|
|
61
|
-
<span slot="intro" set:html="text-intro" />
|
|
62
|
-
<p slot="subtitle"
|
|
63
|
-
class="mt-5 sm:mt-8 sm:flex sm:justify-center"
|
|
64
|
-
set:html="subtitle"
|
|
65
|
-
/>
|
|
66
|
-
<Button primary slot="cta"
|
|
67
|
-
href="#"
|
|
68
|
-
title="short text"
|
|
69
|
-
>
|
|
70
|
-
Read More
|
|
71
|
-
</Button>
|
|
72
|
-
</Jumbatron>
|
|
73
|
-
```
|
|
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">
|
|
17
|
+
<span slot="intro" set:html={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`} />
|
|
18
|
+
<p slot="subtitle"
|
|
19
|
+
class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
|
|
20
|
+
set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
|
|
21
|
+
/>
|
|
22
|
+
<Button primary slot="cta"
|
|
23
|
+
href="#"
|
|
24
|
+
title="short text"
|
|
25
|
+
>
|
|
26
|
+
Read More
|
|
27
|
+
</Button>
|
|
28
|
+
</Jumbatron>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
31
|
+
```js
|
|
32
|
+
<Jumbatron>
|
|
33
|
+
<span slot="intro" set:html="text-intro" />
|
|
34
|
+
<p slot="subtitle"
|
|
35
|
+
class="mt-3 text-base text-gray-200 sm:mt-5 text-lg md:text-xl lg:mx-0 md:mt-5"
|
|
36
|
+
set:html="subtitle"
|
|
37
|
+
/>
|
|
38
|
+
<Button primary slot="cta"
|
|
39
|
+
href="#"
|
|
40
|
+
title="short text"
|
|
41
|
+
>
|
|
42
|
+
Read More
|
|
43
|
+
</Button>
|
|
44
|
+
</Jumbatron>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Small Jumbatron
|
|
48
|
+
|
|
49
|
+
<div class="component-preview">
|
|
50
|
+
<Jumbatron class="w-full" small>
|
|
51
|
+
<span slot="intro" set:html={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`} />
|
|
52
|
+
<p slot="subtitle"
|
|
53
|
+
class="mt-5 sm:mt-8 sm:flex sm:justify-center"
|
|
54
|
+
set:html="Nunc posuere massa eget turpis laoreet ultrices eget vel massa."
|
|
55
|
+
/>
|
|
56
|
+
</Jumbatron>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
```js
|
|
60
|
+
<Jumbatron small>
|
|
61
|
+
<span slot="intro" set:html="text-intro" />
|
|
62
|
+
<p slot="subtitle"
|
|
63
|
+
class="mt-5 sm:mt-8 sm:flex sm:justify-center"
|
|
64
|
+
set:html="subtitle"
|
|
65
|
+
/>
|
|
66
|
+
<Button primary slot="cta"
|
|
67
|
+
href="#"
|
|
68
|
+
title="short text"
|
|
69
|
+
>
|
|
70
|
+
Read More
|
|
71
|
+
</Button>
|
|
72
|
+
</Jumbatron>
|
|
73
|
+
```
|
|
@@ -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
|
+
```
|
|
@@ -1,65 +1,65 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "PrCode"
|
|
3
|
-
layout: "../../layouts/MainLayout.astro"
|
|
4
|
-
---
|
|
5
|
-
import PrCode from '../../components/PrCode.vue'
|
|
6
|
-
import ProductCodes from '../../components/ProductCodes.vue'
|
|
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
|
-
## PR-Code
|
|
20
|
-
Single PR-Code.
|
|
21
|
-
|
|
22
|
-
### import:
|
|
23
|
-
|
|
24
|
-
```js
|
|
25
|
-
import PrCode from 'spoko-design-system/src/components/PrCode.vue'
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
#
|
|
29
|
-
|
|
30
|
-
<div class="component-preview">
|
|
31
|
-
<div class="bg-white p-6 w-full">
|
|
32
|
-
<PrCode prcode="2JP" />
|
|
33
|
-
<PrCode prcode="1ZJ" />
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
|
|
37
|
-
```js
|
|
38
|
-
<PrCode prcode="2JP" />
|
|
39
|
-
<PrCode prcode="1ZJ" />
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## PR-Codes List
|
|
46
|
-
Component to display list of pr codes from array.
|
|
47
|
-
|
|
48
|
-
### import:
|
|
49
|
-
|
|
50
|
-
```js
|
|
51
|
-
import ProductCodes from 'spoko-design-system/src/components/ProductCodes.vue'
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
#
|
|
55
|
-
|
|
56
|
-
<div class="component-preview">
|
|
57
|
-
<div class="bg-white p-6 w-full">
|
|
58
|
-
<ProductCodes prcodes={["2JP", "1ZJ"]} />
|
|
59
|
-
</div>
|
|
60
|
-
</div>
|
|
61
|
-
|
|
62
|
-
```js
|
|
63
|
-
<ProductCodes prcodes={["2JP", "1ZJ"]} />
|
|
64
|
-
```
|
|
65
|
-
|
|
1
|
+
---
|
|
2
|
+
title: "PrCode"
|
|
3
|
+
layout: "../../layouts/MainLayout.astro"
|
|
4
|
+
---
|
|
5
|
+
import PrCode from '../../components/PrCode.vue'
|
|
6
|
+
import ProductCodes from '../../components/ProductCodes.vue'
|
|
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
|
+
## PR-Code
|
|
20
|
+
Single PR-Code.
|
|
21
|
+
|
|
22
|
+
### import:
|
|
23
|
+
|
|
24
|
+
```js
|
|
25
|
+
import PrCode from 'spoko-design-system/src/components/PrCode.vue'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
#
|
|
29
|
+
|
|
30
|
+
<div class="component-preview">
|
|
31
|
+
<div class="bg-white p-6 w-full">
|
|
32
|
+
<PrCode prcode="2JP" />
|
|
33
|
+
<PrCode prcode="1ZJ" />
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
```js
|
|
38
|
+
<PrCode prcode="2JP" />
|
|
39
|
+
<PrCode prcode="1ZJ" />
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## PR-Codes List
|
|
46
|
+
Component to display list of pr codes from array.
|
|
47
|
+
|
|
48
|
+
### import:
|
|
49
|
+
|
|
50
|
+
```js
|
|
51
|
+
import ProductCodes from 'spoko-design-system/src/components/ProductCodes.vue'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
#
|
|
55
|
+
|
|
56
|
+
<div class="component-preview">
|
|
57
|
+
<div class="bg-white p-6 w-full">
|
|
58
|
+
<ProductCodes prcodes={["2JP", "1ZJ"]} />
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
```js
|
|
63
|
+
<ProductCodes prcodes={["2JP", "1ZJ"]} />
|
|
64
|
+
```
|
|
65
|
+
|