diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-21 21:56:55 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-21 21:56:55 +0300 |
| commit | c735556726e75428550a3d28a2cf58e2c8490b7d (patch) | |
| tree | fd0ae29d1636b825abeedff6b99d3376bb383135 /src/components/ui/Background.astro | |
Initial template
Diffstat (limited to 'src/components/ui/Background.astro')
| -rw-r--r-- | src/components/ui/Background.astro | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/components/ui/Background.astro b/src/components/ui/Background.astro new file mode 100644 index 0000000..1093c17 --- /dev/null +++ b/src/components/ui/Background.astro @@ -0,0 +1,11 @@ +--- +export interface Props { + isDark?: boolean; +} + +const { isDark = false } = Astro.props; +--- + +<div class:list={['absolute inset-0', { 'bg-dark dark:bg-transparent': isDark }]}> + <slot /> +</div> |
