spoko-design-system 0.1.0 → 0.1.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.
- package/package.json +1 -1
- package/src/components/Button.vue +17 -1
- package/src/config.ts +26 -26
- package/src/pages/index.astro +2 -2
- package/src/styles/base/_base.scss +0 -11
package/package.json
CHANGED
|
@@ -38,4 +38,20 @@ const classes = {
|
|
|
38
38
|
<component :is="tag" :class="classes" :href="props.href" :title="props.title ? props.title : null">
|
|
39
39
|
<slot></slot>
|
|
40
40
|
</component>
|
|
41
|
-
</template>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<style lang="scss">
|
|
44
|
+
.btn-primary,
|
|
45
|
+
.btn-secondary {
|
|
46
|
+
svg {
|
|
47
|
+
color: #fff;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.btn-tertiary {
|
|
52
|
+
svg {
|
|
53
|
+
color: var(--primary);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
</style>
|
package/src/config.ts
CHANGED
|
@@ -17,36 +17,36 @@ export const OPEN_GRAPH = {
|
|
|
17
17
|
|
|
18
18
|
export const SIDEBAR = [
|
|
19
19
|
{ text: "Core", header: true },
|
|
20
|
-
{ text: "Introduction", link: "/core/introduction" },
|
|
21
|
-
{ text: "Colors", link: "/core/colors" },
|
|
22
|
-
{ text: "Typography", link: "/core/typography" },
|
|
23
|
-
{ text: "Shadows", link: "/core/shadows" },
|
|
20
|
+
{ text: "Introduction", link: "/core/introduction/" },
|
|
21
|
+
{ text: "Colors", link: "/core/colors/" },
|
|
22
|
+
{ text: "Typography", link: "/core/typography/" },
|
|
23
|
+
{ text: "Shadows", link: "/core/shadows/" },
|
|
24
24
|
|
|
25
25
|
{ text: "Components", header: true },
|
|
26
|
-
{ text: "Badges", link: "/components/badges" },
|
|
27
|
-
{ text: "Breadcrumbs", link: "/components/breadcrumbs" },
|
|
28
|
-
{ text: "Buttons", link: "/components/buttons" },
|
|
29
|
-
{ text: "Card", link: "/components/card" },
|
|
30
|
-
{ text: "Carousel", link: "/components/carousel" },
|
|
31
|
-
{ text: "Copyright", link: "/components/copyright" },
|
|
32
|
-
{ text: "HandDrive", link: "/components/hand-drive" },
|
|
33
|
-
{ text: "Headline", link: "/components/headline" },
|
|
34
|
-
{ text: "Icons", link: "/components/icons" },
|
|
35
|
-
{ text: "Image", link: "/components/image" },
|
|
36
|
-
{ text: "Input", link: "/components/input" },
|
|
37
|
-
{ text: "Jumbatron", link: "/components/jumbatron" },
|
|
38
|
-
{ text: "Modal", link: "/components/modal" },
|
|
39
|
-
{ text: "PostHeader", link: "/components/post-header" },
|
|
40
|
-
{ text: "PR-Code", link: "/components/pr-code" },
|
|
41
|
-
{ text: "Product Number", link: "/components/product-number" },
|
|
42
|
-
{ text: "Product Tile", link: "/components/product-tile" },
|
|
43
|
-
{ text: "Table", link: "/components/table" },
|
|
26
|
+
{ text: "Badges", link: "/components/badges/" },
|
|
27
|
+
{ text: "Breadcrumbs", link: "/components/breadcrumbs/" },
|
|
28
|
+
{ text: "Buttons", link: "/components/buttons/" },
|
|
29
|
+
{ text: "Card", link: "/components/card/" },
|
|
30
|
+
{ text: "Carousel", link: "/components/carousel/" },
|
|
31
|
+
{ text: "Copyright", link: "/components/copyright/" },
|
|
32
|
+
{ text: "HandDrive", link: "/components/hand-drive/" },
|
|
33
|
+
{ text: "Headline", link: "/components/headline/" },
|
|
34
|
+
{ text: "Icons", link: "/components/icons/" },
|
|
35
|
+
{ text: "Image", link: "/components/image/" },
|
|
36
|
+
{ text: "Input", link: "/components/input/" },
|
|
37
|
+
{ text: "Jumbatron", link: "/components/jumbatron/" },
|
|
38
|
+
{ text: "Modal", link: "/components/modal/" },
|
|
39
|
+
{ text: "PostHeader", link: "/components/post-header/" },
|
|
40
|
+
{ text: "PR-Code", link: "/components/pr-code/" },
|
|
41
|
+
{ text: "Product Number", link: "/components/product-number/" },
|
|
42
|
+
{ text: "Product Tile", link: "/components/product-tile/" },
|
|
43
|
+
{ text: "Table", link: "/components/table/" },
|
|
44
44
|
|
|
45
45
|
{ text: "Extras", header: true },
|
|
46
|
-
{ text: "Flags", link: "/components/flags" },
|
|
47
|
-
{ text: "SlimBanner", link: "/components/slimbanner" },
|
|
48
|
-
{ text: "FuckRussia", link: "/components/fuck-russia" },
|
|
46
|
+
{ text: "Flags", link: "/components/flags/" },
|
|
47
|
+
{ text: "SlimBanner", link: "/components/slimbanner/" },
|
|
48
|
+
{ text: "FuckRussia", link: "/components/fuck-russia/" },
|
|
49
49
|
|
|
50
50
|
{ text: "Patterns", header: true },
|
|
51
|
-
{ text: "Introduction", link: "/patterns/introduction" },
|
|
51
|
+
{ text: "Introduction", link: "/patterns/introduction/" },
|
|
52
52
|
];
|
package/src/pages/index.astro
CHANGED
|
@@ -55,10 +55,10 @@ const navItems = [
|
|
|
55
55
|
<a
|
|
56
56
|
href={url}
|
|
57
57
|
title={description}
|
|
58
|
-
class="flex w-full flex-wrap bg-white rounded-md hover:-translate-y-1 hover:shadow-lg transition-all flex-1 items-center py-10 px-4 md:(flex-col w-auto flex-nowrap text-center)"
|
|
58
|
+
class="flex w-full flex-wrap bg-white rounded-md hover:-translate-y-1 hover:shadow-lg transition-all flex-1 items-center py-10 px-4 md:(flex-col w-auto flex-nowrap text-center py-16)"
|
|
59
59
|
>
|
|
60
60
|
<Headline as="h2" textSize="2xl" underline={false}>
|
|
61
|
-
<Icon name={icon} aria-hidden="true" class="text-blue-
|
|
61
|
+
<Icon name={icon} aria-hidden="true" class="text-blue-400 mr-2" />
|
|
62
62
|
{title}
|
|
63
63
|
</Headline>
|
|
64
64
|
<p class="text-slate-500 w-full">{description}</p>
|