diff --git a/src/components/NotFound.astro b/src/components/NotFound.astro deleted file mode 100644 index a8c8289..0000000 --- a/src/components/NotFound.astro +++ /dev/null @@ -1,6 +0,0 @@ -

- - 404 -

diff --git a/src/components/Text.astro b/src/components/Text.astro index e371c7c..5887d08 100644 --- a/src/components/Text.astro +++ b/src/components/Text.astro @@ -1,6 +1,12 @@ +--- +export interface Props { + text: string; +} + +const { text } = Astro.props; +--- +

- - z0x + + {text}

diff --git a/src/pages/404.astro b/src/pages/404.astro index 8860157..97465f1 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -1,12 +1,10 @@ --- import Logo from "@/components/Logo.astro"; -import NotFound from "@/components/NotFound.astro"; -import ThemeToggle from "@/components/ThemeToggle.astro"; +import Text from "@/components/Text.astro"; import Layout from "@/layouts/Layout.astro"; --- - - + diff --git a/src/pages/index.astro b/src/pages/index.astro index 7ae951c..ab56a10 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -2,13 +2,11 @@ import Links from "@/components/Links.astro"; import Logo from "@/components/Logo.astro"; import Text from "@/components/Text.astro"; -import ThemeToggle from "@/components/ThemeToggle.astro"; import Layout from "@/layouts/Layout.astro"; --- - - +