Skip to content

Commit 37409d6

Browse files
committed
Home page animation
1 parent bb87450 commit 37409d6

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
lines changed

src-tauri/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ fn main() -> ExitCode {
2929
tauri::Builder::default()
3030
.setup(|app| {
3131
handle_gui_cli(app);
32-
let window = app.get_window("main").unwrap();
33-
window.open_devtools();
32+
// NOTE: remove for production
33+
//let window = app.get_window("main").unwrap();
34+
//window.open_devtools();
3435
Ok(())
3536
})
3637
.manage::<StateContent>(Mutex::new(vec![]))

src/routes/+page.svelte

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,50 @@
11
<script lang="ts">
2-
import { goto } from '$app/navigation';
2+
import { goto } from "$app/navigation";
33
async function handleClick() {
4-
goto("/login")
4+
goto("/login");
55
}
66
</script>
77

88
<div class="container mx-auto">
9-
<div class="space-y-10 flex flex-col items-center mt-44">
10-
<h2 class="h2 text-center">Welcome to the Shamir Wallet</h2>
11-
<button class="btn font-bold variant-filled-primary" on:click={handleClick}>
9+
<div class="space-y-10 flex flex-col items-center mt-24">
10+
<section class="img-bg" />
11+
<h2 class="h2 text-center">Welcome to the Shamir Wallet</h2>
12+
<button
13+
class="btn font-bold variant-filled-primary"
14+
on:click={handleClick}
15+
>
1216
Continue
1317
</button>
14-
</div>
18+
</div>
1519
</div>
1620

21+
<style lang="postcss">
22+
.img-bg {
23+
@apply w-96 h-96;
24+
}
25+
.img-bg {
26+
@apply absolute z-[-1] rounded-full blur-[50px] transition-all;
27+
animation:
28+
pulse 5s cubic-bezier(0, 0, 0, 0.5) infinite,
29+
glow 5s linear infinite;
30+
}
31+
@keyframes glow {
32+
0% {
33+
@apply bg-primary-400/50;
34+
}
35+
33% {
36+
@apply bg-secondary-400/50;
37+
}
38+
66% {
39+
@apply bg-tertiary-400/50;
40+
}
41+
100% {
42+
@apply bg-primary-400/50;
43+
}
44+
}
45+
@keyframes pulse {
46+
50% {
47+
transform: scale(1.5);
48+
}
49+
}
50+
</style>

0 commit comments

Comments
 (0)