diff --git a/src/components/Card.astro b/src/components/Card.astro
index 4924058..8336750 100644
--- a/src/components/Card.astro
+++ b/src/components/Card.astro
@@ -1,24 +1,39 @@
---
interface Props {
title: string;
- body: string;
- href: string;
+ body?: string;
+ href?: string;
}
const { href, title, body } = Astro.props;
---
-
-
- {title}
- →
-
-
- {body}
-
-
+ {
+ href && (
+
+
+ {title}
+ →
+
+
+ {body && {body}
}
+
+
+ )
+ }
+ {
+ !href && (
+
+
{title}
+ {body &&
{body}
}
+ {body &&
{body}
}
+
+
+ )
+ }
+
diff --git a/src/components/SignUp.astro b/src/components/SignUp.astro
new file mode 100644
index 0000000..9c0fbd9
--- /dev/null
+++ b/src/components/SignUp.astro
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+
diff --git a/src/pages/index.astro b/src/pages/index.astro
index a720d10..26492ee 100644
--- a/src/pages/index.astro
+++ b/src/pages/index.astro
@@ -1,6 +1,7 @@
---
import Layout from "../layouts/Layout.astro";
import Card from "../components/Card.astro";
+import SignUp from "../components/SignUp.astro";
---
@@ -37,54 +38,43 @@ import Card from "../components/Card.astro";
Make a playlist of podcast episodes for your friend. (Coming later π)
+
-
-
-
-
@@ -151,7 +141,6 @@ import Card from "../components/Card.astro";
padding: 0;
}
iframe {
- margin-top: 2em;
width: 100%;
height: auto;
aspect-ratio: 16 / 9;