Commit 562ad39032

562ad390324dd53da507b3b127b01b09e8666e48

parent: 78dd912695

Unsigned

Memenami <159567483+Memenami@users.noreply.github.com> · 2026-05-09 09:38 UTC

Yeet

Layout: unified · split

docs/.vitepress/theme/components/ChristmasCard.vue deleted −318
@@ -1,318 +0,0 @@
1<!--
2 All Rights Reserved
3
4 Copyright (c) 2025 taskylizard
5
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7-->
8<script setup lang="ts">
9import { ref } from 'vue'
10
11const clickIcon = ref<HTMLSpanElement>()
12const card = ref<HTMLDivElement>()
13
14const handleClick = () => {
15 card.value?.classList.toggle('is-opened')
16 clickIcon.value?.classList.toggle('is-hidden')
17}
18</script>
19
20<template>
21 <div class="h-xl" />
22 <div class="card" ref="card" :onClick="handleClick">
23 <div class="card-page cart-page-front">
24 <div class="card-page cart-page-outside"></div>
25 <div class="card-page cart-page-inside"></div>
26 </div>
27 <div class="card-page cart-page-bottom">
28 <p class="card-text">Merry Christmas from the Wotaku team!</p>
29 </div>
30 </div>
31 <span class="click-icon" ref="clickIcon">
32 <svg viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
33 <path
34 fill="#fff"
35 d="M31.6 17.7V26c0 1.9-.7 3.7-2 5.1v.9c0 1.6-1.3 3-3 3h-8.4c-1.6 0-3-1.3-3-3 0-.6.5-1 1-1s1 .4 1 1c0 .5.4 1 1 1h8.4c.5 0 1-.4 1-1v-1.2-.3-.1c0-.1.1-.2.2-.3 1.1-1.1 1.7-2.5 1.7-4v-8.3c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1v2.4c0 .6-.5 1-1 1s-1-.4-1-1v-5.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v5.5c0 .6-.5 1-1 1s-1-.4-1-1v-8.5c0-.3-.1-.5-.3-.7s-.4-.3-.7-.3c-.5 0-1 .5-1 1v8.5c0 .6-.5 1-1 1s-1-.4-1-1V7.7c0-.3-.1-.5-.3-.7-.1-.1-.5-.4-1-.3-.4.1-.8.6-.8 1.1V20c0 .4-.2.8-.6.9-.4.2-.8.1-1.1-.2L11 18.1c-.6-.6-1.6-.6-2.2.1-.5.6-.4 1.5.2 2.1l7 7c.4.4.4 1 0 1.4-.2.2-.5.3-.7.3-.3 0-.5-.1-.7-.3l-7-7.1c-1.3-1.3-1.5-3.5-.3-4.8C8 16 9 15.5 10 15.5c.9 0 1.8.4 2.5 1l.9.9V7.9c0-1.4.9-2.7 2.3-3 1-.3 2.1 0 2.8.8.6.6.9 1.3.9 2.1V9c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.3-.1.7-.2 1-.2.8 0 1.5.3 2.1.9s.9 1.3.9 2.1v.2c.1 0 .2-.1.3-.1 1-.3 2.1 0 2.8.8.8.5 1.1 1.3 1.1 2z"
36 />
37 </svg>
38 </span>
39</template>
40
41<style scoped>
42.card {
43 perspective: 1500px;
44 position: absolute;
45 left: calc(50% - 175px);
46 top: calc(50% - 250px);
47 transition-property: transform;
48 transition-duration: 1s;
49 transition-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
50 transition-delay: initial;
51 transform: rotate(-10deg) translate(0, 0);
52 -webkit-animation: cardIn 1s alternate cubic-bezier(0.87, -0.41, 0.19, 1.44);
53 animation: cardIn 1s alternate cubic-bezier(0.87, -0.41, 0.19, 1.44);
54}
55
56@media (max-width: 767px) {
57 .card {
58 left: calc(50% - 115px);
59 top: calc(50% - 164.5px);
60 }
61}
62
63@media (max-width: 479px) {
64 .card {
65 left: calc(50% - 75px);
66 top: calc(50% - 107px);
67 }
68}
69
70.card:before {
71 content: "";
72 display: block;
73 position: absolute;
74 left: 0;
75 top: 0;
76 width: 100%;
77 height: 100%;
78 box-shadow: 0 0 50px #000;
79 transition: all 0.5s ease-in-out;
80}
81
82.card.is-opened {
83 transform: rotate(0deg) translate(175px, 0);
84}
85
86@media (max-width: 767px) {
87 .card.is-opened {
88 transform: rotate(0deg) translate(115px, 0);
89 }
90}
91
92@media (max-width: 479px) {
93 .card.is-opened {
94 transform: rotate(0deg) translate(75px, 0);
95 }
96}
97
98.card.is-opened .cart-page-front {
99 transform: rotateY(-180deg);
100}
101
102@-webkit-keyframes cardIn {
103 0% {
104 opacity: 0;
105 transform: rotate(-10deg) translate(0, -100%);
106 }
107
108 25% {
109 opacity: 1;
110 }
111
112 100% {
113 opacity: 1;
114 transform: rotate(-10deg) translate(0, 0);
115 }
116}
117
118@keyframes cardIn {
119 0% {
120 opacity: 0;
121 transform: rotate(-10deg) translate(0, -100%);
122 }
123
124 25% {
125 opacity: 1;
126 }
127
128 100% {
129 opacity: 1;
130 transform: rotate(-10deg) translate(0, 0);
131 }
132}
133
134.card,
135.card-page {
136 width: 350px;
137 height: 500px;
138}
139
140@media (max-width: 767px) {
141 .card,
142 .card-page {
143 width: 230px;
144 height: 329px;
145 }
146}
147
148@media (max-width: 479px) {
149 .card,
150 .card-page {
151 width: 150px;
152 height: 214px;
153 }
154}
155
156.card-page {
157 transition: transform 1s ease-in-out;
158 cursor: pointer;
159 position: absolute;
160 outline: 1px solid transparent;
161}
162
163.cart-page-front {
164 transform-origin: 0 50% 0;
165 transform-style: preserve-3d;
166 transform: rotateY(-20deg);
167 z-index: 2;
168}
169
170.cart-page-outside,
171.cart-page-inside {
172 position: absolute;
173 -webkit-backface-visibility: hidden;
174 backface-visibility: hidden;
175}
176
177.cart-page-outside {
178 border: 10px solid #fbfbfb;
179 background: #c72320 url("/christmas/front.png") no-repeat center;
180 background-size: cover;
181 width: 100%;
182 height: 100%;
183}
184
185@media (max-width: 767px) {
186 .cart-page-outside {
187 border: 5px solid #fbfbfb;
188 }
189}
190
191.cart-page-inside {
192 background: #c72320 url("/christmas/out.jpg") no-repeat center;
193 background-size: cover;
194 width: 100%;
195 height: 100%;
196}
197
198.cart-page-bottom {
199 background-color: #d4d1d0;
200 background-image: url("/christmas/pattern.png");
201 border: 20px solid #d4d1d0;
202 display: -webkit-box;
203 display: -moz-box;
204 display: box;
205 display: -moz-flex;
206 display: flex;
207 box-pack: center;
208 -moz-justify-content: center;
209 -ms-justify-content: center;
210 -o-justify-content: center;
211 justify-content: center;
212 -ms-flex-pack: center;
213 box-align: center;
214 -moz-align-items: center;
215 -ms-align-items: center;
216 -o-align-items: center;
217 align-items: center;
218 -ms-flex-align: center;
219 text-align: center;
220}
221
222@media (max-width: 767px) {
223 .cart-page-bottom {
224 border: 10px solid #d4d1d0;
225 }
226}
227
228.cart-page-bottom {
229 z-index: 1;
230 border-left: none !important;
231 background-position: -22px 80px;
232}
233
234@media (max-width: 767px) {
235 .cart-page-bottom {
236 background-position: 85px 30px;
237 }
238}
239
240@media (max-width: 479px) {
241 .cart-page-bottom {
242 background-position: 0px 30px;
243 }
244}
245
246.click-icon {
247 position: absolute;
248 left: 50%;
249 transform: translate(-50%, 0);
250 bottom: 20px;
251 -webkit-animation: iconAnimation 1s infinite alternate ease-in-out;
252 animation: iconAnimation 1s infinite alternate ease-in-out;
253 transition: opacity 0.5s ease-in-out;
254 opacity: 1;
255}
256
257.click-icon svg {
258 width: 96px;
259 height: 96px;
260}
261
262@media (max-width: 767px) {
263 .click-icon svg {
264 width: 72px;
265 height: 72px;
266 }
267}
268
269@media (max-width: 479px) {
270 .click-icon svg {
271 width: 48px;
272 height: 48px;
273 }
274}
275
276.click-icon.is-hidden {
277 opacity: 0;
278}
279
280@-webkit-keyframes iconAnimation {
281 0% {
282 transform: translate(-50%, 0);
283 }
284
285 100% {
286 transform: translate(-50%, 10px);
287 }
288}
289
290@keyframes iconAnimation {
291 0% {
292 transform: translate(-50%, 0);
293 }
294
295 100% {
296 transform: translate(-50%, 10px);
297 }
298}
299
300.card-text {
301 color: #3c3c43;
302 font-size: 36px;
303 line-height: 1.2em;
304 padding-left: 10px;
305}
306
307@media (max-width: 767px) {
308 .card-text {
309 font-size: 24px;
310 }
311}
312
313@media (max-width: 479px) {
314 .card-text {
315 font-size: 20px;
316 }
317}
318</style>
docs/.vitepress/theme/components/GradientCard.vue deleted −103
@@ -1,103 +0,0 @@
1<!--
2 All Rights Reserved
3
4 Copyright (c) 2025 taskylizard
5
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7-->
8<script setup lang="ts">
9import { computed } from 'vue'
10
11const props = withDefaults(
12 defineProps<{
13 variant?: 'default' | 'thin'
14 tag?: string
15 link?: string
16 title: string
17 description: string
18 theme: string
19 }>(),
20 { variant: 'default' }
21)
22
23const theme = computed(() => {
24 return {
25 title: `text-${props.theme}-100`,
26 bgleft: `bg-${props.theme}-800`,
27 bgright: `bg-${props.theme}-700`,
28 tag: `text-${props.theme}-300`,
29 description: `text-${props.theme}-100`
30 }
31})
32
33const classes = computed(() => {
34 if (props.variant === 'thin') {
35 return {
36 container: 'h-40 text-sm',
37 bgleft: 'h-40 w-40 blur-2xl -left-20',
38 bgright: 'h-60 w-60 blur-2xl -top-24',
39 title: 'text-3xl',
40 icon: 'top-12 left-4',
41 description: 'mt-2 text-sm'
42 }
43 } else {
44 return {
45 container: 'h-96',
46 bgleft: 'h-80 w-80 blur-3xl -left-32',
47 bgright: 'h-96 w-96 blur-3xl -top-56',
48 title: 'text-6xl',
49 icon: 'top-36 left-6',
50 description: 'mt-4'
51 }
52 }
53})
54</script>
55
56<template>
57 <div
58 style="box-shadow: 0 10px 40px -12px rgba(16, 24, 40, 0.1)"
59 :class="classes.container"
60 class="rounded-2xl border-2 border-amber overflow-hidden flex flex-col relative text-color dark:bg-zinc-900 bg-zinc-100"
61 >
62 <div class="p-4 sticky top-0 z-10">
63 <div class="flex items-center gap-1.5">
64 <div :class="theme.tag" class="font-medium">
65 {{ props.tag }}
66 </div>
67 </div>
68 </div>
69 <div :class="`${theme.bgleft} ${classes.bgleft} absolute top-1/3 -translate-y-1/2 rounded-full mix-blend`">
70 </div>
71 <div :class="`${theme.bgright} ${classes.bgright} absolute left-1/2 -translate-x-1/2 rounded-full mix-blend`">
72 </div>
73 <div :class="`absolute ${classes.icon}`">
74 <div class="flex items-start">
75 <div
76 :class="classes.title"
77 class="font-normal tracking-tighter text-color-50"
78 >
79 {{ props.title }}
80 </div>
81 <a v-if="props.link" :href="props.link" target="_blank">
82 <svg
83 xmlns="http://www.w3.org/2000/svg"
84 viewBox="0 0 20 20"
85 fill="currentColor"
86 :class="theme.tag"
87 class="w-8 h-8 ml-3"
88 >
89 <path
90 fill-rule="evenodd"
91 d="M5.22 14.78a.75.75 0 001.06 0l7.22-7.22v5.69a.75.75 0 001.5 0v-7.5a.75.75 0 00-.75-.75h-7.5a.75.75 0 000 1.5h5.69l-7.22 7.22a.75.75 0 000 1.06z"
92 clip-rule="evenodd"
93 >
94 </path>
95 </svg>
96 </a>
97 </div>
98 <div :class="`${theme.description} ${classes.description}`">
99 {{ props.description }}
100 </div>
101 </div>
102 </div>
103</template>
docs/.vitepress/theme/components/NewDomainBanner.vue deleted −104
@@ -1,104 +0,0 @@
1<!--
2 All Rights Reserved
3
4 Copyright (c) 2025 taskylizard
5
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7-->
8<script setup lang="ts">
9import { useElementSize } from '@vueuse/core'
10import { ref, watchEffect } from 'vue'
11
12const el = ref<HTMLElement>()
13const { height } = useElementSize(el)
14
15watchEffect(() => {
16 if (height.value) {
17 document.documentElement.style.setProperty(
18 '--vp-layout-top-height',
19 `${height.value + 16}px`
20 )
21 }
22})
23
24const dismiss = () => {
25 localStorage.setItem('ackDomainChange', 'true')
26 document.documentElement.classList.add('banner-dismissed')
27}
28</script>
29
30<template>
31 <div rel="el" class="banner">
32 <div class="text">
33 wotaku.
34 <bold class="font-bold">moe</bold>
35 is now
36 <a class="underline" href="https://wotaku.wiki">wotaku.wiki</a>
37 . Bookmark & share!!
38 </div>
39 <button type="button" @click="dismiss">
40 <svg
41 xmlns="http://www.w3.org/2000/svg"
42 viewBox="0 0 20 20"
43 fill="currentColor"
44 >
45 <path d="M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z" />
46 </svg>
47 </button>
48 </div>
49</template>
50
51<style>
52.banner-dismissed {
53 --vp-layout-top-height: 0px !important;
54}
55
56html {
57 --vp-layout-top-height: 88px;
58}
59
60@media (min-width: 375px) {
61 html {
62 --vp-layout-top-height: 64px;
63 }
64}
65
66@media (min-width: 768px) {
67 html {
68 --vp-layout-top-height: 40px;
69 }
70}
71</style>
72
73<style scoped>
74.banner-dismissed .banner {
75 display: none;
76}
77
78.banner {
79 position: fixed;
80 top: 0;
81 right: 0;
82 left: 0;
83 z-index: var(--vp-z-index-layout-top);
84
85 padding: 8px;
86 text-align: center;
87
88 background: var(--vp-c-bg-soft);
89 color: var(--vp-c-text-1);
90
91 display: flex;
92 justify-content: space-between;
93}
94
95.text {
96 flex: 1;
97}
98
99svg {
100 width: 20px;
101 height: 20px;
102 margin-left: 8px;
103}
104</style>
docs/.vitepress/theme/components/ReloadPrompt.vue deleted −96
@@ -1,96 +0,0 @@
1<!--
2 All Rights Reserved
3
4 Copyright (c) 2025 taskylizard
5
6 All rights reserved. This code and its associated files may not be copied, modified, distributed, sublicensed, or used in any form, in whole or in part, without prior written permission from the copyright holder.
7-->
8<script setup lang="ts">
9import { onBeforeMount, ref } from 'vue'
10
11const needRefresh = ref(false)
12
13let updateServiceWorker: (() => Promise<void>) | undefined
14
15function onNeedRefresh() {
16 needRefresh.value = true
17}
18async function close() {
19 needRefresh.value = false
20}
21
22onBeforeMount(async () => {
23 const { registerSW } = await import('virtual:pwa-register')
24 updateServiceWorker = registerSW({
25 immediate: true,
26 onNeedRefresh
27 })
28})
29</script>
30
31<template>
32 <template v-if="needRefresh">
33 <div
34 class="pwa-toast z-100 bg-$vp-c-bg b b-solid b-1px b-color-$pwa-border rounded-2 fixed bottom-0 right-0 m-6 px-6 py-4 shadow-xl"
35 role="alertdialog"
36 aria-labelledby="pwa-message"
37 >
38 <div id="pwa-message" class="mb-3">
39 New content available, click the reload button to update.
40 </div>
41 <button
42 type="button"
43 class="pwa-refresh mr-2 rounded px-3 py-1"
44 @click="updateServiceWorker?.()"
45 >
46 Reload
47 </button>
48 <button
49 type="button"
50 class="pwa-cancel b b-solid b-1px !b-color-$pwa-border mr-2 rounded px-3 py-1"
51 @click="close"
52 >
53 Close
54 </button>
55 </div>
56 </template>
57</template>
58
59<style scoped>
60/* PWA: Prompt for Update */
61.pwa-toast .pwa-refresh {
62 border-color: var(--vp-button-brand-border);
63 color: var(--vp-button-brand-text);
64 background-color: var(--vp-button-brand-bg);
65}
66
67.pwa-toast .pwa-refresh:hover {
68 border-color: var(--vp-button-brand-hover-border);
69 color: var(--vp-button-brand-hover-text);
70 background-color: var(--vp-button-brand-hover-bg);
71}
72
73.pwa-toast .pwa-refresh:active {
74 border-color: var(--vp-button-brand-active-border);
75 color: var(--vp-button-brand-active-text);
76 background-color: var(--vp-button-brand-active-bg);
77}
78
79.pwa-toast .pwa-cancel {
80 border-color: var(--vp-button-alt-border);
81 color: var(--vp-button-alt-text);
82 background-color: var(--vp-button-alt-bg);
83}
84
85.pwa-toast .pwa-cancel:hover {
86 border-color: var(--vp-button-alt-hover-border);
87 color: var(--vp-button-alt-hover-text);
88 background-color: var(--vp-button-alt-hover-bg);
89}
90
91.pwa-toast .pwa-cancel:active {
92 border-color: var(--vp-button-alt-active-border);
93 color: var(--vp-button-alt-active-text);
94 background-color: var(--vp-button-alt-active-bg);
95}
96</style>