From f2ff1aeb03400c77396c729d887bb284da963378 Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 19 Sep 2023 15:21:51 -0700 Subject: Initial Commit --- src/components/Card.astro | 61 ++++++++++++++++++ src/components/Header.astro | 72 +++++++++++++++++++++ src/env.d.ts | 1 + src/layouts/Layout.astro | 53 ++++++++++++++++ src/pages/index.astro | 149 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 336 insertions(+) create mode 100644 src/components/Card.astro create mode 100644 src/components/Header.astro create mode 100644 src/env.d.ts create mode 100644 src/layouts/Layout.astro create mode 100644 src/pages/index.astro (limited to 'src') diff --git a/src/components/Card.astro b/src/components/Card.astro new file mode 100644 index 0000000..bd6d597 --- /dev/null +++ b/src/components/Card.astro @@ -0,0 +1,61 @@ +--- +interface Props { + title: string; + body: string; + href: string; +} + +const { href, title, body } = Astro.props; +--- + + + diff --git a/src/components/Header.astro b/src/components/Header.astro new file mode 100644 index 0000000..3e3f97e --- /dev/null +++ b/src/components/Header.astro @@ -0,0 +1,72 @@ +--- + +--- +
+ +
+ + diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..f964fe0 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..b800e50 --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,53 @@ +--- +interface Props { + title: string; +} + +const { title } = Astro.props; +import Header from '../components/Header.astro'; +--- + + + + + + + + + + {title} + +
+ + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..e60ca5f --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,149 @@ +--- +import Layout from "../layouts/Layout.astro"; +import Card from "../components/Card.astro"; +--- + + +
+ +

+ Welcome👋 +

+ +
+ +
+ -- cgit v1.2.3