spoko-design-system 0.0.1 → 0.0.2

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 (99) hide show
  1. package/.astro/icon.d.ts +2199 -2192
  2. package/.github/workflows/deploy.yml +39 -39
  3. package/.stackblitzrc +5 -5
  4. package/.vscode/extensions.json +4 -4
  5. package/.vscode/launch.json +11 -11
  6. package/LICENSE +21 -21
  7. package/Layout/Header.astro +111 -89
  8. package/README.md +69 -69
  9. package/astro-i18next.config.mjs +17 -17
  10. package/astro-i18next.config.ts +10 -10
  11. package/astro.config.mjs +45 -42
  12. package/index.ts +6 -6
  13. package/package.json +75 -71
  14. package/public/astro-design-system-logo.svg +10 -10
  15. package/public/fonts/lg.svg +53 -53
  16. package/public/fonts/vwhead-bold-demo.html +549 -549
  17. package/public/fonts/vwhead-regular-demo.html +549 -549
  18. package/public/fonts/vwtext-bold-demo.html +549 -549
  19. package/public/fonts/vwtext-regular-demo.html +549 -549
  20. package/public/github.svg +3 -3
  21. package/public/grid_dot.svg +4 -4
  22. package/public/linkedin.svg +44 -44
  23. package/public/locales/en/translation.json +5 -5
  24. package/public/locales/pl/translation.json +5 -5
  25. package/public/make-scrollable-code-focusable.js +3 -3
  26. package/public/polo.blue.svg +29 -0
  27. package/public/spoko.space.svg +71 -0
  28. package/public/twitter.svg +46 -46
  29. package/sandbox.config.json +11 -11
  30. package/src/MyComponent.astro +8 -8
  31. package/src/components/Badge.vue +19 -19
  32. package/src/components/Badges.vue +24 -23
  33. package/src/components/Breadcrumbs.vue +108 -111
  34. package/src/components/Button.vue +28 -0
  35. package/src/components/CategoryLink.astro +18 -0
  36. package/src/components/Copyright.astro +11 -11
  37. package/src/components/Date.astro +7 -0
  38. package/src/components/FuckRussia.vue +65 -65
  39. package/src/components/HandDrive.astro +30 -30
  40. package/src/components/HeadCommon.astro +40 -40
  41. package/src/components/HeadSEO.astro +41 -41
  42. package/src/components/Header/AstroLogo.astro +7 -27
  43. package/src/components/Header/Header.astro +44 -48
  44. package/src/components/Header/SkipToContent.astro +1 -1
  45. package/src/components/Headline.vue +28 -0
  46. package/src/components/Jumbatron.vue +31 -31
  47. package/src/components/LeftSidebar.astro +44 -44
  48. package/src/components/MainColors.vue +29 -29
  49. package/src/components/MainInput.vue +18 -18
  50. package/src/components/MainTable.vue +40 -45
  51. package/src/components/Modal.astro +30 -0
  52. package/src/components/PageContent.astro +14 -14
  53. package/src/components/PostHeader.astro +104 -0
  54. package/src/components/RightSidebar.astro +15 -11
  55. package/src/components/SlimBanner.vue +59 -59
  56. package/src/components/TableOfContents.astro +11 -11
  57. package/src/components/Translations.vue +27 -0
  58. package/src/components/flags/FlagPL.vue +2 -2
  59. package/src/components/flags/FlagUA.vue +2 -2
  60. package/src/components/layout/Header.astro +50 -69
  61. package/src/config.ts +47 -42
  62. package/src/design.config.ts +73 -92
  63. package/src/env.d.ts +1 -1
  64. package/src/flag-poland.svg +1 -0
  65. package/src/flag-uk.svg +1 -0
  66. package/src/layouts/Layout.astro +51 -0
  67. package/src/layouts/MainLayout.astro +68 -50
  68. package/src/pages/components/badges.mdx +37 -35
  69. package/src/pages/components/breadcrumbs.mdx +100 -103
  70. package/src/pages/components/buttons.mdx +62 -60
  71. package/src/pages/components/copyright.mdx +41 -24
  72. package/src/pages/components/flags.mdx +40 -26
  73. package/src/pages/components/fuck-russia.mdx +39 -16
  74. package/src/pages/components/hand-drive.mdx +33 -27
  75. package/src/pages/components/headline.mdx +129 -0
  76. package/src/pages/components/icons.astro +52 -45
  77. package/src/pages/components/input.mdx +45 -14
  78. package/src/pages/components/jumbatron.mdx +48 -48
  79. package/src/pages/components/modal.mdx +58 -0
  80. package/src/pages/components/post-header.mdx +36 -0
  81. package/src/pages/components/slimbanner.mdx +29 -27
  82. package/src/pages/components/table.mdx +20 -20
  83. package/src/pages/core/colors.mdx +8 -8
  84. package/src/pages/core/introduction.mdx +74 -68
  85. package/src/pages/core/shadows.astro +20 -20
  86. package/src/pages/core/typography.astro +46 -46
  87. package/src/pages/index.astro +67 -52
  88. package/src/pages/patterns/introduction.mdx +60 -61
  89. package/src/styles/_variables.scss +75 -75
  90. package/src/styles/base/_base.scss +158 -158
  91. package/src/styles/base/_typography.scss +147 -147
  92. package/src/styles/content.scss +51 -72
  93. package/src/styles/main.scss +22 -22
  94. package/tailwind.config.cjs +8 -8
  95. package/tsconfig.json +11 -11
  96. package/uno.config.ts +227 -227
  97. package/src/components/MainButton.vue +0 -26
  98. package/src/components/MainStatusPill.vue +0 -32
  99. package/src/pages/components/status-pill.mdx +0 -22
