@voidzero-dev/vitepress-theme 0.0.1

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 (33) hide show
  1. package/dist/_virtual/_/plugin-vue/export-helper.js +9 -0
  2. package/dist/index.css +346 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +3 -0
  5. package/dist/vitepress/components/Eyebrow.js +7 -0
  6. package/dist/vitepress/components/Eyebrow.vue_vue_type_script_setup_true_lang.js +17 -0
  7. package/dist/vitepress/components/Footer.js +7 -0
  8. package/dist/vitepress/components/Footer.vue_vue_type_script_setup_true_lang.js +57 -0
  9. package/dist/vitepress/components/Header.js +7 -0
  10. package/dist/vitepress/components/Header.vue_vue_type_script_setup_true_lang.js +33 -0
  11. package/dist/vitepress/components/RiveAnimation.js +7 -0
  12. package/dist/vitepress/components/RiveAnimation.vue_vue_type_script_setup_true_lang.js +110 -0
  13. package/dist/vitepress/components/Terminal.js +7 -0
  14. package/dist/vitepress/components/Terminal.vue_vue_type_script_setup_true_lang.js +152 -0
  15. package/dist/vitepress/components/icons/VZIconBluesky.js +21 -0
  16. package/dist/vitepress/components/icons/VZIconGitHub.js +21 -0
  17. package/dist/vitepress/components/icons/VZIconLogo.js +24 -0
  18. package/dist/vitepress/components/icons/VZIconTwitter.js +21 -0
  19. package/dist/vitepress/components/terminal-animations/TerminalAnimation1.js +7 -0
  20. package/dist/vitepress/components/terminal-animations/TerminalAnimation1.vue_vue_type_script_setup_true_lang.js +31 -0
  21. package/dist/vitepress/components/terminal-animations/TerminalAnimation2.js +7 -0
  22. package/dist/vitepress/components/terminal-animations/TerminalAnimation2.vue_vue_type_script_setup_true_lang.js +38 -0
  23. package/dist/vitepress/components/terminal-animations/TerminalAnimation3.js +7 -0
  24. package/dist/vitepress/components/terminal-animations/TerminalAnimation3.vue_vue_type_script_setup_true_lang.js +31 -0
  25. package/dist/vitepress/components/terminal-animations/TerminalAnimation4.js +7 -0
  26. package/dist/vitepress/components/terminal-animations/TerminalAnimation4.vue_vue_type_script_setup_true_lang.js +31 -0
  27. package/dist/vitepress/components/terminal-animations/TerminalAnimation5.js +7 -0
  28. package/dist/vitepress/components/terminal-animations/TerminalAnimation5.vue_vue_type_script_setup_true_lang.js +31 -0
  29. package/dist/vitepress/components/terminal-animations/TerminalAnimation6.js +7 -0
  30. package/dist/vitepress/components/terminal-animations/TerminalAnimation6.vue_vue_type_script_setup_true_lang.js +31 -0
  31. package/dist/vitepress/index.d.ts +33 -0
  32. package/dist/vitepress/index.js +21 -0
  33. package/package.json +40 -0
