before push commit

This commit is contained in:
Laker Turner 2025-03-24 18:13:50 +00:00
parent bd920f1731
commit 5217bba8f9
No known key found for this signature in database
15 changed files with 125 additions and 59 deletions

View file

@ -0,0 +1,24 @@
---
import { clsx } from "clsx";
interface Props {
level: number;
icon?: string;
}
// level 0: info/note
// level 1: warning
// level 2: attn needed: oh fuck
const { level } = Astro.props;
---
<div
class={clsx("sm:block md:hidden text-black", {
"bg-light-ye dark:bg-dark-ye": level === 0,
"bg-light-or dark:bg-dark-or": level === 1,
"bg-light-re dark:bg-dark-re": level === 2,
})}
>
<slot />
</div>