mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 05:29:17 +00:00
feat: add zoom in for splashscreen logo
This commit is contained in:
parent
00f197fb00
commit
8ee1a13c6d
@ -1,8 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Dance from "@/components/dance/dance.svelte"
|
import { Layouts } from "@kksh/ui"
|
||||||
import { cn } from "@/utils"
|
|
||||||
import { Command, Skeleton } from "@kksh/svelte5"
|
|
||||||
import { CustomCommandInput } from "@kksh/ui/main"
|
|
||||||
import { getCurrentWindow } from "@tauri-apps/api/window"
|
import { getCurrentWindow } from "@tauri-apps/api/window"
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
|
|
||||||
@ -12,6 +9,24 @@
|
|||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main class="h-screen" data-tauri-drag-region>
|
<Layouts.Center class="h-screen w-screen">
|
||||||
<Dance class="h-full w-full" />
|
<div class="animate-zoom-in flex flex-col items-center justify-center gap-2 pb-20">
|
||||||
</main>
|
<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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user