Compare commits

...

2 Commits

Author SHA1 Message Date
f0bcaf45d0 Merge pull request 'Animation Fehler' (#6) from dev into main
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11s
Reviewed-on: #6
2026-04-01 08:47:15 +00:00
e46cd9a6b1 Animation Fehler
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 11s
2026-04-01 10:46:38 +02:00
2 changed files with 16 additions and 2 deletions

View File

@@ -18,9 +18,19 @@ const { title = "404" } = Astro.props;
<h1
class="bg-red-500 text-white text-4xl font-bold py-2 px-4 font-mono flex items-center justify-center gap-3"
>
<Icon name="tabler:alert-triangle" class="size-9" />
<span class="relative grid h-9 w-9">
<Icon
name="tabler:triangle-filled"
class="col-start-1 row-start-1 size-9 animate-ping opacity-75 translate-x-[-0.25px] translate-y-[-1.5px] blur-[1px]"
/>
<Icon
name="tabler:alert-triangle"
class="col-start-1 row-start-1 size-9 relative"
/>
</span>
Fehler {title}
</h1>
<p class="mb-4 text-red-500 py-2 px-4 text-lg">
<slot />
<a
@@ -38,4 +48,8 @@ const { title = "404" } = Astro.props;
.error-component :global(br) {
@apply mb-3;
}
.error-component .animate-ping {
animation-duration: 2s;
}
</style>