spoko-design-system 0.2.19 → 0.2.20
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 +2 -2
- package/src/components/Jumbatron.vue +11 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spoko-design-system",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "astro dev",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@iconify-json/uil": "^1.1.8",
|
|
54
54
|
"@iconify/json": "^2.2.193",
|
|
55
55
|
"@iconify/vue": "^4.1.1",
|
|
56
|
-
"@types/node": "^20.11.
|
|
56
|
+
"@types/node": "^20.11.30",
|
|
57
57
|
"@unocss/astro": "^0.58.6",
|
|
58
58
|
"@unocss/preset-attributify": "^0.58.6",
|
|
59
59
|
"@unocss/preset-typography": "^0.58.6",
|
|
@@ -11,14 +11,21 @@ const props = defineProps({
|
|
|
11
11
|
default: null,
|
|
12
12
|
required: false,
|
|
13
13
|
},
|
|
14
|
+
intro: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: '',
|
|
17
|
+
required: false,
|
|
18
|
+
}
|
|
14
19
|
})
|
|
15
20
|
</script>
|
|
16
21
|
|
|
17
22
|
<template>
|
|
18
|
-
<header class="relative flow content-grid bg-vw mx-auto my-auto py-8 lg:w-full
|
|
19
|
-
|
|
20
|
-
<slot name="intro"
|
|
21
|
-
|
|
23
|
+
<header class="relative flow content-grid bg-vw mx-auto my-auto py-8 lg:w-full text-center" :class="props.small ? 'md:min-h-xs sm:py-12 md:py-14 lg:py-16 xl:py-20' : 'md:min-h-md sm:py-16 md:py-20 lg:py-28 xl:py-32'">
|
|
24
|
+
|
|
25
|
+
<slot name="intro">
|
|
26
|
+
<h1 class="text-3xl tracking-tight font-headlight text-white sm:(text-4xl pt-0) md:text-5xl lg:text-6xl " v-html="props.intro" />
|
|
27
|
+
</slot>
|
|
28
|
+
|
|
22
29
|
<slot name="subtitle" />
|
|
23
30
|
<div class="mt-5 sm:(mt-8 flex justify-center)" v-if="hasSlot('cta')">
|
|
24
31
|
<slot name="cta" />
|