@@ -1,92 +1,73 @@
1
- export const COLORS = {
2
- gray: [
3
- { name: "100", value: "#f3f4f6" },
4
- { name: "200", value: "#e5e7eb" },
5
- { name: "300", value: "#b5bbc5" },
6
- { name: "400", value: "#9ca3af" },
7
- { name: "500", value: "#64748B" },
8
- ],
9
- blue: [
10
- { name: "50", value: "#eff6ff" },
11
- { name: "100", value: "#dbeafe" },
12
- { name: "200", value: "#bfdbfe" },
13
- { name: "300", value: "#93c5fd" },
14
- { name: "400", value: "#60a5fa" },
15
- { name: "500", value: "#3b82f6" },
16
- { name: "600", value: "#02307d" },
17
- { name: "700", value: "#001e50" },
18
- { name: "800", value: "#00437a" },
19
- { name: "900", value: "#000f28" },
20
- { name: "901", value: "#0c1a32" },
21
- { name: "wrc", value: "#0000c8" },
22
- ],
23
- lightBlue: [
24
- { name: "400", value: "#00b0f0" },
25
- { name: "500", value: "#0099da" },
26
- { name: "600", value: "#0087c1" },
27
- { name: "700", value: "#006ea6" },
28
- ],
29
- green: [
30
- { name: "50", value: "#f0fdfc" },
31
- { name: "100", value: "#e1f9f7" },
32
- { name: "200", value: "#c3f3eb" },
33
- { name: "300", value: "#a0ece5" },
34
- { name: "400", value: "#7ddcd3" },
35
- { name: "500", value: "#5bc9c0" },
36
- { name: "600", value: "#4db7b2" },
37
- { name: "700", value: "#3da69e" },
38
- { name: "800", value: "#2d8c82" },
39
- { name: "900", value: "#1e7a6e" },
40
- ],
41
- red: [
42
- { name: "50", value: "#fdf2f2" },
43
- { name: "100", value: "#fde8e8" },
44
- { name: "200", value: "#fcd9d9" },
45
- { name: "300", value: "#fbcbcb" },
46
- { name: "400", value: "#f8b5b5" },
47
- { name: "500", value: "#f49f9f" },
48
- { name: "600", value: "#e57373" },
49
- { name: "700", value: "#d73a3a" },
50
- { name: "800", value: "#c62e2e" },
51
- { name: "900", value: "#ad1c1c" },
52
- ],
53
- };
54
-
55
- export const TYPOGRAPHY = {
56
- fontFamily: "Inter, system",
57
- scale: [
58
- { name: "h1", size: "22pt", weight: "400" },
59
- { name: "h2", size: "17pt", weight: "500" },
60
- { name: "h3", size: "13pt", weight: "600" },
61
- { name: "h4", size: "13pt", weight: "500" },
62
- { name: "body", size: "13pt", weight: "400" },
63
- { name: "button", size: "13pt", weight: "400" },
64
- { name: "caption", size: "10pt", weight: "400" },
65
- ],
66
- };
67
-
68
- export const SHADOWS = {
69
- types: [
70
- { name: "xs", value: "0px 2px 4px rgba(0, 0, 0, 0.08)" },
71
- { name: "sm", value: "0px 4px 8px rgba(0, 0, 0, 0.125)" },
72
- { name: "md", value: "0px 8px 16px rgba(0, 0, 0, 0.125)" },
73
- { name: "lg", value: "0px 16px 32px rgba(0, 0, 0, 0.125)" },
74
- { name: "xl", value: "0px 32px 64px rgba(0, 0, 0, 0.125)" },
75
- { name: "2xl", value: "0px 64px 128px rgba(0, 0, 0, 0.125)" },
76
- ],
77
- };
78
-
79
-
80
- export const FONTS = {
81
- types: [
82
- { name: "vw_textregular", value: "font-textregular" },
83
- { name: "vw_textregular", value: "font-sans" },
84
- { name: "vw_textbold", value: "font-textbold" },
85
- { name: "vw_headbold", value: "font-headbold" },
86
- { name: "vw_headregular", value: "vw_headregular" },
87
- { name: "vw_headlight", value: "font-headlight" },
88
- { name: "vw_textlight", value: "font-textlight" },
89
- { name: "Nova Mono", value: "font-novamono" },
90
- { name: "Nova Mono", value: "font-mono" }
91
- ],
92
- };
1
+ export const COLORS = {
2
+ gray: [
3
+ { name: "100", value: "#f3f4f6" },
4
+ { name: "200", value: "#e5e7eb" },
5
+ { name: "300", value: "#b5bbc5" },
6
+ { name: "400", value: "#9ca3af" },
7
+ { name: "500", value: "#64748B" },
8
+ ],
9
+ blue: [
10
+ { name: "50", value: "#eff6ff" },
11
+ { name: "100", value: "#dbeafe" },
12
+ { name: "200", value: "#bfdbfe" },
13
+ { name: "300", value: "#93c5fd" },
14
+ { name: "400", value: "#60a5fa" },
15
+ { name: "500", value: "#3b82f6" },
16
+ { name: "600", value: "#02307d" },
17
+ { name: "700", value: "#001e50" },
18
+ { name: "800", value: "#00437a" },
19
+ { name: "900", value: "#000f28" },
20
+ { name: "901", value: "#0c1a32" },
21
+ { name: "wrc", value: "#0000c8" },
22
+ ],
23
+ lightBlue: [
24
+ { name: "400", value: "#00b0f0" },
25
+ { name: "500", value: "#0099da" },
26
+ { name: "600", value: "#0087c1" },
27
+ { name: "700", value: "#006ea6" },
28
+ ],
29
+ red: [
30
+ { name: "400", value: "#f8b5b5" },
31
+ { name: "500", value: "#f49f9f" },
32
+ { name: "600", value: "#e57373" },
33
+ ],
34
+ };
35
+
36
+ export const TYPOGRAPHY = {
37
+ fontFamily: "Inter, system",
38
+ scale: [
39
+ { name: "h1", size: "22pt", weight: "400" },
40
+ { name: "h2", size: "17pt", weight: "500" },
41
+ { name: "h3", size: "13pt", weight: "600" },
42
+ { name: "h4", size: "13pt", weight: "500" },
43
+ { name: "body", size: "13pt", weight: "400" },
44
+ { name: "button", size: "13pt", weight: "400" },
45
+ { name: "caption", size: "10pt", weight: "400" },
46
+ ],
47
+ };
48
+
49
+ export const SHADOWS = {
50
+ types: [
51
+ { name: "xs", value: "0px 2px 4px rgba(0, 0, 0, 0.08)" },
52
+ { name: "sm", value: "0px 4px 8px rgba(0, 0, 0, 0.125)" },
53
+ { name: "md", value: "0px 8px 16px rgba(0, 0, 0, 0.125)" },
54
+ { name: "lg", value: "0px 16px 32px rgba(0, 0, 0, 0.125)" },
55
+ { name: "xl", value: "0px 32px 64px rgba(0, 0, 0, 0.125)" },
56
+ { name: "2xl", value: "0px 64px 128px rgba(0, 0, 0, 0.125)" },
57
+ ],
58
+ };
59
+
60
+
61
+ export const FONTS = {
62
+ types: [
63
+ { name: "vw_textregular", value: "font-textregular" },
64
+ { name: "vw_textregular", value: "font-sans" },
65
+ { name: "vw_textbold", value: "font-textbold" },
66
+ { name: "vw_headbold", value: "font-headbold" },
67
+ { name: "vw_headregular", value: "font-headregular" },
68
+ { name: "vw_headlight", value: "font-headlight" },
69
+ { name: "vw_textlight", value: "font-textlight" },
70
+ { name: "Nova Mono", value: "font-novamono" },
71
+ { name: "Nova Mono", value: "font-mono" }
72
+ ],
73
+ };
package/src/env.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- /// <reference path="../.astro/types.d.ts" />
1
+ /// <reference path="../.astro/types.d.ts" />
2
2
  /// <reference types="astro/client" />
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><svg enable-background="new 0 0 512 512" version="1.1" viewBox="0 0 512 512" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect width="512" height="512" fill="#F0F0F0"/><rect y="256" width="512" height="256" fill="#D80027"/></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><svg enable-background="new 0 0 512 512" version="1.1" viewBox="0 0 512 512" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect width="512" height="512" fill="#F0F0F0"/><polygon points="0 304 208 304 208 512 304 512 304 304 512 304 512 208 304 208 304 0 208 0 208 208 0 208" fill="#D80027"/><g fill="#0052B4"><polygon points="406.92 333.91 512 438.99 512 333.91"/><polygon points="333.91 333.91 512 512 512 461.64 384.27 333.91"/><polygon points="464.56 512 333.91 381.34 333.91 512"/></g><polygon points="333.91 333.91 512 512 512 461.64 384.27 333.91" fill="#F0F0F0"/><polygon points="333.91 333.91 512 512 512 461.64 384.27 333.91" fill="#D80027"/><g fill="#0052B4"><polygon points="80.302 333.91 0 414.22 0 333.91"/><polygon points="178.08 356.56 178.08 512 22.658 512"/></g><polygon points="127.72 333.92 0 461.64 0 512 0 512 178.08 333.92" fill="#D80027"/><g fill="#0052B4"><polygon points="105.08 178.09 0 73.007 0 178.09"/><polygon points="178.09 178.09 0 0 0 50.36 127.73 178.09"/><polygon points="47.436 0 178.09 130.66 178.09 0"/></g><polygon points="178.09 178.09 0 0 0 50.36 127.73 178.09" fill="#F0F0F0"/><polygon points="178.09 178.09 0 0 0 50.36 127.73 178.09" fill="#D80027"/><g fill="#0052B4"><polygon points="431.7 178.09 512 97.785 512 178.09"/><polygon points="333.92 155.44 333.92 3e-3 489.34 3e-3"/></g><polygon points="384.28 178.08 512 50.359 512 0 512 0 333.92 178.08" fill="#D80027"/></svg>
@@ -0,0 +1,51 @@
1
+ ---
2
+ import HeadCommon from '../components/HeadCommon.astro';
3
+ import HeadSEO from '../components/HeadSEO.astro';
4
+ import Header from '../components/Header/Header.astro';
5
+ import PageContent from '../components/PageContent.astro';
6
+ import LeftSidebar from '../components/LeftSidebar.astro';
7
+ import { Astronav, MenuItems} from "astro-navbar";
8
+ import * as CONFIG from '../config';
9
+ import { t, changeLanguage } from "i18next";
10
+ import '../styles/main.scss';
11
+ import Copyright from '../components/Copyright.astro'
12
+ const locale = "en";
13
+ changeLanguage(locale);
14
+ const year = new Date().getFullYear()
15
+ const { content = {} } = Astro.props;
16
+ const currentPage = Astro.url.pathname;
17
+ // const currentFile = `src/pages${currentPage.replace(/\/$/, '')}.md`;
18
+ const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();
19
+ console.log('canonicalURL', canonicalURL)
20
+ ---
21
+
22
+ <html dir={content.dir ?? 'ltr'} lang={content.lang ?? 'en-us'} class="initial">
23
+ <head>
24
+ <HeadCommon />
25
+ <HeadSEO {content} canonicalURL={canonicalURL} />
26
+ <title>{content.title ? `${content.title} 🚀 ${CONFIG.SITE.title}` : CONFIG.SITE.title}</title>
27
+ </head>
28
+
29
+ <body class="bg-blue-50">
30
+
31
+
32
+ <div class=" bg-white z-10 mb-11 relative">
33
+ <slot />
34
+ </div>
35
+ <footer>
36
+ <Copyright class="fixed bottom-0 z-0 w-full">
37
+ <a slot="middle-item" href={`https://${import.meta.env.COPYRIGHT_DOMAIN}`} target="_blank" rel="follow noopener" class="flex my-auto items-center mx-auto" title={`Proudly made in Poland by ${import.meta.env.COPYRIGHT_DOMAIN}`}>
38
+ <div class="text-xxs md:text-xs mr-1 mt-0.5 whitespace-nowrap">createdy by</div>
39
+ <img
40
+ class="h-4 md:h-5 w-min"
41
+ src={`/${import.meta.env.COPYRIGHT_IMG}`}
42
+ alt="Modern Websites"
43
+ width="126"
44
+ height="23"
45
+ loading="lazy"
46
+ >
47
+ </a>
48
+ </Copyright>
49
+ </footer>
50
+ </body>
51
+ </html>
@@ -1,50 +1,68 @@
1
- ---
2
- import HeadCommon from '../components/HeadCommon.astro';
3
- import HeadSEO from '../components/HeadSEO.astro';
4
- import Header from '../components/Header/Header.astro';
5
- import PageContent from '../components/PageContent.astro';
6
- import LeftSidebar from '../components/LeftSidebar.astro';
7
- import RightSidebar from '../components/RightSidebar.astro';
8
- import * as CONFIG from '../config';
9
- import { t, changeLanguage } from "i18next";
10
- import '../styles/main.scss';
11
- const locale = "en";
12
- changeLanguage(locale);
13
-
14
- const { content = {} } = Astro.props;
15
- const currentPage = Astro.url.pathname;
16
- // const currentFile = `src/pages${currentPage.replace(/\/$/, '')}.md`;
17
- const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();
18
- console.log('canonicalURL', canonicalURL)
19
- ---
20
-
21
- <html dir={content.dir ?? 'ltr'} lang={content.lang ?? 'en-us'} class="initial">
22
- <head>
23
- <HeadCommon />
24
- <HeadSEO {content} canonicalURL={canonicalURL} />
25
- <title>{content.title ? `${content.title} 🚀 ${CONFIG.SITE.title}` : CONFIG.SITE.title}</title>
26
- </head>
27
-
28
- <body class="bg-slate-100">
29
- <div class="sticky top-0 z-10 w-full">
30
- <Header currentPage={currentPage} />
31
- </div>
32
- <div class="grid grid-cols-12">
33
- <div class="col-span-3 sticky top-0 pt-12 h-screen flex">
34
- <div class="ml-auto">
35
- <LeftSidebar currentPage={currentPage} />
36
- </div>
37
- </div>
38
- <main class="py-4 px-8 pb-32 col-span-6 overflow-auto">
39
- <div>
40
- <PageContent content={content}>
41
- <slot />
42
- </PageContent>
43
- </div>
44
- </main>
45
- <div class="col-span-3 sticky top-0 h-screen flex">
46
- <RightSidebar content={content} />
47
- </div>
48
- </div>
49
- </body>
50
- </html>
1
+ ---
2
+ import HeadCommon from '../components/HeadCommon.astro';
3
+ import HeadSEO from '../components/HeadSEO.astro';
4
+ import Header from '../components/Header/Header.astro';
5
+ import PageContent from '../components/PageContent.astro';
6
+ import LeftSidebar from '../components/LeftSidebar.astro';
7
+ import { Astronav, MenuItems} from "astro-navbar";
8
+ import * as CONFIG from '../config';
9
+ import { t, changeLanguage } from "i18next";
10
+ import '../styles/main.scss';
11
+ import Copyright from '../components/Copyright.astro'
12
+ const locale = "en";
13
+ changeLanguage(locale);
14
+ const year = new Date().getFullYear()
15
+ const { content = {} } = Astro.props;
16
+ const currentPage = Astro.url.pathname;
17
+ // const currentFile = `src/pages${currentPage.replace(/\/$/, '')}.md`;
18
+ const canonicalURL = new URL(Astro.url.pathname, Astro.site).toString();
19
+ console.log('canonicalURL', canonicalURL)
20
+ ---
21
+
22
+ <html dir={content.dir ?? 'ltr'} lang={content.lang ?? 'en-us'} class="initial">
23
+ <head>
24
+ <HeadCommon />
25
+ <HeadSEO {content} canonicalURL={canonicalURL} />
26
+ <title>{content.title ? `${content.title} 🚀 ${CONFIG.SITE.title}` : CONFIG.SITE.title}</title>
27
+ </head>
28
+
29
+ <body class="bg-blue-50">
30
+ <div class="sticky top-0 z-10 w-full">
31
+ <Header currentPage={currentPage} />
32
+ </div>
33
+
34
+ <div class="flex bg-white z-10 mb-11 relative">
35
+ <div class="sticky top-0 flex sm:(h-screen w-64) z-50 ">
36
+ <div class="mr-auto pb-11 mb-11">
37
+ <Astronav>
38
+ <MenuItems class="hidden z-20 bg-white absolute sm:(static bg-blue-500 bg-opacity-5 lg:flex)">
39
+ <LeftSidebar currentPage={currentPage} />
40
+ </MenuItems>
41
+ </Astronav>
42
+ </div>
43
+ </div>
44
+ <main class="pb-4 px-4 sm:px-8 col-auto sm:(pb-32) overflow-auto w-full">
45
+ <div>
46
+ <PageContent content={content}>
47
+ <slot />
48
+ </PageContent>
49
+ </div>
50
+ </main>
51
+ </div>
52
+ <footer>
53
+ <Copyright class="fixed bottom-0 z-0 w-full">
54
+ <a slot="middle-item" href={`https://${import.meta.env.COPYRIGHT_DOMAIN}`} target="_blank" rel="follow noopener" class="flex my-auto items-center mx-auto" title={`Proudly made in Poland by ${import.meta.env.COPYRIGHT_DOMAIN}`}>
55
+ <div class="text-xxs md:text-xs mr-1 mt-0.5 whitespace-nowrap">createdy by</div>
56
+ <img
57
+ class="h-4 md:h-5 w-min"
58
+ src={`/${import.meta.env.COPYRIGHT_IMG}`}
59
+ alt="Modern Websites"
60
+ width="126"
61
+ height="23"
62
+ loading="lazy"
63
+ >
64
+ </a>
65
+ </Copyright>
66
+ </footer>
67
+ </body>
68
+ </html>
@@ -1,35 +1,37 @@
1
- ---
2
- title: "Badges"
3
- layout: "../../layouts/MainLayout.astro"
4
- ---
5
- import Badges from '../../components/Badges.vue'
6
-
7
- ## Badges
8
-
9
- ### Badges - GTI
10
- <div class="component-preview">
11
- <div class="relative min-h-6 ">
12
- <Badges badges={['GTI']} class:list="top-2" />
13
- </div>
14
- </div>
15
- ```js
16
- <div class="relative min-h-14 ">
17
- <Badges badges={['GTI']} class:list="top-2" />
18
- </div>
19
-
20
- ```
21
-
22
-
23
- ### Badges - Motorsport
24
- <div class="component-preview">
25
- <div class="relative min-h-6 ">
26
- <Badges badges={['Motorsport']} class:list="top-2" />
27
- </div>
28
- </div>
29
-
30
- ```js
31
- <div class="relative min-h-14 ">
32
- <Badges badges={['Motorsport']} class:list="top-2" />
33
- </div>
34
-
35
- ```
1
+ ---
2
+ title: "Badges"
3
+ layout: "../../layouts/MainLayout.astro"
4
+ ---
5
+ import Badges from '../../components/Badges.vue'
6
+
7
+ ## Badges
8
+
9
+ ### Badges - GTI
10
+ <div class="component-preview">
11
+ <div class="relative min-h-6 ">
12
+ <Badges badges={['GTI']} class="top-2" />
13
+ </div>
14
+ </div>
15
+ ```js
16
+ <div class="relative min-h-14 ">
17
+ <Badges badges={['GTI']} class="top-2" />
18
+ </div>
19
+
20
+ ```
21
+
22
+
23
+ ### Badges - Motorsport
24
+ <div class="component-preview">
25
+ <div class="relative min-h-6 ">
26
+ <Badges badges={['Motorsport']} class="top-2" />
27
+ </div>
28
+ </div>
29
+
30
+ ```js
31
+ <div class="relative min-h-14 ">
32
+ <Badges badges={['Motorsport']} class="top-2" />
33
+ </div>
34
+
35
+ ```
36
+
37
+
@@ -1,103 +1,100 @@
1
- ---
2
- title: "Breadcrumbs"
3
- layout: "../../layouts/MainLayout.astro"
4
-
5
-
6
- ---
7
- import Breadcrumbs from '../../components/Breadcrumbs.vue'
8
-
9
- ## Breadcrumbs
10
-
11
- Breadcrumbs component
12
-
13
-
14
- ### show back
15
-
16
- <div class="component-preview">
17
- <Breadcrumbs
18
- breadcrumbs={ [ {"name": "Level1", "path": "level 1"}, {"name": "Level 2", "path": "level2"}, {"name": "Level 3", "path": "level3"} ] }
19
- data-lang="en"
20
- product-number="6R0XXXXXX"
21
- class="py-1 order-0 px-1 max-w-full flex bg-white"
22
- show-back
23
- text-back="Back"
24
- />
25
- </div>
26
-
27
- ```js
28
-
29
- <Breadcrumbs
30
- breadcrumbs={
31
- [
32
- {"name": "Level1", "path": "level 1"},
33
- {"name": "Level 2", "path": "level2"},
34
- {"name": "Level 3", "path": "level3"}
35
- ]
36
- }
37
- data-lang="en"
38
- product-number="6R0XXXXXX"
39
- class="py-1 order-0 px-1 max-w-full flex bg-white"
40
- show-back
41
- text-back="Back"
42
- />
43
- ```
44
-
45
-
46
- ### show home
47
-
48
- <div class="component-preview">
49
- <Breadcrumbs
50
- breadcrumbs={ [ {"name": "Level1", "path": "level 1"}, {"name": "Level 2", "path": "level2"}, {"name": "Level 3", "path": "level3"} ] }
51
- data-lang="en"
52
- product-number="6R0XXXXXX"
53
- class="py-1 order-0 px-1 max-w-full flex bg-white"
54
- show-home
55
- />
56
- </div>
57
-
58
- ```js
59
-
60
- <Breadcrumbs
61
- breadcrumbs={
62
- [
63
- {"name": "Level1", "path": "level 1"},
64
- {"name": "Level 2", "path": "level2"},
65
- {"name": "Level 3", "path": "level3"}
66
- ]
67
- }
68
- data-lang="en"
69
- product-number="6R0XXXXXX"
70
- class="py-1 order-0 px-1 max-w-full flex bg-white"
71
- show-home
72
- />
73
- ```
74
-
75
-
76
- ### simply
77
-
78
- <div class="component-preview">
79
- <Breadcrumbs
80
- breadcrumbs={ [ {"name": "Level1", "path": "level 1"}, {"name": "Level 2", "path": "level2"}, {"name": "Level 3", "path": "level3"} ] }
81
- data-lang="en"
82
- product-number="6R0XXXXXX"
83
- class="py-1 order-0 px-1 max-w-full flex bg-white"
84
- />
85
- </div>
86
-
87
- ```js
88
-
89
- <Breadcrumbs
90
- breadcrumbs={
91
- [
92
- {"name": "Level1", "path": "level 1"},
93
- {"name": "Level 2", "path": "level2"},
94
- {"name": "Level 3", "path": "level3"}
95
- ]
96
- }
97
- data-lang="en"
98
- product-number="6R0XXXXXX"
99
- class="py-1 order-0 px-1 max-w-full flex bg-white"
100
- show-back
101
- text-back="Back"
102
- />
103
- ```
1
+ ---
2
+ title: "Breadcrumbs"
3
+ layout: "../../layouts/MainLayout.astro"
4
+
5
+
6
+ ---
7
+ import Breadcrumbs from '../../components/Breadcrumbs.vue'
8
+
9
+ ## Breadcrumbs
10
+
11
+ Breadcrumbs component with BreadcrumbList Microdata
12
+ #
13
+
14
+ https://schema.org/BreadcrumbList
15
+
16
+ https://schema.org/ListItem
17
+
18
+
19
+
20
+ ### show back
21
+
22
+ <div class="component-preview">
23
+ <Breadcrumbs
24
+ breadcrumbs={ [ {"name": "Level1", "path": "#level2"}, {"name": "Level 2", "path": "#level2"}, {"name": "Level 3", "path": "#level3"} ] }
25
+ product-number="6R0XXXXXX"
26
+ class="py-1 order-0 px-1 max-w-full flex bg-white"
27
+ show-back
28
+ text-back="Home"
29
+ />
30
+ </div>
31
+
32
+ ```js
33
+ <Breadcrumbs
34
+ breadcrumbs={
35
+ [
36
+ {"name": "Level1", "path": "level1"},
37
+ {"name": "Level 2", "path": "level2"},
38
+ {"name": "Level 3", "path": "level3"}
39
+ ]
40
+ }
41
+ product-number="6R0XXXXXX"
42
+ class="py-1 order-0 px-1 max-w-full flex bg-white"
43
+ show-back
44
+ text-back="Home"
45
+ />
46
+ ```
47
+
48
+
49
+ ### show home
50
+
51
+ <div class="component-preview">
52
+ <Breadcrumbs
53
+ breadcrumbs={ [ {"name": "Level1", "path": "#level2"}, {"name": "Level 2", "path": "#level2"}, {"name": "Level 3", "path": "#level3"} ] }
54
+ product-number="6R0XXXXXX"
55
+ class="py-1 order-0 px-1 max-w-full flex bg-white"
56
+ show-home
57
+ />
58
+ </div>
59
+
60
+ ```js
61
+ <Breadcrumbs
62
+ breadcrumbs={
63
+ [
64
+ {"name": "Level1", "path": "level 1"},
65
+ {"name": "Level 2", "path": "level2"},
66
+ {"name": "Level 3", "path": "level3"}
67
+ ]
68
+ }
69
+ product-number="6R0XXXXXX"
70
+ class="py-1 order-0 px-1 max-w-full flex bg-white"
71
+ show-home
72
+ />
73
+ ```
74
+
75
+
76
+ ### simply
77
+
78
+ <div class="component-preview">
79
+ <Breadcrumbs
80
+ breadcrumbs={ [ {"name": "Level1", "path": "#level2"}, {"name": "Level 2", "path": "#level2"}, {"name": "Level 3", "path": "#level3"} ] }
81
+ product-number="6R0XXXXXX"
82
+ class="py-1 order-0 px-1 max-w-full flex bg-white"
83
+ />
84
+ </div>
85
+
86
+ ```js
87
+ <Breadcrumbs
88
+ breadcrumbs={
89
+ [
90
+ {"name": "Level1", "path": "level 1"},
91
+ {"name": "Level 2", "path": "level2"},
92
+ {"name": "Level 3", "path": "level3"}
93
+ ]
94
+ }
95
+ product-number="6R0XXXXXX"
96
+ class="py-1 order-0 px-1 max-w-full flex bg-white"
97
+ show-back
98
+ text-back="Back"
99
+ />
100
+ ```