@voidzero-dev/vitepress-theme 0.0.2 → 0.0.4
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/dist/_virtual/_/plugin-vue/export-helper.js +11 -0
- package/{style.css → dist/index.css} +7 -7
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/vitepress/components/Eyebrow.js +18 -0
- package/dist/vitepress/components/Footer.js +58 -0
- package/dist/vitepress/components/Header.js +34 -0
- package/dist/vitepress/components/RiveAnimation.js +117 -0
- package/dist/vitepress/components/Terminal.js +161 -0
- package/dist/vitepress/components/icons/VZIconBluesky.js +21 -0
- package/dist/vitepress/components/icons/VZIconGitHub.js +21 -0
- package/dist/vitepress/components/icons/VZIconLogo.js +24 -0
- package/dist/vitepress/components/icons/VZIconTwitter.js +21 -0
- package/dist/vitepress/components/terminal-animations/TerminalAnimation1.js +37 -0
- package/dist/vitepress/components/terminal-animations/TerminalAnimation2.js +44 -0
- package/dist/vitepress/components/terminal-animations/TerminalAnimation3.js +37 -0
- package/dist/vitepress/components/terminal-animations/TerminalAnimation4.js +37 -0
- package/dist/vitepress/components/terminal-animations/TerminalAnimation5.js +37 -0
- package/dist/vitepress/components/terminal-animations/TerminalAnimation6.js +37 -0
- package/dist/vitepress/index.d.ts +34 -0
- package/dist/vitepress/index.js +21 -0
- package/package.json +20 -18
- package/assets/checkmark.svg +0 -1
- package/assets/primary-button-background.jpg +0 -0
- package/assets/terminal-background.jpg +0 -0
- package/components/Eyebrow.vue +0 -11
- package/components/Footer.vue +0 -44
- package/components/Header.vue +0 -38
- package/components/RiveAnimation.vue +0 -144
- package/components/Terminal.vue +0 -165
- package/components/terminal-animations/TerminalAnimation1.vue +0 -53
- package/components/terminal-animations/TerminalAnimation2.vue +0 -58
- package/components/terminal-animations/TerminalAnimation3.vue +0 -45
- package/components/terminal-animations/TerminalAnimation4.vue +0 -49
- package/components/terminal-animations/TerminalAnimation5.vue +0 -50
- package/components/terminal-animations/TerminalAnimation6.vue +0 -54
- package/fonts/APK-Protocol-Medium.woff2 +0 -0
- package/fonts/KHTeka-Medium.woff2 +0 -0
- package/fonts/KHTeka-Regular.woff2 +0 -0
- package/fonts/KHTekaMono-Medium.woff2 +0 -0
- package/fonts/KHTekaMono-Regular.woff2 +0 -0
- package/index.ts +0 -44
package/components/Terminal.vue
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import {ref, onMounted, onUnmounted} from 'vue'
|
|
3
|
-
import {TabsContent, TabsList, TabsRoot, TabsTrigger} from 'reka-ui'
|
|
4
|
-
import TerminalAnimation1 from "./terminal-animations/TerminalAnimation1.vue";
|
|
5
|
-
import TerminalAnimation2 from "./terminal-animations/TerminalAnimation2.vue";
|
|
6
|
-
import TerminalAnimation3 from "./terminal-animations/TerminalAnimation3.vue";
|
|
7
|
-
import TerminalAnimation4 from "./terminal-animations/TerminalAnimation4.vue";
|
|
8
|
-
import TerminalAnimation5 from "./terminal-animations/TerminalAnimation5.vue";
|
|
9
|
-
import TerminalAnimation6 from "./terminal-animations/TerminalAnimation6.vue";
|
|
10
|
-
import terminalBg from '../assets/terminal-background.jpg';
|
|
11
|
-
|
|
12
|
-
// Auto-progression configuration
|
|
13
|
-
const AUTO_ADVANCE_DELAY = 1500
|
|
14
|
-
|
|
15
|
-
// State management
|
|
16
|
-
const activeTab = ref('tab1')
|
|
17
|
-
const autoPlayEnabled = ref(true)
|
|
18
|
-
let autoAdvanceTimeout: ReturnType<typeof setTimeout> | null = null
|
|
19
|
-
|
|
20
|
-
// Intersection Observer state
|
|
21
|
-
const sectionRef = ref<HTMLElement | null>(null)
|
|
22
|
-
const isVisible = ref(false)
|
|
23
|
-
let observer: IntersectionObserver | null = null
|
|
24
|
-
|
|
25
|
-
// Tab progression logic
|
|
26
|
-
const tabSequence = ['tab1', 'tab2', 'tab3', 'tab4', 'tab5', 'tab6']
|
|
27
|
-
|
|
28
|
-
const goToNextTab = () => {
|
|
29
|
-
const currentIndex = tabSequence.indexOf(activeTab.value)
|
|
30
|
-
const nextIndex = (currentIndex + 1) % tabSequence.length
|
|
31
|
-
activeTab.value = tabSequence[nextIndex]
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Handle animation completion
|
|
35
|
-
const onAnimationComplete = () => {
|
|
36
|
-
if (!autoPlayEnabled.value) return
|
|
37
|
-
|
|
38
|
-
// Clear any existing timeout
|
|
39
|
-
if (autoAdvanceTimeout) {
|
|
40
|
-
clearTimeout(autoAdvanceTimeout)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Schedule next tab
|
|
44
|
-
autoAdvanceTimeout = setTimeout(() => {
|
|
45
|
-
goToNextTab()
|
|
46
|
-
}, AUTO_ADVANCE_DELAY)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// Handle user interaction with tabs
|
|
50
|
-
const onTabChange = () => {
|
|
51
|
-
// User clicked a tab, disable auto-play
|
|
52
|
-
autoPlayEnabled.value = false
|
|
53
|
-
|
|
54
|
-
// Clear any pending auto-advance
|
|
55
|
-
if (autoAdvanceTimeout) {
|
|
56
|
-
clearTimeout(autoAdvanceTimeout)
|
|
57
|
-
autoAdvanceTimeout = null
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Setup Intersection Observer
|
|
62
|
-
onMounted(() => {
|
|
63
|
-
if (!sectionRef.value) return
|
|
64
|
-
|
|
65
|
-
observer = new IntersectionObserver(
|
|
66
|
-
(entries) => {
|
|
67
|
-
entries.forEach((entry) => {
|
|
68
|
-
if (entry.isIntersecting && !isVisible.value) {
|
|
69
|
-
isVisible.value = true
|
|
70
|
-
// Disconnect observer after first intersection
|
|
71
|
-
observer?.disconnect()
|
|
72
|
-
}
|
|
73
|
-
})
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
threshold: 0.2, // Trigger when 20% of the element is visible
|
|
77
|
-
rootMargin: '0px'
|
|
78
|
-
}
|
|
79
|
-
)
|
|
80
|
-
|
|
81
|
-
observer.observe(sectionRef.value)
|
|
82
|
-
})
|
|
83
|
-
|
|
84
|
-
// Cleanup
|
|
85
|
-
onUnmounted(() => {
|
|
86
|
-
if (autoAdvanceTimeout) {
|
|
87
|
-
clearTimeout(autoAdvanceTimeout)
|
|
88
|
-
}
|
|
89
|
-
if (observer) {
|
|
90
|
-
observer.disconnect()
|
|
91
|
-
}
|
|
92
|
-
})
|
|
93
|
-
</script>
|
|
94
|
-
|
|
95
|
-
<template>
|
|
96
|
-
<section
|
|
97
|
-
ref="sectionRef"
|
|
98
|
-
:style="{ backgroundImage: `url(${terminalBg})` }"
|
|
99
|
-
class="wrapper border-t h-[40rem] bg-wine bg-cover bg-top flex justify-center pt-28 overflow-clip">
|
|
100
|
-
<div
|
|
101
|
-
:class="[
|
|
102
|
-
'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',
|
|
103
|
-
'transition-transform duration-1000',
|
|
104
|
-
isVisible ? 'translate-y-0' : 'translate-y-24'
|
|
105
|
-
]"
|
|
106
|
-
style="transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);">
|
|
107
|
-
<TabsRoot
|
|
108
|
-
v-if="isVisible"
|
|
109
|
-
v-model="activeTab"
|
|
110
|
-
@update:modelValue="onTabChange"
|
|
111
|
-
>
|
|
112
|
-
<TabsList
|
|
113
|
-
aria-label="features"
|
|
114
|
-
:class="[
|
|
115
|
-
'absolute bottom-6 left-1/2 -translate-x-1/2 flex items-center p-1 rounded-md border border-white/10',
|
|
116
|
-
'transition-transform duration-700 delay-300',
|
|
117
|
-
isVisible ? 'translate-y-0' : 'translate-y-12'
|
|
118
|
-
]"
|
|
119
|
-
style="transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);">
|
|
120
|
-
<TabsTrigger value="tab1">
|
|
121
|
-
new
|
|
122
|
-
</TabsTrigger>
|
|
123
|
-
<TabsTrigger value="tab2">
|
|
124
|
-
dev
|
|
125
|
-
</TabsTrigger>
|
|
126
|
-
<TabsTrigger value="tab3">
|
|
127
|
-
lint
|
|
128
|
-
</TabsTrigger>
|
|
129
|
-
<TabsTrigger value="tab4">
|
|
130
|
-
fmt
|
|
131
|
-
</TabsTrigger>
|
|
132
|
-
<TabsTrigger value="tab5">
|
|
133
|
-
test
|
|
134
|
-
</TabsTrigger>
|
|
135
|
-
<TabsTrigger value="tab6">
|
|
136
|
-
build
|
|
137
|
-
</TabsTrigger>
|
|
138
|
-
</TabsList>
|
|
139
|
-
<TabsContent value="tab1">
|
|
140
|
-
<TerminalAnimation1 :on-animation-complete="onAnimationComplete"/>
|
|
141
|
-
</TabsContent>
|
|
142
|
-
<TabsContent value="tab2">
|
|
143
|
-
<TerminalAnimation2 :on-animation-complete="onAnimationComplete"/>
|
|
144
|
-
</TabsContent>
|
|
145
|
-
<TabsContent value="tab3">
|
|
146
|
-
<TerminalAnimation3 :on-animation-complete="onAnimationComplete"/>
|
|
147
|
-
</TabsContent>
|
|
148
|
-
<TabsContent value="tab4">
|
|
149
|
-
<TerminalAnimation4 :on-animation-complete="onAnimationComplete"/>
|
|
150
|
-
</TabsContent>
|
|
151
|
-
<TabsContent value="tab5">
|
|
152
|
-
<TerminalAnimation5 :on-animation-complete="onAnimationComplete"/>
|
|
153
|
-
</TabsContent>
|
|
154
|
-
<TabsContent value="tab6">
|
|
155
|
-
<TerminalAnimation6 :on-animation-complete="onAnimationComplete"/>
|
|
156
|
-
</TabsContent>
|
|
157
|
-
</TabsRoot>
|
|
158
|
-
|
|
159
|
-
</div>
|
|
160
|
-
</section>
|
|
161
|
-
</template>
|
|
162
|
-
|
|
163
|
-
<style scoped>
|
|
164
|
-
|
|
165
|
-
</style>
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Typewriter from 'typewriter-effect/dist/core'
|
|
3
|
-
import {onMounted, onUnmounted} from "vue";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
onAnimationComplete?: () => void
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
let typewriter;
|
|
10
|
-
|
|
11
|
-
onMounted(() => {
|
|
12
|
-
const target = document.getElementById('terminal-code');
|
|
13
|
-
typewriter = new Typewriter(target, {
|
|
14
|
-
loop: false,
|
|
15
|
-
delay: 1,
|
|
16
|
-
})
|
|
17
|
-
typewriter
|
|
18
|
-
.typeString(`<span>$ vite new vite-plus-demo --template react-ts</span>`)
|
|
19
|
-
.pauseFor(500)
|
|
20
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
21
|
-
.pasteString(`<span class="text-aqua">◇ Scaffolding project in ~/vite-plus-demo</span>`)
|
|
22
|
-
.pauseFor(500)
|
|
23
|
-
.pasteString(`<span class="text-grey block">|</span>`)
|
|
24
|
-
.pasteString(`<span class="text-zest block">└ Done.</span>`)
|
|
25
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
26
|
-
.pauseFor(500)
|
|
27
|
-
.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>`)
|
|
28
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
29
|
-
.pasteString(`<div class="block"><span class="text-grey">Progress:</span> resolved 1, reused 0, downloaded 0, added 0</div>`)
|
|
30
|
-
.pasteString(`<div class="block"><span class="text-grey">Packages:</span> <span class="text-vite">+31</span></div>`)
|
|
31
|
-
.typeString(`<span class="text-grey block">++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</span>`)
|
|
32
|
-
.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>`)
|
|
33
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
34
|
-
.callFunction(() => {
|
|
35
|
-
if (props.onAnimationComplete) {
|
|
36
|
-
props.onAnimationComplete()
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
.start();
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
onUnmounted(() => {
|
|
43
|
-
if(typewriter){
|
|
44
|
-
typewriter.stop()
|
|
45
|
-
}
|
|
46
|
-
})
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<template>
|
|
50
|
-
<p class="font-mono text-sm text-white leading-[1.5rem]">
|
|
51
|
-
<span id="terminal-code"></span>
|
|
52
|
-
</p>
|
|
53
|
-
</template>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Typewriter from 'typewriter-effect/dist/core'
|
|
3
|
-
import {onMounted, onUnmounted} from "vue";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
onAnimationComplete?: () => void
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
let typewriter;
|
|
10
|
-
|
|
11
|
-
onMounted(() => {
|
|
12
|
-
// Get current time for easter egg
|
|
13
|
-
const now = 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
|
-
|
|
21
|
-
const target = document.getElementById('terminal-code');
|
|
22
|
-
typewriter = new Typewriter(target, {
|
|
23
|
-
loop: false,
|
|
24
|
-
delay: 1,
|
|
25
|
-
})
|
|
26
|
-
typewriter
|
|
27
|
-
.typeString(`<span>$ vite dev</span>`)
|
|
28
|
-
.pauseFor(200)
|
|
29
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
30
|
-
.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>`)
|
|
31
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
32
|
-
.pauseFor(500)
|
|
33
|
-
.pasteString(`<div class="block"><span class="text-vite"> → Local: </span><span class="text-aqua">http://localhost:5173/</span></div>`)
|
|
34
|
-
.pasteString(`<div class="block text-grey">→ Network: use <span class="text-white font-medium">--host</span> to expose</div>`)
|
|
35
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
36
|
-
.pauseFor(1500)
|
|
37
|
-
.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>`)
|
|
38
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
39
|
-
.callFunction(() => {
|
|
40
|
-
if (props.onAnimationComplete) {
|
|
41
|
-
props.onAnimationComplete()
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
.start();
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
onUnmounted(() => {
|
|
48
|
-
if(typewriter){
|
|
49
|
-
typewriter.stop()
|
|
50
|
-
}
|
|
51
|
-
})
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<template>
|
|
55
|
-
<p class="font-mono text-sm text-white leading-[1.5rem]">
|
|
56
|
-
<span id="terminal-code"></span>
|
|
57
|
-
</p>
|
|
58
|
-
</template>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Typewriter from 'typewriter-effect/dist/core'
|
|
3
|
-
import {onMounted, onUnmounted} from "vue";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
onAnimationComplete?: () => void
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
let typewriter;
|
|
10
|
-
|
|
11
|
-
onMounted(() => {
|
|
12
|
-
const target = document.getElementById('terminal-code');
|
|
13
|
-
typewriter = new Typewriter(target, {
|
|
14
|
-
loop: false,
|
|
15
|
-
delay: 1,
|
|
16
|
-
})
|
|
17
|
-
typewriter
|
|
18
|
-
.typeString(`<span>$ vite lint</span>`)
|
|
19
|
-
.pauseFor(200)
|
|
20
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
21
|
-
.pasteString(`<div class="block text-grey"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">lint</span></div>`)
|
|
22
|
-
.pauseFor(500)
|
|
23
|
-
.pasteString(`<div class="block text-grey">Found <span class="text-white">0 warnings</span> and <span class="text-white">0 errors</span>.</div>`)
|
|
24
|
-
.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>`)
|
|
25
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
26
|
-
.callFunction(() => {
|
|
27
|
-
if (props.onAnimationComplete) {
|
|
28
|
-
props.onAnimationComplete()
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
.start();
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
onUnmounted(() => {
|
|
35
|
-
if(typewriter){
|
|
36
|
-
typewriter.stop()
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
</script>
|
|
40
|
-
|
|
41
|
-
<template>
|
|
42
|
-
<p class="font-mono text-sm text-white leading-[1.5rem]">
|
|
43
|
-
<span id="terminal-code"></span>
|
|
44
|
-
</p>
|
|
45
|
-
</template>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Typewriter from 'typewriter-effect/dist/core'
|
|
3
|
-
import {onMounted, onUnmounted} from "vue";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
onAnimationComplete?: () => void
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
let typewriter;
|
|
10
|
-
|
|
11
|
-
onMounted(() => {
|
|
12
|
-
const target = document.getElementById('terminal-code');
|
|
13
|
-
typewriter = new Typewriter(target, {
|
|
14
|
-
loop: false,
|
|
15
|
-
delay: 1,
|
|
16
|
-
})
|
|
17
|
-
typewriter
|
|
18
|
-
.typeString(`<span>$ vite fmt</span>`)
|
|
19
|
-
.pauseFor(200)
|
|
20
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
21
|
-
.pasteString(`<div class="block text-grey"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">fmt</span></div>`)
|
|
22
|
-
.pauseFor(500)
|
|
23
|
-
.pasteString(`<div class="block">src/App.css <span class="text-aqua">0ms</span> <span class="text-grey">(unchanged)</span></div>`)
|
|
24
|
-
.pasteString(`<div class="block">src/App.tsx <span class="text-aqua">1ms</span></div>`)
|
|
25
|
-
.pasteString(`<div class="block">src/index.css <span class="text-aqua">0ms</span> <span class="text-grey">(unchanged)</span></div>`)
|
|
26
|
-
.pasteString(`<div class="block">src/main.tsx <span class="text-aqua">1ms</span></div>`)
|
|
27
|
-
.pasteString(`<div class="block">src/vite-env.d.ts <span class="text-aqua">0ms</span> <span class="text-grey">(unchanged)</span></div>`)
|
|
28
|
-
.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>`)
|
|
29
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
30
|
-
.callFunction(() => {
|
|
31
|
-
if (props.onAnimationComplete) {
|
|
32
|
-
props.onAnimationComplete()
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
.start();
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
onUnmounted(() => {
|
|
39
|
-
if(typewriter){
|
|
40
|
-
typewriter.stop()
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<template>
|
|
46
|
-
<p class="font-mono text-sm text-white leading-[1.5rem]">
|
|
47
|
-
<span id="terminal-code"></span>
|
|
48
|
-
</p>
|
|
49
|
-
</template>
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Typewriter from 'typewriter-effect/dist/core'
|
|
3
|
-
import {onMounted, onUnmounted} from "vue";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
onAnimationComplete?: () => void
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
let typewriter;
|
|
10
|
-
|
|
11
|
-
onMounted(() => {
|
|
12
|
-
const target = document.getElementById('terminal-code');
|
|
13
|
-
typewriter = new Typewriter(target, {
|
|
14
|
-
loop: false,
|
|
15
|
-
delay: 1,
|
|
16
|
-
})
|
|
17
|
-
typewriter
|
|
18
|
-
.typeString(`<span>$ vite test</span>`)
|
|
19
|
-
.pauseFor(200)
|
|
20
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
21
|
-
.pasteString(`<div class="block"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">test</span> RUN ~/vite-plus-demo</div>`)
|
|
22
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
23
|
-
.pauseFor(300)
|
|
24
|
-
.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>`)
|
|
25
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
26
|
-
.pasteString(`<div class="block text-grey">Test Files <span class="text-zest">1 passed</span> <span class="text-grey">(1)</span></div>`)
|
|
27
|
-
.pasteString(`<div class="block text-grey">Tests <span class="text-zest">1 passed</span> <span class="text-grey">(1)</span></div>`)
|
|
28
|
-
.pasteString(`<div class="block text-grey">Start at <span class="text-white">00:13:44</span></div>`)
|
|
29
|
-
.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>`)
|
|
30
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
31
|
-
.callFunction(() => {
|
|
32
|
-
if (props.onAnimationComplete) {
|
|
33
|
-
props.onAnimationComplete()
|
|
34
|
-
}
|
|
35
|
-
})
|
|
36
|
-
.start();
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
onUnmounted(() => {
|
|
40
|
-
if(typewriter){
|
|
41
|
-
typewriter.stop()
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
</script>
|
|
45
|
-
|
|
46
|
-
<template>
|
|
47
|
-
<p class="font-mono text-sm text-white leading-[1.5rem]">
|
|
48
|
-
<span id="terminal-code"></span>
|
|
49
|
-
</p>
|
|
50
|
-
</template>
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import Typewriter from 'typewriter-effect/dist/core'
|
|
3
|
-
import {onMounted, onUnmounted} from "vue";
|
|
4
|
-
|
|
5
|
-
const props = defineProps<{
|
|
6
|
-
onAnimationComplete?: () => void
|
|
7
|
-
}>()
|
|
8
|
-
|
|
9
|
-
let typewriter;
|
|
10
|
-
|
|
11
|
-
onMounted(() => {
|
|
12
|
-
const target = document.getElementById('terminal-code');
|
|
13
|
-
typewriter = new Typewriter(target, {
|
|
14
|
-
loop: false,
|
|
15
|
-
delay: 1,
|
|
16
|
-
})
|
|
17
|
-
typewriter
|
|
18
|
-
.typeString(`<span>$ vite build</span>`)
|
|
19
|
-
.pauseFor(200)
|
|
20
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
21
|
-
.pasteString(`<div class="block"><span class="text-vite">VITE+ v1.0.0</span> <span class="text-aqua">building for production</span></div>`)
|
|
22
|
-
.pauseFor(100)
|
|
23
|
-
.pasteString(`<div class="block">transforming...</div>`)
|
|
24
|
-
.pauseFor(400)
|
|
25
|
-
.pasteString(`<div class="block"><span class="text-zest">✓</span> <span class="text-grey">32 modules transformed...</span></div>`)
|
|
26
|
-
.pauseFor(300)
|
|
27
|
-
.pasteString(`<div class="block">rendering chunks...</div>`)
|
|
28
|
-
.pasteString(`<div class="block">computing gzip size...</div>`)
|
|
29
|
-
.pasteString(`<div class="block text-grey"><span class="w-72 inline-block">dist/<span class="text-white">index.html</span></span> 0.46 kB | gzip: 0.30 kB</div>`)
|
|
30
|
-
.pasteString(`<div class="block text-grey"><span class="w-72 inline-block">dist/assets/<span class="text-vite">react-CHdo91hT.svg</span></span> 4.13 kB | gzip: 2.05 kB</div>`)
|
|
31
|
-
.pasteString(`<div class="block text-grey"><span class="w-72 inline-block">dist/assets/<span class="text-electric">index-D8b4DHJx.css</span></span> 1.39 kB | gzip: 0.71 kB</div>`)
|
|
32
|
-
.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>`)
|
|
33
|
-
.pasteString(`<div class="block"><span class="text-zest">✓ built in 308ms</span></div>`)
|
|
34
|
-
.pasteString(`<span class="block w-full h-[1rem]"></span>`)
|
|
35
|
-
.callFunction(() => {
|
|
36
|
-
if (props.onAnimationComplete) {
|
|
37
|
-
props.onAnimationComplete()
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
.start();
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
onUnmounted(() => {
|
|
44
|
-
if(typewriter){
|
|
45
|
-
typewriter.stop()
|
|
46
|
-
}
|
|
47
|
-
})
|
|
48
|
-
</script>
|
|
49
|
-
|
|
50
|
-
<template>
|
|
51
|
-
<p class="font-mono text-sm text-white leading-[1.5rem]">
|
|
52
|
-
<span id="terminal-code"></span>
|
|
53
|
-
</p>
|
|
54
|
-
</template>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/index.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @voidzero-dev/vitepress-theme
|
|
3
|
-
*
|
|
4
|
-
* Shared VitePress theme providing base styles, fonts, and design tokens
|
|
5
|
-
* for VoidZero projects.
|
|
6
|
-
*
|
|
7
|
-
* Usage:
|
|
8
|
-
* Extend this theme in your project's VitePress theme.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* // In your-project/.vitepress/theme/index.ts
|
|
13
|
-
* import Theme from '@voidzero-dev/vitepress-theme'
|
|
14
|
-
* import './overrides.css' // Your project-specific styles
|
|
15
|
-
*
|
|
16
|
-
* export default {
|
|
17
|
-
* extends: Theme,
|
|
18
|
-
* Layout: YourLayout
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
|
|
23
|
-
import type { Theme } from 'vitepress'
|
|
24
|
-
import Footer from './components/Footer.vue'
|
|
25
|
-
import Header from './components/Header.vue'
|
|
26
|
-
import Terminal from './components/Terminal.vue'
|
|
27
|
-
import Eyebrow from './components/Eyebrow.vue'
|
|
28
|
-
import RiveAnimation from './components/RiveAnimation.vue'
|
|
29
|
-
|
|
30
|
-
// NOTE: We don't import style.css here because the consuming theme
|
|
31
|
-
// needs to import Tailwind first, then our styles.
|
|
32
|
-
// See the usage example in the JSDoc comment above.
|
|
33
|
-
|
|
34
|
-
export default {
|
|
35
|
-
Layout: () => null, // Base theme provides no layout, consuming themes must provide one
|
|
36
|
-
enhanceApp({ app }) {
|
|
37
|
-
// Register shared components globally - available in all consuming projects
|
|
38
|
-
app.component('Footer', Footer)
|
|
39
|
-
app.component('Header', Header)
|
|
40
|
-
app.component('Terminal', Terminal)
|
|
41
|
-
app.component('Eyebrow', Eyebrow)
|
|
42
|
-
app.component('RiveAnimation', RiveAnimation)
|
|
43
|
-
}
|
|
44
|
-
} satisfies Theme
|