feat: animated background
TS Lint / Oxlint (push) Successful in 54s
TS Lint / TypeScript (push) Successful in 1m3s
TS Lint / ESLint (push) Successful in 1m4s
Docker Build / build (push) Successful in 9m19s

This commit is contained in:
2026-07-15 15:00:15 +02:00
parent 3a40b06354
commit 0f5f3b2fc5
2 changed files with 26 additions and 1 deletions
+25
View File
@@ -10,3 +10,28 @@ body {
font-style: normal; font-style: normal;
font-variation-settings: "wdth" 100; font-variation-settings: "wdth" 100;
} }
.bg-hero {
--size: 5vh;
--angle: 45deg;
background: repeating-linear-gradient(
var(--angle),
var(--color-base-200) calc(0 * var(--size)),
var(--color-base-200) calc(1 * var(--size)),
var(--color-secondary) calc(1 * var(--size)),
var(--color-secondary) calc(2 * var(--size)),
var(--color-base-200) calc(2 * var(--size)),
var(--color-base-200) calc(3 * var(--size)),
var(--color-accent) calc(3 * var(--size)),
var(--color-accent) calc(4 * var(--size))
);
background-size: calc(4 * var(--size) / sin(var(--angle)))
calc(4 * var(--size) / sin(var(--angle)));
animation: BackgroundAnimate 10s linear infinite reverse;
}
@keyframes BackgroundAnimate {
0% {
background-position: calc(4 * var(--size) / sin(var(--angle))) 0;
}
}
+1 -1
View File
@@ -22,7 +22,7 @@ onMounted(() => {
:style="{ display: visible ? 'flex' : 'none' }" :style="{ display: visible ? 'flex' : 'none' }"
class="min-h-screen flex-col w-screen" class="min-h-screen flex-col w-screen"
> >
<div class="hero bg-base-200 grow"> <div class="hero bg-hero grow">
<div class="hero-content text-center p-0"> <div class="hero-content text-center p-0">
<div <div
class="max-w-md min-w-96 bg-base-100 rounded-box shadow-md" class="max-w-md min-w-96 bg-base-100 rounded-box shadow-md"