diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-22 15:08:37 +0300 |
| commit | fcc2f4704e39b0e69b377cc138f75027721dac22 (patch) | |
| tree | 732fc94b354a26c08fba9cc9059f9c6c900182be /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..f220487 --- /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-section dark:bg-dark': isDark }]}> + <slot /> +</div> |
