mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-11 17:29:44 +00:00

* feat: move all pages to app folder, add splashscreen * feat: use Dance as splashscreen * feat: add zoom in for splashscreen logo * refactor: move svelte files into app folder * fix: url prefix with /app * refactor: remove platform-specific tauri conf Merge windows back to main tauri config. The reason I separated them was because I need decoration: true on mac and false on windows and linux. Now I use tauri rust API to set decorations to false for win and linux.
33 lines
686 B
Svelte
33 lines
686 B
Svelte
<script lang="ts">
|
|
import { Layouts } from "@kksh/ui"
|
|
import { getCurrentWindow } from "@tauri-apps/api/window"
|
|
import { onMount } from "svelte"
|
|
|
|
onMount(async () => {
|
|
const mainWin = await getCurrentWindow()
|
|
mainWin.show()
|
|
})
|
|
</script>
|
|
|
|
<Layouts.Center class="h-screen w-screen">
|
|
<div class="animate-zoom-in flex flex-col items-center justify-center gap-2 pb-20">
|
|
<img src="/favicon.png" alt="Logo" />
|
|
<h2 class="font-mono text-2xl font-extrabold">Kunkun</h2>
|
|
</div>
|
|
</Layouts.Center>
|
|
|
|
<style scoped>
|
|
.animate-zoom-in {
|
|
animation: zoom-in 0.2s ease-in-out;
|
|
}
|
|
|
|
@keyframes zoom-in {
|
|
from {
|
|
transform: scale(0);
|
|
}
|
|
to {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
</style>
|