@@ -0,0 +1,9 @@
1
+ //#region \0/plugin-vue/export-helper
2
+ var export_helper_default = (sfc, props) => {
3
+ const target = sfc.__vccOpts || sfc;
4
+ for (const [key, val] of props) target[key] = val;
5
+ return target;
6
+ };
7
+
8
+ //#endregion
9
+ export { export_helper_default as default };
package/dist/index.css ADDED
@@ -0,0 +1,346 @@
1
+ /**
2
+ * Shared theme styles
3
+ *
4
+ * NOTE: This file does NOT import Tailwind itself.
5
+ * The consuming project must import Tailwind first, then this file.
6
+ */
7
+
8
+ @plugin "@tailwindcss/typography";
9
+
10
+ @custom-variant dark (&:where(.dark, .dark *));
11
+
12
+ /* Fonts */
13
+ @font-face {
14
+ font-family: 'APK Protocol';
15
+ font-weight: 500;
16
+ src: url('../fonts/APK-Protocol-Medium.woff2') format('woff2');
17
+ }
18
+
19
+ @font-face {
20
+ font-family: 'KH Teka';
21
+ font-weight: 400;
22
+ src: url('../fonts/KHTeka-Regular.woff2') format('woff2');
23
+ }
24
+
25
+ @font-face {
26
+ font-family: 'KH Teka';
27
+ font-weight: 500;
28
+ src: url('../fonts/KHTeka-Medium.woff2') format('woff2');
29
+ }
30
+
31
+ @font-face {
32
+ font-family: 'KH Teka Mono';
33
+ font-weight: 400;
34
+ src: url('../fonts/KHTekaMono-Regular.woff2') format('woff2');
35
+ }
36
+
37
+ @font-face {
38
+ font-family: 'KH Teka Mono';
39
+ font-weight: 500;
40
+ src: url('../fonts/KHTekaMono-Medium.woff2') format('woff2');
41
+ }
42
+
43
+ @custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
44
+
45
+ @theme {
46
+ --font-*: initial;
47
+ --font-heading: 'APK Protocol', sans-serif;
48
+ --font-sans: 'KH Teka', sans-serif;
49
+ --font-mono: 'KH Teka Mono', monospace;
50
+
51
+ --color-*: initial;
52
+ --color-white: #FFFFFF;
53
+ --color-primary: #08060D;
54
+ --color-beige: #F4F3EC;
55
+ --color-nickel: #3B3440;
56
+ --color-grey: #827A89;
57
+ --color-stroke: #E5E4E7;
58
+ --color-midnight: #0C0912;
59
+ --color-slate: #14121A;
60
+ --color-ruby: #863BFF;
61
+ --color-wine: #140033;
62
+ --color-violet: #140033;
63
+ --color-plum: #1D0033;
64
+ --color-electric: #6C3BFF;
65
+ --color-vite: #b39aff;
66
+ --color-space: #110033;
67
+ --color-zest: #22FF73;
68
+ --color-forest: #002611;
69
+ --color-fire: #FF5500;
70
+ --color-rust: #260001;
71
+ --color-aqua: #32F3E9;
72
+ --color-sea: #002624;
73
+ }
74
+
75
+ @layer base {
76
+
77
+ h1 {
78
+ @apply text-5xl md:text-6xl font-medium font-heading text-balance text-primary md:leading-[4.2rem] tracking-tighter;
79
+ }
80
+
81
+ h2 {
82
+ @apply text-3xl md:text-5xl font-medium font-heading tracking-tight text-balance text-primary;
83
+ }
84
+
85
+ h3 {
86
+ @apply text-3xl md:text-4xl font-medium font-heading text-balance text-primary;
87
+ }
88
+
89
+ h4 {
90
+ @apply text-xl md:text-3xl font-medium font-heading text-balance text-primary;
91
+ }
92
+
93
+ h5 {
94
+ @apply text-lg md:text-2xl font-medium font-heading md:leading-7 text-balance text-primary;
95
+ }
96
+
97
+ h6 {
98
+ @apply text-base md:text-xl font-medium font-heading md:leading-7 text-balance text-primary;
99
+ }
100
+
101
+ p, li {
102
+ @apply text-base md:text-lg text-grey;
103
+ }
104
+
105
+ code {
106
+ @apply font-mono text-space text-base px-1.5 py-0.5 outline outline-stroke rounded dark:outline-grey dark:text-white;
107
+ }
108
+
109
+ }
110
+
111
+ @layer components {
112
+
113
+ .wrapper {
114
+ @apply max-w-[calc(100vw-2rem)] xl:max-w-[80rem] mx-auto border-l border-r border-stroke dark:border-nickel divide-stroke dark:divide-nickel relative overflow-x-clip;
115
+ }
116
+
117
+ .wrapper--ticks::before, .tick-left::before {
118
+ content: '';
119
+ position: absolute;
120
+ top: -5px;
121
+ left: 0;
122
+ width: 0;
123
+ height: 0;
124
+ border-top: 5px solid transparent;
125
+ border-right: 5px solid transparent;
126
+ border-bottom: 5px solid transparent;
127
+ border-left: 5px solid var(--color-stroke);
128
+ }
129
+
130
+ .wrapper--ticks::after, .tick-right::after {
131
+ content: '';
132
+ position: absolute;
133
+ top: -5px;
134
+ right: 0;
135
+ width: 0;
136
+ height: 0;
137
+ border-top: 5px solid transparent;
138
+ border-right: 5px solid var(--color-stroke);
139
+ border-bottom: 5px solid transparent;
140
+ border-left: 5px solid transparent;
141
+ }
142
+
143
+ [data-theme=dark] .wrapper--ticks::before, [data-theme=dark] .tick-left::before {
144
+ border-left-color: var(--color-nickel);
145
+ }
146
+
147
+ [data-theme=dark] .wrapper--ticks::after, [data-theme=dark] .tick-right::after {
148
+ border-right-color: var(--color-nickel);
149
+ }
150
+
151
+ .button {
152
+ @apply select-none py-2 px-4 rounded-lg outline outline-stroke inline-flex items-center gap-2 overflow-hidden justify-center text-primary dark:text-white bg-white dark:bg-transparent dark:outline-nickel font-medium hover:shadow-md dark:hover:bg-white dark:hover:text-primary hover:scale-105 transition-all;
153
+
154
+ &.button--sm{
155
+ @apply text-base py-1.5 px-3 rounded;
156
+ }
157
+
158
+ &.button--primary {
159
+ @apply text-white relative overflow-visible outline-none transition-colors transform-gpu hover:scale-105 transition-transform;
160
+
161
+ &:hover {
162
+
163
+ &::before {
164
+ filter: brightness(130%);
165
+ transform: scaleX(1.0125) scaleY(1.025);
166
+ }
167
+
168
+ &::after {
169
+ transform: scaleX(0.98) scaleY(0.96);
170
+ }
171
+ }
172
+
173
+ &::before {
174
+ content: '';
175
+ position: absolute;
176
+ top: -3px;
177
+ left: -3px;
178
+ right: -3px;
179
+ bottom: -3px;
180
+ background-color: #CCCCCC;
181
+ background-image: url('../assets/primary-button-background.jpg');
182
+ background-size: 150% 150%;
183
+ background-position: center;
184
+ border-radius: calc(0.5rem + 3px);
185
+ z-index: -2;
186
+ animation: move-background 16s ease-in-out infinite;
187
+ transition: all 200ms ease-in-out;
188
+ }
189
+
190
+ &::after {
191
+ content: '';
192
+ position: absolute;
193
+ inset: 0;
194
+ background: var(--color-primary);
195
+ z-index: -1;
196
+ border-radius: 0.5rem;
197
+ transition: all 300ms ease-in-out;
198
+ }
199
+
200
+ &.button--white {
201
+ @apply text-primary;
202
+
203
+ &::after {
204
+ background: var(--color-white);
205
+ }
206
+ }
207
+
208
+
209
+ }
210
+ }
211
+
212
+ @keyframes move-background {
213
+ 0%, 100% {
214
+ background-position: 40% 40%;
215
+ }
216
+ 50% {
217
+ background-position: 60% 60%;
218
+ }
219
+ }
220
+
221
+ .stacked-blocks {
222
+ @apply flex items-center justify-start;
223
+
224
+ > *:not(:first-child) {
225
+ @apply -ml-2;
226
+ }
227
+
228
+ li, a {
229
+ @apply size-12 sm:size-14 relative bg-[#F9F8F5] rounded-xl outline-[3px] outline-offset-[-3px] outline-white overflow-hidden p-4 flex items-center justify-center;
230
+ transition: transform 0.2s ease;
231
+
232
+ &:hover {
233
+ transform: translateY(-4px);
234
+ }
235
+ }
236
+
237
+ > *:nth-child(1) {
238
+ &:hover, &:hover li, &:hover a {
239
+ transform: translateY(-4px) rotate(-5deg);
240
+ }
241
+ }
242
+
243
+ > *:nth-child(2) {
244
+ &:hover, &:hover li, &:hover a {
245
+ transform: translateY(-4px) rotate(5deg);
246
+ }
247
+ }
248
+
249
+ > *:nth-child(3) {
250
+ &:hover, &:hover li, &:hover a {
251
+ transform: translateY(-4px) rotate(-5deg);
252
+ }
253
+ }
254
+
255
+ > *:nth-child(4) {
256
+ &:hover, &:hover li, &:hover a {
257
+ transform: translateY(-4px) rotate(5deg);
258
+ }
259
+ }
260
+ }
261
+
262
+ .checkmark-list {
263
+ @apply list-none flex flex-col gap-3;
264
+
265
+ li {
266
+ @apply text-white text-base tracking-tight relative pl-8;
267
+
268
+ &::before {
269
+ content: '';
270
+ position: absolute;
271
+ left: 0;
272
+ top: 50%;
273
+ transform: translateY(-50%);
274
+ width: 20px;
275
+ height: 20px;
276
+ background-image: url('../assets/checkmark.svg');
277
+ background-size: contain;
278
+ background-repeat: no-repeat;
279
+ background-position: center;
280
+ }
281
+ }
282
+ }
283
+
284
+ .project-icon {
285
+ @apply flex items-center gap-2;
286
+
287
+ figcaption {
288
+ @apply text-white text-base tracking-tight;
289
+ }
290
+ }
291
+
292
+ ul.nav {
293
+ @apply flex items-center gap-10;
294
+
295
+ li {
296
+ a {
297
+ @apply !text-primary text-base;
298
+ }
299
+ }
300
+ }
301
+
302
+ /* Reka UI tabs styling */
303
+ [role="tablist"] {
304
+ [data-reka-collection-item] {
305
+ @apply px-1.5 sm:px-2.5 py-1 rounded text-sm font-mono tracking-tight text-grey cursor-pointer hover:text-white transition-colors duration-75 select-none;
306
+ }
307
+
308
+ [data-reka-collection-item][data-state='active'] {
309
+ @apply bg-white text-primary;
310
+ }
311
+ }
312
+
313
+ }
314
+
315
+ html {
316
+ overflow-x: clip;
317
+ font-size: 16px;
318
+ color: var(--color-nickel);
319
+
320
+ [data-theme=dark] {
321
+ color: var(--color-white);
322
+ }
323
+ }
324
+
325
+ body {
326
+ margin: 0;
327
+ padding: 0;
328
+ position: relative;
329
+ overflow-x: clip;
330
+ text-rendering: optimizeLegibility;
331
+ image-rendering: high-quality;
332
+ -webkit-font-smoothing: antialiased;
333
+ -moz-osx-font-smoothing: grayscale;
334
+
335
+ &::-webkit-scrollbar {
336
+ width: 10px;
337
+ }
338
+
339
+ &::-webkit-scrollbar-track {
340
+ background-color: #efefef;
341
+ }
342
+
343
+ &::-webkit-scrollbar-thumb {
344
+ background-color: #000;
345
+ }
346
+ }
@@ -0,0 +1,2 @@
1
+ import { VPTheme } from "./vitepress/index.js";
2
+ export { VPTheme, VPTheme as default };
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import vitepress_default, { VPTheme } from "./vitepress/index.js";
2
+
3
+ export { VPTheme, vitepress_default as default };
@@ -0,0 +1,7 @@
1
+ import Eyebrow_vue_vue_type_script_setup_true_lang_default from "./Eyebrow.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/Eyebrow.vue
4
+ var Eyebrow_default = Eyebrow_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { Eyebrow_default as default };
@@ -0,0 +1,17 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString } from "vue";
2
+
3
+ //#region src/vitepress/components/Eyebrow.vue?vue&type=script&setup=true&lang.ts
4
+ const _hoisted_1 = { class: "wrapper wrapper--ticks border-t p-5 pl-10" };
5
+ const _hoisted_2 = { class: "text-nickel dark:text-white text-xs font-medium font-mono uppercase tracking-wide" };
6
+ var Eyebrow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "Eyebrow",
8
+ props: { title: {} },
9
+ setup(__props) {
10
+ return (_ctx, _cache) => {
11
+ return openBlock(), createElementBlock("section", _hoisted_1, [createElementVNode("span", _hoisted_2, toDisplayString(__props.title), 1)]);
12
+ };
13
+ }
14
+ });
15
+
16
+ //#endregion
17
+ export { Eyebrow_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import Footer_vue_vue_type_script_setup_true_lang_default from "./Footer.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/Footer.vue
4
+ var Footer_default = Footer_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { Footer_default as default };
@@ -0,0 +1,57 @@
1
+ import VZIconGitHub_default from "./icons/VZIconGitHub.js";
2
+ import VZIconBluesky_default from "./icons/VZIconBluesky.js";
3
+ import VZIconTwitter_default from "./icons/VZIconTwitter.js";
4
+ import { createElementBlock, createElementVNode, createStaticVNode, createTextVNode, createVNode, defineComponent, openBlock, toDisplayString } from "vue";
5
+
6
+ //#region src/vitepress/components/Footer.vue?vue&type=script&setup=true&lang.ts
7
+ const _hoisted_1 = {
8
+ class: "bg-primary",
9
+ "data-theme": "dark"
10
+ };
11
+ const _hoisted_2 = { class: "wrapper" };
12
+ const _hoisted_3 = { class: "px-5 md:px-24 pt-10 md:pt-16 pb-16 md:pb-30 flex flex-col md:flex-row gap-10 md:gap-0 md:justify-between" };
13
+ const _hoisted_4 = { class: "flex flex-col gap-3" };
14
+ const _hoisted_5 = {
15
+ href: "https://github.com/voidzero-dev",
16
+ target: "_blank",
17
+ rel: "noopener noreferrer",
18
+ class: "text-white text-base flex gap-3 items-center"
19
+ };
20
+ const _hoisted_6 = {
21
+ href: "https://web-cdn.bsky.app/profile/voidzero.dev",
22
+ target: "_blank",
23
+ rel: "noopener noreferrer",
24
+ class: "text-white text-base flex gap-3 items-center"
25
+ };
26
+ const _hoisted_7 = {
27
+ href: "https://x.com/voidzerodev",
28
+ target: "_blank",
29
+ rel: "noopener noreferrer",
30
+ class: "text-white text-base flex gap-3 items-center"
31
+ };
32
+ const _hoisted_8 = { class: "wrapper wrapper--ticks border-t py-5 px-5 md:px-24" };
33
+ const _hoisted_9 = { class: "text-sm" };
34
+ var Footer_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
35
+ __name: "Footer",
36
+ setup(__props) {
37
+ return (_ctx, _cache) => {
38
+ return openBlock(), createElementBlock("footer", _hoisted_1, [createElementVNode("section", _hoisted_2, [_cache[5] || (_cache[5] = createStaticVNode("<div class=\"bg-wine bg-[url(../assets/cta-background.jpg)] bg-cover py-16 md:py-30 px-5 md:px-0 overflow-clip flex flex-col items-center justify-center gap-8 md:gap-12\"><h2 class=\"text-white w-full md:w-2xl text-center text-balance\">Take your team&#39;s productivity to the next level with Vite+</h2><div class=\"flex items-center gap-5\"><a href=\"https://tally.so/r/nGWebL\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"button\">Register your interest</a><a href=\"https://voidzero.dev/posts/announcing-vite-plus?utm_source=viteplusdev&amp;utm_content=bottom_learn_more\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"button\"> Learn more </a></div></div>", 1)), createElementVNode("div", _hoisted_3, [_cache[4] || (_cache[4] = createStaticVNode("<div><p class=\"text-grey text-xs font-mono uppercase tracking-wide mb-8\">Company</p><ul class=\"flex flex-col gap-3\"><li><a href=\"https://voidzero.dev/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-white text-base\">VoidZero</a></li><li><a href=\"https://vite.dev/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-white text-base\">Vite</a></li><li><a href=\"https://rolldown.rs/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-white text-base\">Rolldown</a></li><li><a href=\"https://vitest.dev/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-white text-base\">Vitest</a></li><li><a href=\"https://oxc.rs/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"text-white text-base\">Oxc</a></li></ul></div>", 1)), createElementVNode("div", null, [_cache[3] || (_cache[3] = createElementVNode("p", { class: "text-grey text-xs font-mono uppercase tracking-wide mb-8" }, "Social", -1)), createElementVNode("ul", _hoisted_4, [
39
+ createElementVNode("li", null, [createElementVNode("a", _hoisted_5, [createVNode(VZIconGitHub_default, {
40
+ class: "size-5",
41
+ "aria-label": "GitHub"
42
+ }), _cache[0] || (_cache[0] = createTextVNode("GitHub", -1))])]),
43
+ createElementVNode("li", null, [createElementVNode("a", _hoisted_6, [createVNode(VZIconBluesky_default, {
44
+ class: "size-5",
45
+ "aria-label": "Bluesky"
46
+ }), _cache[1] || (_cache[1] = createTextVNode("Bluesky", -1))])]),
47
+ createElementVNode("li", null, [createElementVNode("a", _hoisted_7, [createVNode(VZIconTwitter_default, {
48
+ class: "size-5",
49
+ "aria-label": "Twitter"
50
+ }), _cache[2] || (_cache[2] = createTextVNode("X.com", -1))])])
51
+ ])])])]), createElementVNode("section", _hoisted_8, [createElementVNode("p", _hoisted_9, [createTextVNode("© " + toDisplayString((/* @__PURE__ */ new Date()).getFullYear()) + " VoidZero Inc. ", 1), _cache[6] || (_cache[6] = createElementVNode("span", { class: "hidden sm:inline" }, "All Rights Reserved.", -1))])])]);
52
+ };
53
+ }
54
+ });
55
+
56
+ //#endregion
57
+ export { Footer_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import Header_vue_vue_type_script_setup_true_lang_default from "./Header.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/Header.vue
4
+ var Header_default = Header_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { Header_default as default };
@@ -0,0 +1,33 @@
1
+ import VZIconLogo_default from "./icons/VZIconLogo.js";
2
+ import { Fragment, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref } from "vue";
3
+ import { useData, useRoute } from "vitepress";
4
+
5
+ //#region src/vitepress/components/Header.vue?vue&type=script&setup=true&lang.ts
6
+ const _hoisted_1 = { class: "wrapper px-6 py-7 flex items-center justify-between" };
7
+ const _hoisted_2 = { class: "flex items-center gap-10" };
8
+ const _hoisted_3 = { href: "/" };
9
+ const _hoisted_4 = { class: "nav" };
10
+ const _hoisted_5 = ["href"];
11
+ const _hoisted_6 = { class: "flex items-center gap-6" };
12
+ var Header_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
13
+ __name: "Header",
14
+ setup(__props) {
15
+ const { site, theme } = useData();
16
+ const nav = theme.value.nav;
17
+ const route = useRoute();
18
+ return (_ctx, _cache) => {
19
+ return openBlock(), createElementBlock("header", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("a", _hoisted_3, [createVNode(VZIconLogo_default, {
20
+ class: "h-4",
21
+ "aria-label": unref(site).title
22
+ }, null, 8, ["aria-label"])]), createElementVNode("ul", _hoisted_4, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(nav), (navItem) => {
23
+ return openBlock(), createElementBlock("li", { key: navItem.link }, [createElementVNode("a", {
24
+ class: normalizeClass({ active: unref(route).path === navItem.link }),
25
+ href: navItem.link
26
+ }, toDisplayString(navItem.text), 11, _hoisted_5)]);
27
+ }), 128))])]), createElementVNode("div", _hoisted_6, [renderSlot(_ctx.$slots, "right-side", {}, () => [createCommentVNode(" Right-aligned links / calls-to-action ")])])]);
28
+ };
29
+ }
30
+ });
31
+
32
+ //#endregion
33
+ export { Header_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import RiveAnimation_vue_vue_type_script_setup_true_lang_default from "./RiveAnimation.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/RiveAnimation.vue
4
+ var RiveAnimation_default = RiveAnimation_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { RiveAnimation_default as default };
@@ -0,0 +1,110 @@
1
+ import { computed, createElementBlock, createElementVNode, defineComponent, normalizeClass, onMounted, onUnmounted, openBlock, ref } from "vue";
2
+ import * as rive from "@rive-app/canvas";
3
+
4
+ //#region src/vitepress/components/RiveAnimation.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = ["width", "height"];
6
+ var RiveAnimation_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "RiveAnimation",
8
+ props: {
9
+ desktopSrc: {},
10
+ mobileSrc: {},
11
+ breakpoint: { default: 768 },
12
+ stateMachines: { default: "State Machine 1" },
13
+ canvasClass: { default: "w-full" },
14
+ desktopWidth: {},
15
+ desktopHeight: {},
16
+ mobileWidth: {},
17
+ mobileHeight: {}
18
+ },
19
+ setup(__props) {
20
+ const props = __props;
21
+ const canvasRef = ref(null);
22
+ const containerRef = ref(null);
23
+ let riveInstance = null;
24
+ let hasStarted = ref(false);
25
+ let observer = null;
26
+ const isMobile = ref(false);
27
+ const checkMobile = () => {
28
+ isMobile.value = window.innerWidth < props.breakpoint;
29
+ };
30
+ const getCurrentSrc = () => {
31
+ return isMobile.value && props.mobileSrc ? props.mobileSrc : props.desktopSrc;
32
+ };
33
+ const currentWidth = computed(() => {
34
+ return isMobile.value && props.mobileWidth ? props.mobileWidth : props.desktopWidth;
35
+ });
36
+ const currentHeight = computed(() => {
37
+ return isMobile.value && props.mobileHeight ? props.mobileHeight : props.desktopHeight;
38
+ });
39
+ const loadAnimation = () => {
40
+ if (!canvasRef.value || riveInstance) return;
41
+ const src = getCurrentSrc();
42
+ riveInstance = new rive.Rive({
43
+ src,
44
+ canvas: canvasRef.value,
45
+ autoplay: false,
46
+ stateMachines: props.stateMachines,
47
+ onLoad: () => {
48
+ riveInstance?.resizeDrawingSurfaceToCanvas();
49
+ }
50
+ });
51
+ };
52
+ const playAnimation = () => {
53
+ if (riveInstance) riveInstance.play();
54
+ };
55
+ const cleanupAnimation = () => {
56
+ if (riveInstance) {
57
+ riveInstance.cleanup();
58
+ riveInstance = null;
59
+ }
60
+ };
61
+ const handleResize = () => {
62
+ const wasMobile = isMobile.value;
63
+ checkMobile();
64
+ if (wasMobile !== isMobile.value) {
65
+ const wasPlaying = hasStarted.value;
66
+ cleanupAnimation();
67
+ loadAnimation();
68
+ if (wasPlaying) playAnimation();
69
+ }
70
+ };
71
+ onMounted(() => {
72
+ checkMobile();
73
+ loadAnimation();
74
+ observer = new IntersectionObserver((entries) => {
75
+ entries.forEach((entry) => {
76
+ if (entry.isIntersecting && !hasStarted.value) {
77
+ hasStarted.value = true;
78
+ playAnimation();
79
+ }
80
+ });
81
+ }, { threshold: .1 });
82
+ if (containerRef.value) observer.observe(containerRef.value);
83
+ window.addEventListener("resize", handleResize);
84
+ });
85
+ onUnmounted(() => {
86
+ cleanupAnimation();
87
+ if (observer && containerRef.value) {
88
+ observer.unobserve(containerRef.value);
89
+ observer.disconnect();
90
+ }
91
+ window.removeEventListener("resize", handleResize);
92
+ });
93
+ return (_ctx, _cache) => {
94
+ return openBlock(), createElementBlock("div", {
95
+ ref_key: "containerRef",
96
+ ref: containerRef,
97
+ class: "pointer-events-none touch-none select-none"
98
+ }, [createElementVNode("canvas", {
99
+ ref_key: "canvasRef",
100
+ ref: canvasRef,
101
+ width: currentWidth.value,
102
+ height: currentHeight.value,
103
+ class: normalizeClass(__props.canvasClass)
104
+ }, null, 10, _hoisted_1)], 512);
105
+ };
106
+ }
107
+ });
108
+
109
+ //#endregion
110
+ export { RiveAnimation_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import Terminal_vue_vue_type_script_setup_true_lang_default from "./Terminal.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/Terminal.vue
4
+ var Terminal_default = Terminal_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { Terminal_default as default };
@@ -0,0 +1,152 @@
1
+ import TerminalAnimation1_default from "./terminal-animations/TerminalAnimation1.js";
2
+ import TerminalAnimation2_default from "./terminal-animations/TerminalAnimation2.js";
3
+ import TerminalAnimation3_default from "./terminal-animations/TerminalAnimation3.js";
4
+ import TerminalAnimation4_default from "./terminal-animations/TerminalAnimation4.js";
5
+ import TerminalAnimation5_default from "./terminal-animations/TerminalAnimation5.js";
6
+ import TerminalAnimation6_default from "./terminal-animations/TerminalAnimation6.js";
7
+ import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, onMounted, onUnmounted, openBlock, ref, unref, withCtx } from "vue";
8
+ import { TabsContent, TabsList, TabsRoot, TabsTrigger } from "reka-ui";
9
+
10
+ //#region src/vitepress/components/Terminal.vue?vue&type=script&setup=true&lang.ts
11
+ const AUTO_ADVANCE_DELAY = 1500;
12
+ var Terminal_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
13
+ __name: "Terminal",
14
+ setup(__props) {
15
+ const activeTab = ref("tab1");
16
+ const autoPlayEnabled = ref(true);
17
+ let autoAdvanceTimeout = null;
18
+ const sectionRef = ref(null);
19
+ const isVisible = ref(false);
20
+ let observer = null;
21
+ const tabSequence = [
22
+ "tab1",
23
+ "tab2",
24
+ "tab3",
25
+ "tab4",
26
+ "tab5",
27
+ "tab6"
28
+ ];
29
+ const goToNextTab = () => {
30
+ activeTab.value = tabSequence[(tabSequence.indexOf(activeTab.value) + 1) % tabSequence.length];
31
+ };
32
+ const onAnimationComplete = () => {
33
+ if (!autoPlayEnabled.value) return;
34
+ if (autoAdvanceTimeout) clearTimeout(autoAdvanceTimeout);
35
+ autoAdvanceTimeout = setTimeout(() => {
36
+ goToNextTab();
37
+ }, AUTO_ADVANCE_DELAY);
38
+ };
39
+ const onTabChange = () => {
40
+ autoPlayEnabled.value = false;
41
+ if (autoAdvanceTimeout) {
42
+ clearTimeout(autoAdvanceTimeout);
43
+ autoAdvanceTimeout = null;
44
+ }
45
+ };
46
+ onMounted(() => {
47
+ if (!sectionRef.value) return;
48
+ observer = new IntersectionObserver((entries) => {
49
+ entries.forEach((entry) => {
50
+ if (entry.isIntersecting && !isVisible.value) {
51
+ isVisible.value = true;
52
+ observer?.disconnect();
53
+ }
54
+ });
55
+ }, {
56
+ threshold: .2,
57
+ rootMargin: "0px"
58
+ });
59
+ observer.observe(sectionRef.value);
60
+ });
61
+ onUnmounted(() => {
62
+ if (autoAdvanceTimeout) clearTimeout(autoAdvanceTimeout);
63
+ if (observer) observer.disconnect();
64
+ });
65
+ return (_ctx, _cache) => {
66
+ return openBlock(), createElementBlock("section", {
67
+ ref_key: "sectionRef",
68
+ ref: sectionRef,
69
+ class: "wrapper border-t h-[40rem] bg-wine bg-[url(../assets/terminal-background.jpg)] bg-cover bg-top flex justify-center pt-28 overflow-clip"
70
+ }, [createElementVNode("div", {
71
+ class: normalizeClass([
72
+ "self-stretch px-4 sm:px-8 py-5 sm:py-7 relative bg-primary rounded-tl-lg rounded-tr-lg inline-flex flex-col justify-start items-start gap-2 overflow-hidden w-[62rem] outline-1 outline-offset-[3px] outline-white/30",
73
+ "transition-transform duration-1000",
74
+ isVisible.value ? "translate-y-0" : "translate-y-24"
75
+ ]),
76
+ style: { "transition-timing-function": "cubic-bezier(0.16, 1, 0.3, 1)" }
77
+ }, [isVisible.value ? (openBlock(), createBlock(unref(TabsRoot), {
78
+ key: 0,
79
+ modelValue: activeTab.value,
80
+ "onUpdate:modelValue": [_cache[0] || (_cache[0] = ($event) => activeTab.value = $event), onTabChange]
81
+ }, {
82
+ default: withCtx(() => [
83
+ createVNode(unref(TabsList), {
84
+ "aria-label": "features",
85
+ class: normalizeClass([
86
+ "absolute bottom-6 left-1/2 -translate-x-1/2 flex items-center p-1 rounded-md border border-white/10",
87
+ "transition-transform duration-700 delay-300",
88
+ isVisible.value ? "translate-y-0" : "translate-y-12"
89
+ ]),
90
+ style: { "transition-timing-function": "cubic-bezier(0.16, 1, 0.3, 1)" }
91
+ }, {
92
+ default: withCtx(() => [
93
+ createVNode(unref(TabsTrigger), { value: "tab1" }, {
94
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [createTextVNode(" new ", -1)])]),
95
+ _: 1
96
+ }),
97
+ createVNode(unref(TabsTrigger), { value: "tab2" }, {
98
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [createTextVNode(" dev ", -1)])]),
99
+ _: 1
100
+ }),
101
+ createVNode(unref(TabsTrigger), { value: "tab3" }, {
102
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [createTextVNode(" lint ", -1)])]),
103
+ _: 1
104
+ }),
105
+ createVNode(unref(TabsTrigger), { value: "tab4" }, {
106
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [createTextVNode(" fmt ", -1)])]),
107
+ _: 1
108
+ }),
109
+ createVNode(unref(TabsTrigger), { value: "tab5" }, {
110
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [createTextVNode(" test ", -1)])]),
111
+ _: 1
112
+ }),
113
+ createVNode(unref(TabsTrigger), { value: "tab6" }, {
114
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [createTextVNode(" build ", -1)])]),
115
+ _: 1
116
+ })
117
+ ]),
118
+ _: 1
119
+ }, 8, ["class"]),
120
+ createVNode(unref(TabsContent), { value: "tab1" }, {
121
+ default: withCtx(() => [createVNode(TerminalAnimation1_default, { "on-animation-complete": onAnimationComplete })]),
122
+ _: 1
123
+ }),
124
+ createVNode(unref(TabsContent), { value: "tab2" }, {
125
+ default: withCtx(() => [createVNode(TerminalAnimation2_default, { "on-animation-complete": onAnimationComplete })]),
126
+ _: 1
127
+ }),
128
+ createVNode(unref(TabsContent), { value: "tab3" }, {
129
+ default: withCtx(() => [createVNode(TerminalAnimation3_default, { "on-animation-complete": onAnimationComplete })]),
130
+ _: 1
131
+ }),
132
+ createVNode(unref(TabsContent), { value: "tab4" }, {
133
+ default: withCtx(() => [createVNode(TerminalAnimation4_default, { "on-animation-complete": onAnimationComplete })]),
134
+ _: 1
135
+ }),
136
+ createVNode(unref(TabsContent), { value: "tab5" }, {
137
+ default: withCtx(() => [createVNode(TerminalAnimation5_default, { "on-animation-complete": onAnimationComplete })]),
138
+ _: 1
139
+ }),
140
+ createVNode(unref(TabsContent), { value: "tab6" }, {
141
+ default: withCtx(() => [createVNode(TerminalAnimation6_default, { "on-animation-complete": onAnimationComplete })]),
142
+ _: 1
143
+ })
144
+ ]),
145
+ _: 1
146
+ }, 8, ["modelValue"])) : createCommentVNode("v-if", true)], 2)], 512);
147
+ };
148
+ }
149
+ });
150
+
151
+ //#endregion
152
+ export { Terminal_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,21 @@
1
+ import export_helper_default from "../../../_virtual/_/plugin-vue/export-helper.js";
2
+ import { createElementBlock, createElementVNode, openBlock } from "vue";
3
+
4
+ //#region src/vitepress/components/icons/VZIconBluesky.vue
5
+ const _sfc_main = {};
6
+ const _hoisted_1 = {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ "aria-hidden": "true",
9
+ focusable: "false",
10
+ viewBox: "0 0 24 24"
11
+ };
12
+ function _sfc_render(_ctx, _cache) {
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
14
+ fill: "currentColor",
15
+ d: "M5.202 2.857C7.954 4.922 10.913 9.11 12 11.358c1.087-2.247 4.046-6.436 6.798-8.501C20.783 1.366 24 .213 24 3.883c0 .732-.42 6.156-.667 7.037c-.856 3.061-3.978 3.842-6.755 3.37c4.854.826 6.089 3.562 3.422 6.299c-5.065 5.196-7.28-1.304-7.847-2.97c-.104-.305-.152-.448-.153-.327c0-.121-.05.022-.153.327c-.568 1.666-2.782 8.166-7.847 2.97c-2.667-2.737-1.432-5.473 3.422-6.3c-2.777.473-5.899-.308-6.755-3.369C.42 10.04 0 4.615 0 3.883c0-3.67 3.217-2.517 5.202-1.026"
16
+ }, null, -1)])]);
17
+ }
18
+ var VZIconBluesky_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
+
20
+ //#endregion
21
+ export { VZIconBluesky_default as default };
@@ -0,0 +1,21 @@
1
+ import export_helper_default from "../../../_virtual/_/plugin-vue/export-helper.js";
2
+ import { createElementBlock, createElementVNode, openBlock } from "vue";
3
+
4
+ //#region src/vitepress/components/icons/VZIconGitHub.vue
5
+ const _sfc_main = {};
6
+ const _hoisted_1 = {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ "aria-hidden": "true",
9
+ focusable: "false",
10
+ viewBox: "0 0 24 24"
11
+ };
12
+ function _sfc_render(_ctx, _cache) {
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
14
+ fill: "currentColor",
15
+ d: "M12 2A10 10 0 0 0 2 12c0 4.42 2.87 8.17 6.84 9.5c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34c-.46-1.16-1.11-1.47-1.11-1.47c-.91-.62.07-.6.07-.6c1 .07 1.53 1.03 1.53 1.03c.87 1.52 2.34 1.07 2.91.83c.09-.65.35-1.09.63-1.34c-2.22-.25-4.55-1.11-4.55-4.92c0-1.11.38-2 1.03-2.71c-.1-.25-.45-1.29.1-2.64c0 0 .84-.27 2.75 1.02c.79-.22 1.65-.33 2.5-.33s1.71.11 2.5.33c1.91-1.29 2.75-1.02 2.75-1.02c.55 1.35.2 2.39.1 2.64c.65.71 1.03 1.6 1.03 2.71c0 3.82-2.34 4.66-4.57 4.91c.36.31.69.92.69 1.85V21c0 .27.16.59.67.5C19.14 20.16 22 16.42 22 12A10 10 0 0 0 12 2"
16
+ }, null, -1)])]);
17
+ }
18
+ var VZIconGitHub_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
+
20
+ //#endregion
21
+ export { VZIconGitHub_default as default };
@@ -0,0 +1,24 @@
1
+ import export_helper_default from "../../../_virtual/_/plugin-vue/export-helper.js";
2
+ import { createElementBlock, createElementVNode, openBlock } from "vue";
3
+
4
+ //#region src/vitepress/components/icons/VZIconLogo.vue
5
+ const _sfc_main = {};
6
+ const _hoisted_1 = {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ "aria-hidden": "true",
9
+ focusable: "false",
10
+ viewBox: "0 0 200 40",
11
+ fill: "white"
12
+ };
13
+ function _sfc_render(_ctx, _cache) {
14
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("text", {
15
+ x: "10",
16
+ y: "30",
17
+ "font-family": "monospace",
18
+ "font-size": "24"
19
+ }, "LOGO", -1)])]);
20
+ }
21
+ var VZIconLogo_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
22
+
23
+ //#endregion
24
+ export { VZIconLogo_default as default };
@@ -0,0 +1,21 @@
1
+ import export_helper_default from "../../../_virtual/_/plugin-vue/export-helper.js";
2
+ import { createElementBlock, createElementVNode, openBlock } from "vue";
3
+
4
+ //#region src/vitepress/components/icons/VZIconTwitter.vue
5
+ const _sfc_main = {};
6
+ const _hoisted_1 = {
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ "aria-hidden": "true",
9
+ focusable: "false",
10
+ viewBox: "0 0 24 24"
11
+ };
12
+ function _sfc_render(_ctx, _cache) {
13
+ return openBlock(), createElementBlock("svg", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("path", {
14
+ fill: "currentColor",
15
+ d: "M22.46 6c-.77.35-1.6.58-2.46.69c.88-.53 1.56-1.37 1.88-2.38c-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29c0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15c0 1.49.75 2.81 1.91 3.56c-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.2 4.2 0 0 1-1.93.07a4.28 4.28 0 0 0 4 2.98a8.52 8.52 0 0 1-5.33 1.84q-.51 0-1.02-.06C3.44 20.29 5.7 21 8.12 21C16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56c.84-.6 1.56-1.36 2.14-2.23"
16
+ }, null, -1)])]);
17
+ }
18
+ var VZIconTwitter_default = /* @__PURE__ */ export_helper_default(_sfc_main, [["render", _sfc_render]]);
19
+
20
+ //#endregion
21
+ export { VZIconTwitter_default as default };
@@ -0,0 +1,7 @@
1
+ import TerminalAnimation1_vue_vue_type_script_setup_true_lang_default from "./TerminalAnimation1.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation1.vue
4
+ var TerminalAnimation1_default = TerminalAnimation1_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { TerminalAnimation1_default as default };
@@ -0,0 +1,31 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, onMounted, onUnmounted, openBlock } from "vue";
2
+ import Typewriter from "typewriter-effect/dist/core";
3
+
4
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation1.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = { class: "font-mono text-sm text-white leading-[1.5rem]" };
6
+ var TerminalAnimation1_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "TerminalAnimation1",
8
+ props: { onAnimationComplete: { type: Function } },
9
+ setup(__props) {
10
+ const props = __props;
11
+ let typewriter;
12
+ onMounted(() => {
13
+ typewriter = new Typewriter(document.getElementById("terminal-code"), {
14
+ loop: false,
15
+ delay: 1
16
+ });
17
+ typewriter.typeString(`<span>$ vite new vite-plus-demo --template react-ts</span>`).pauseFor(500).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<span class="text-aqua">◇ Scaffolding project in ~/vite-plus-demo</span>`).pauseFor(500).pasteString(`<span class="text-grey block">|</span>`).pasteString(`<span class="text-zest block">└ Done.</span>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).pauseFor(500).pasteString(`<span class="block"><span class="text-zest">✓</span> Installing dependencies using default package manager: <span class="text-vite">pnpm@v10.16.1</span></span>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<div class="block"><span class="text-grey">Progress:</span> resolved 1, reused 0, downloaded 0, added 0</div>`).pasteString(`<div class="block"><span class="text-grey">Packages:</span> <span class="text-vite">+31</span></div>`).typeString(`<span class="text-grey block">++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span>`).pasteString(`<div class="block"><span class="text-grey">Progress:</span> resolved 31, reused 31, downloaded 0, added 31, <span class="text-zest">done</span></div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).callFunction(() => {
18
+ if (props.onAnimationComplete) props.onAnimationComplete();
19
+ }).start();
20
+ });
21
+ onUnmounted(() => {
22
+ if (typewriter) typewriter.stop();
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createElementBlock("p", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("span", { id: "terminal-code" }, null, -1)])]);
26
+ };
27
+ }
28
+ });
29
+
30
+ //#endregion
31
+ export { TerminalAnimation1_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import TerminalAnimation2_vue_vue_type_script_setup_true_lang_default from "./TerminalAnimation2.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation2.vue
4
+ var TerminalAnimation2_default = TerminalAnimation2_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { TerminalAnimation2_default as default };
@@ -0,0 +1,38 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, onMounted, onUnmounted, openBlock } from "vue";
2
+ import Typewriter from "typewriter-effect/dist/core";
3
+
4
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation2.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = { class: "font-mono text-sm text-white leading-[1.5rem]" };
6
+ var TerminalAnimation2_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "TerminalAnimation2",
8
+ props: { onAnimationComplete: { type: Function } },
9
+ setup(__props) {
10
+ const props = __props;
11
+ let typewriter;
12
+ onMounted(() => {
13
+ const now = /* @__PURE__ */ new Date();
14
+ let hours = now.getHours();
15
+ const minutes = now.getMinutes().toString().padStart(2, "0");
16
+ const seconds = now.getSeconds().toString().padStart(2, "0");
17
+ const ampm = hours >= 12 ? "pm" : "am";
18
+ hours = hours % 12 || 12;
19
+ const currentTime = `${hours}:${minutes}:${seconds} ${ampm}`;
20
+ typewriter = new Typewriter(document.getElementById("terminal-code"), {
21
+ loop: false,
22
+ delay: 1
23
+ });
24
+ typewriter.typeString(`<span>$ vite dev</span>`).pauseFor(200).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<div class="block text-grey"><span class="text-vite">VITE+ v1.0.0</span> ready in <span class="text-white font-medium">65</span> ms</div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).pauseFor(500).pasteString(`<div class="block"><span class="text-vite"> → Local: </span><span class="text-aqua">http://localhost:5173/</span></div>`).pasteString(`<div class="block text-grey">→ Network: use <span class="text-white font-medium">--host</span> to expose</div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).pauseFor(1500).pasteString(`<div class="block text-grey">${currentTime} <span class="text-aqua">[vite]</span> (client) <span class="text-vite">hmr update</span> /src/App.tsx</div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).callFunction(() => {
25
+ if (props.onAnimationComplete) props.onAnimationComplete();
26
+ }).start();
27
+ });
28
+ onUnmounted(() => {
29
+ if (typewriter) typewriter.stop();
30
+ });
31
+ return (_ctx, _cache) => {
32
+ return openBlock(), createElementBlock("p", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("span", { id: "terminal-code" }, null, -1)])]);
33
+ };
34
+ }
35
+ });
36
+
37
+ //#endregion
38
+ export { TerminalAnimation2_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import TerminalAnimation3_vue_vue_type_script_setup_true_lang_default from "./TerminalAnimation3.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation3.vue
4
+ var TerminalAnimation3_default = TerminalAnimation3_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { TerminalAnimation3_default as default };
@@ -0,0 +1,31 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, onMounted, onUnmounted, openBlock } from "vue";
2
+ import Typewriter from "typewriter-effect/dist/core";
3
+
4
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation3.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = { class: "font-mono text-sm text-white leading-[1.5rem]" };
6
+ var TerminalAnimation3_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "TerminalAnimation3",
8
+ props: { onAnimationComplete: { type: Function } },
9
+ setup(__props) {
10
+ const props = __props;
11
+ let typewriter;
12
+ onMounted(() => {
13
+ typewriter = new Typewriter(document.getElementById("terminal-code"), {
14
+ loop: false,
15
+ delay: 1
16
+ });
17
+ typewriter.typeString(`<span>$ vite lint</span>`).pauseFor(200).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<div class="block text-grey"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">lint</span></div>`).pauseFor(500).pasteString(`<div class="block text-grey">Found <span class="text-white">0 warnings</span> and <span class="text-white">0 errors</span>.</div>`).pasteString(`<div class="block text-grey"><span class="text-zest">✓</span> Finished in <span class="text-white">1ms</span> on <span class="text-white">3 files</span> with <span class="text-white">88 rules</span> using <span class="text-white">10 threads</span>.</div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).callFunction(() => {
18
+ if (props.onAnimationComplete) props.onAnimationComplete();
19
+ }).start();
20
+ });
21
+ onUnmounted(() => {
22
+ if (typewriter) typewriter.stop();
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createElementBlock("p", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("span", { id: "terminal-code" }, null, -1)])]);
26
+ };
27
+ }
28
+ });
29
+
30
+ //#endregion
31
+ export { TerminalAnimation3_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import TerminalAnimation4_vue_vue_type_script_setup_true_lang_default from "./TerminalAnimation4.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation4.vue
4
+ var TerminalAnimation4_default = TerminalAnimation4_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { TerminalAnimation4_default as default };
@@ -0,0 +1,31 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, onMounted, onUnmounted, openBlock } from "vue";
2
+ import Typewriter from "typewriter-effect/dist/core";
3
+
4
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation4.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = { class: "font-mono text-sm text-white leading-[1.5rem]" };
6
+ var TerminalAnimation4_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "TerminalAnimation4",
8
+ props: { onAnimationComplete: { type: Function } },
9
+ setup(__props) {
10
+ const props = __props;
11
+ let typewriter;
12
+ onMounted(() => {
13
+ typewriter = new Typewriter(document.getElementById("terminal-code"), {
14
+ loop: false,
15
+ delay: 1
16
+ });
17
+ typewriter.typeString(`<span>$ vite fmt</span>`).pauseFor(200).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<div class="block text-grey"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">fmt</span></div>`).pauseFor(500).pasteString(`<div class="block">src/App.css <span class="text-aqua">0ms</span> <span class="text-grey">(unchanged)</span></div>`).pasteString(`<div class="block">src/App.tsx <span class="text-aqua">1ms</span></div>`).pasteString(`<div class="block">src/index.css <span class="text-aqua">0ms</span> <span class="text-grey">(unchanged)</span></div>`).pasteString(`<div class="block">src/main.tsx <span class="text-aqua">1ms</span></div>`).pasteString(`<div class="block">src/vite-env.d.ts <span class="text-aqua">0ms</span> <span class="text-grey">(unchanged)</span></div>`).pasteString(`<div class="block"><span class="text-zest">✓</span> Formatted <span class="text-aqua">2 files</span> in <span class="text-aqua">2ms</span>.</div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).callFunction(() => {
18
+ if (props.onAnimationComplete) props.onAnimationComplete();
19
+ }).start();
20
+ });
21
+ onUnmounted(() => {
22
+ if (typewriter) typewriter.stop();
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createElementBlock("p", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("span", { id: "terminal-code" }, null, -1)])]);
26
+ };
27
+ }
28
+ });
29
+
30
+ //#endregion
31
+ export { TerminalAnimation4_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import TerminalAnimation5_vue_vue_type_script_setup_true_lang_default from "./TerminalAnimation5.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation5.vue
4
+ var TerminalAnimation5_default = TerminalAnimation5_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { TerminalAnimation5_default as default };
@@ -0,0 +1,31 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, onMounted, onUnmounted, openBlock } from "vue";
2
+ import Typewriter from "typewriter-effect/dist/core";
3
+
4
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation5.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = { class: "font-mono text-sm text-white leading-[1.5rem]" };
6
+ var TerminalAnimation5_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "TerminalAnimation5",
8
+ props: { onAnimationComplete: { type: Function } },
9
+ setup(__props) {
10
+ const props = __props;
11
+ let typewriter;
12
+ onMounted(() => {
13
+ typewriter = new Typewriter(document.getElementById("terminal-code"), {
14
+ loop: false,
15
+ delay: 1
16
+ });
17
+ typewriter.typeString(`<span>$ vite test</span>`).pauseFor(200).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<div class="block"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">test</span> RUN ~/vite-plus-demo</div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).pauseFor(300).pasteString(`<div class="block"><span class="text-zest">✓</span> test/hello.spec.ts <span class="text-grey">(1 test)</span> <span class="text-zest">1ms</span></div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<div class="block text-grey">Test Files <span class="text-zest">1 passed</span> <span class="text-grey">(1)</span></div>`).pasteString(`<div class="block text-grey">Tests <span class="text-zest">1 passed</span> <span class="text-grey">(1)</span></div>`).pasteString(`<div class="block text-grey">Start at <span class="text-white">00:13:44</span></div>`).pasteString(`<div class="block text-grey">Duration <span class="text-white">199ms</span> <span class="text-grey">(transform 13ms, setup 0ms, collect 8ms, tests 1ms, environment 0ms, prepare 33ms)</span></div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).callFunction(() => {
18
+ if (props.onAnimationComplete) props.onAnimationComplete();
19
+ }).start();
20
+ });
21
+ onUnmounted(() => {
22
+ if (typewriter) typewriter.stop();
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createElementBlock("p", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("span", { id: "terminal-code" }, null, -1)])]);
26
+ };
27
+ }
28
+ });
29
+
30
+ //#endregion
31
+ export { TerminalAnimation5_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,7 @@
1
+ import TerminalAnimation6_vue_vue_type_script_setup_true_lang_default from "./TerminalAnimation6.vue_vue_type_script_setup_true_lang.js";
2
+
3
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation6.vue
4
+ var TerminalAnimation6_default = TerminalAnimation6_vue_vue_type_script_setup_true_lang_default;
5
+
6
+ //#endregion
7
+ export { TerminalAnimation6_default as default };
@@ -0,0 +1,31 @@
1
+ import { createElementBlock, createElementVNode, defineComponent, onMounted, onUnmounted, openBlock } from "vue";
2
+ import Typewriter from "typewriter-effect/dist/core";
3
+
4
+ //#region src/vitepress/components/terminal-animations/TerminalAnimation6.vue?vue&type=script&setup=true&lang.ts
5
+ const _hoisted_1 = { class: "font-mono text-sm text-white leading-[1.5rem]" };
6
+ var TerminalAnimation6_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
7
+ __name: "TerminalAnimation6",
8
+ props: { onAnimationComplete: { type: Function } },
9
+ setup(__props) {
10
+ const props = __props;
11
+ let typewriter;
12
+ onMounted(() => {
13
+ typewriter = new Typewriter(document.getElementById("terminal-code"), {
14
+ loop: false,
15
+ delay: 1
16
+ });
17
+ typewriter.typeString(`<span>$ vite build</span>`).pauseFor(200).pasteString(`<span class="block w-full h-[1rem]"></span>`).pasteString(`<div class="block"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">building for production</span></div>`).pauseFor(100).pasteString(`<div class="block">transforming...</div>`).pauseFor(400).pasteString(`<div class="block"><span class="text-zest">✓</span> <span class="text-grey">32 modules transformed...</span></div>`).pauseFor(300).pasteString(`<div class="block">rendering chunks...</div>`).pasteString(`<div class="block">computing gzip size...</div>`).pasteString(`<div class="block text-grey"><span class="w-72 inline-block">dist/<span class="text-white">index.html</span></span>&nbsp;&nbsp;0.46 kB | gzip: 0.30 kB</div>`).pasteString(`<div class="block text-grey"><span class="w-72 inline-block">dist/assets/<span class="text-vite">react-CHdo91hT.svg</span></span>&nbsp;&nbsp;4.13 kB | gzip: 2.05 kB</div>`).pasteString(`<div class="block text-grey"><span class="w-72 inline-block">dist/assets/<span class="text-electric">index-D8b4DHJx.css</span></span>&nbsp;&nbsp;1.39 kB | gzip: 0.71 kB</div>`).pasteString(`<div class="block text-grey"><span class="w-72 inline-block">dist/assets/<span class="text-aqua">index-CAl1KfkQ.js</span></span>188.06 kB | gzip: 59.21 kB</div>`).pasteString(`<div class="block"><span class="text-zest">✓ built in 308ms</span></div>`).pasteString(`<span class="block w-full h-[1rem]"></span>`).callFunction(() => {
18
+ if (props.onAnimationComplete) props.onAnimationComplete();
19
+ }).start();
20
+ });
21
+ onUnmounted(() => {
22
+ if (typewriter) typewriter.stop();
23
+ });
24
+ return (_ctx, _cache) => {
25
+ return openBlock(), createElementBlock("p", _hoisted_1, [..._cache[0] || (_cache[0] = [createElementVNode("span", { id: "terminal-code" }, null, -1)])]);
26
+ };
27
+ }
28
+ });
29
+
30
+ //#endregion
31
+ export { TerminalAnimation6_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,33 @@
1
+ import * as vitepress0 from "vitepress";
2
+
3
+ //#region src/vitepress/index.d.ts
4
+
5
+ /**
6
+ * @voidzerodev/vitepress-theme
7
+ *
8
+ * Shared VitePress theme providing base styles, fonts, and design tokens
9
+ * for VoidZero projects.
10
+ *
11
+ * Usage:
12
+ * Extend this theme in your project's VitePress theme.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * // In your-project/.vitepress/theme/index.ts
17
+ * import Theme from '@voidzerodev/vitepress-theme'
18
+ * import './overrides.css' // Your project-specific styles
19
+ *
20
+ * export default {
21
+ * extends: Theme,
22
+ * Layout: YourLayout
23
+ * }
24
+ * ```
25
+ */
26
+ declare const VPTheme: {
27
+ Layout: () => null;
28
+ enhanceApp({
29
+ app
30
+ }: vitepress0.EnhanceAppContext): void;
31
+ };
32
+ //#endregion
33
+ export { VPTheme };
@@ -0,0 +1,21 @@
1
+ import Footer_default from "./components/Footer.js";
2
+ import Header_default from "./components/Header.js";
3
+ import Terminal_default from "./components/Terminal.js";
4
+ import Eyebrow_default from "./components/Eyebrow.js";
5
+ import RiveAnimation_default from "./components/RiveAnimation.js";
6
+
7
+ //#region src/vitepress/index.ts
8
+ const VPTheme = {
9
+ Layout: () => null,
10
+ enhanceApp({ app }) {
11
+ app.component("Footer", Footer_default);
12
+ app.component("Header", Header_default);
13
+ app.component("Terminal", Terminal_default);
14
+ app.component("Eyebrow", Eyebrow_default);
15
+ app.component("RiveAnimation", RiveAnimation_default);
16
+ }
17
+ };
18
+ var vitepress_default = VPTheme;
19
+
20
+ //#endregion
21
+ export { VPTheme, vitepress_default as default };
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@voidzero-dev/vitepress-theme",
3
+ "version": "0.0.1",
4
+ "description": "Shared VitePress theme for VoidZero projects",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ },
14
+ "./index.css": "./dist/index.css"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "peerDependencies": {
20
+ "vitepress": "^2.0.0-alpha.12",
21
+ "vue": "^3.5.0"
22
+ },
23
+ "dependencies": {
24
+ "@rive-app/canvas": "^2.31.6",
25
+ "@tailwindcss/typography": "^0.5.19",
26
+ "@tailwindcss/vite": "^4.1.13",
27
+ "reka-ui": "^2.5.1",
28
+ "tailwindcss": "^4.1.13",
29
+ "typewriter-effect": "^2.22.0"
30
+ },
31
+ "devDependencies": {
32
+ "tsdown": "^0.15.11",
33
+ "typescript": "^5.9.3",
34
+ "unplugin-vue": "^7.0.3",
35
+ "vue-tsc": "^3.1.2"
36
+ },
37
+ "scripts": {
38
+ "build": "tsdown"
39
+ }
40
+ }