summaryrefslogtreecommitdiffhomepage
path: root/www/src/components/Hero.astro
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-05-21 14:24:53 -0400
committerJay V <[email protected]>2025-05-21 14:24:53 -0400
commit6cfcf51752ec8d40104cead0b2602885c77a9c79 (patch)
treef34e8adf2b613c6d55e2b833212b04635b138156 /www/src/components/Hero.astro
parent5f5f9dad877300bab3fe5442ea141551ba89421b (diff)
downloadopencode-6cfcf51752ec8d40104cead0b2602885c77a9c79.tar.gz
opencode-6cfcf51752ec8d40104cead0b2602885c77a9c79.zip
adding docs site
Diffstat (limited to 'www/src/components/Hero.astro')
-rw-r--r--www/src/components/Hero.astro11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/src/components/Hero.astro b/www/src/components/Hero.astro
new file mode 100644
index 000000000..f80f85266
--- /dev/null
+++ b/www/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>
+}