summaryrefslogtreecommitdiff
path: root/src/components/ui/Background.astro
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/ui/Background.astro')
-rw-r--r--src/components/ui/Background.astro11
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>