summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/components/Hero.astro
diff options
context:
space:
mode:
Diffstat (limited to 'packages/web/src/components/Hero.astro')
-rw-r--r--packages/web/src/components/Hero.astro11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/web/src/components/Hero.astro b/packages/web/src/components/Hero.astro
new file mode 100644
index 000000000..f80f85266
--- /dev/null
+++ b/packages/web/src/components/Hero.astro
@@ -0,0 +1,11 @@
+---
+import Default from '@astrojs/starlight/components/Hero.astro';
+import Lander from './Lander.astro';
+
+const { slug } = Astro.locals.starlightRoute.entry;
+---
+
+{ slug === ""
+ ? <Lander {...Astro.props} />
+ : <Default {...Astro.props}><slot /></Default>
+}