diff options
Diffstat (limited to 'src/layouts/CenteredLayout.astro')
| -rw-r--r-- | src/layouts/CenteredLayout.astro | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/layouts/CenteredLayout.astro b/src/layouts/CenteredLayout.astro new file mode 100644 index 0000000..5505b65 --- /dev/null +++ b/src/layouts/CenteredLayout.astro @@ -0,0 +1,26 @@ +--- +import '../styles/global.css'; + +interface Props { + title?: string; +} + +const { title = "Astro Site" } = Astro.props; +--- + +<html lang="en"> + <head> + <meta charset="utf-8" /> + <link rel="icon" type="image/svg+xml" href="/favicon.svg" /> + <meta name="viewport" content="width=device-width" /> + <meta name="generator" content={Astro.generator} /> + <title>{title}</title> + </head> + <body class="min-h-screen bg-white"> + <main class="flex min-h-screen flex-col items-center justify-center p-4"> + <div class="w-full max-w-4xl"> + <slot /> + </div> + </main> + </body> +</html> |
