From f2286dac3d1a138c2b1ad10c4d88d4cb575b6e78 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Sat, 9 Nov 2024 23:49:04 +0200 Subject: Initial commit --- src/components/Card.astro | 61 +++++++++++++++++++++++ src/env.d.ts | 1 + src/layouts/Layout.astro | 50 +++++++++++++++++++ src/pages/index.astro | 123 ++++++++++++++++++++++++++++++++++++++++++++++ src/pages/test.md | 30 +++++++++++ 5 files changed, 265 insertions(+) create mode 100644 src/components/Card.astro create mode 100644 src/env.d.ts create mode 100644 src/layouts/Layout.astro create mode 100644 src/pages/index.astro create mode 100644 src/pages/test.md (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/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..9bc5cb4 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// \ No newline at end of file diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..1810971 --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,50 @@ +--- +interface Props { + title: string; +} + +const { title } = Astro.props; +--- + + + + + + + + + + {title} + + + + + + diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..0c1233f --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,123 @@ +--- +import Layout from '../layouts/Layout.astro'; +import Card from '../components/Card.astro'; +--- + + +
+ +

Welcome to Kyren's Site

+

+ To get started, open the directory src/pages in your project.
+ Code Challenge: Tweak HMMM "Welcome to Astro" message above. +

+ +
+
+ + diff --git a/src/pages/test.md b/src/pages/test.md new file mode 100644 index 0000000..1f0c54c --- /dev/null +++ b/src/pages/test.md @@ -0,0 +1,30 @@ +# My Title + +Testing some content with multiline thing +let's see what happens if this wraps +This should be super close + +This should be far + +- Some bullets +- Adka kda kd ak +- d kakd akd ka k + +- [ ] Check me +- [x] Already checked + +## Smaller header + +How about code blocks + +```go +package main + +import "fmt" + +func main() { + fmt.Println("Hello, World!") +} +``` + +Hmm -- cgit v1.3.1