move styles to css file

This commit is contained in:
Satria 2026-03-20 06:51:00 +07:00
commit 84cc45028b
2 changed files with 20 additions and 30 deletions

View file

@ -1,6 +1,17 @@
@import "tailwindcss"; @import "tailwindcss";
@import "@catppuccin/tailwindcss/mocha.css"; @import "@catppuccin/tailwindcss/mocha.css";
@property --rainbow-hue-top {
syntax: '<number>';
initial-value: 199;
inherits: true;
}
@property --rainbow-hue-bottom {
syntax: '<number>';
initial-value: 559;
inherits: true;
}
@font-face { @font-face {
font-family: Stray; font-family: Stray;
font-display: swap; font-display: swap;
@ -18,6 +29,14 @@
0% { transform: translateX(100%); } 0% { transform: translateX(100%); }
100% { transform: translateX(0%); } 100% { transform: translateX(0%); }
} }
@keyframes rainbow {
0% { --rainbow-hue-top: 199; --rainbow-hue-bottom: 559; }
100% { --rainbow-hue-top: 559; --rainbow-hue-bottom: 199; }
}
@keyframes breathing {
0%, 100% { opacity: 0.15; }
50% { opacity: 0.3; }
}
} }
@layer base { @layer base {

View file

@ -64,36 +64,7 @@
duration: 1500, easing: cubicOut duration: 1500, easing: cubicOut
}}></div> }}></div>
<svelte:head>
<style>
@property --rainbow-hue-top {
syntax: '<number>';
initial-value: 199;
inherits: true;
}
@property --rainbow-hue-bottom {
syntax: '<number>';
initial-value: 559;
inherits: true;
}
@keyframes rainbow {
0% { --rainbow-hue-top: 199; --rainbow-hue-bottom: 559; }
100% { --rainbow-hue-top: 559; --rainbow-hue-bottom: 199; }
}
@keyframes breathing {
0%, 100% { opacity: 0.15; }
50% { opacity: 0.3; }
}
@keyframes marquee {
0% { transform: translateX(0%); }
100% { transform: translateX(-100%); }
}
@keyframes marquee2 {
0% { transform: translateX(100%); }
100% { transform: translateX(0%); }
}
</style>
</svelte:head>
<div class="fixed top-0 left-0 w-full h-full overflow-hidden flex justify-center items-center select-none" transition:blur={{ <div class="fixed top-0 left-0 w-full h-full overflow-hidden flex justify-center items-center select-none" transition:blur={{
duration: 1000, easing: cubicOut, duration: 1000, easing: cubicOut,