diff --git a/src/layouts/BaseLayout.astro b/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..b323107 --- /dev/null +++ b/src/layouts/BaseLayout.astro @@ -0,0 +1,45 @@ +--- +import '@/styles/globals.css'; +import { ModeToggle } from '@/components/ModeToggle'; + +const { title } = Astro.props; +--- + + + + + + + + + + + + {title} + + +
+ +
+
+ +
+ + diff --git a/src/pages/index.astro b/src/pages/index.astro index b12bc92..45898cd 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,43 +1,7 @@ --- -import '@/styles/globals.css'; -import { ModeToggle } from '@/components/ModeToggle'; +import BaseLayout from '@/layouts/BaseLayout.astro'; --- - - - - - - - - - - - Astro Deploy - - -
-
Hello World
-
- -
-
- - + +
Hello World
+