Huakun Shen caa252b4dd
feature: splashscreen (#36)
* 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.
2024-12-21 04:04:05 -05:00

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>