summaryrefslogtreecommitdiff
path: root/examples/basics/src/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'examples/basics/src/layouts')
-rw-r--r--examples/basics/src/layouts/Layout.astro44
1 files changed, 8 insertions, 36 deletions
diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro
index 181097125..e455c6106 100644
--- a/examples/basics/src/layouts/Layout.astro
+++ b/examples/basics/src/layouts/Layout.astro
@@ -1,50 +1,22 @@
----
-interface Props {
- title: string;
-}
-
-const { title } = Astro.props;
----
-
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
- <meta name="description" content="Astro description" />
<meta name="viewport" content="width=device-width" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="generator" content={Astro.generator} />
- <title>{title}</title>
+ <title>Astro Basics</title>
</head>
<body>
<slot />
</body>
</html>
-<style is:global>
- :root {
- --accent: 136, 58, 234;
- --accent-light: 224, 204, 250;
- --accent-dark: 49, 10, 101;
- --accent-gradient: linear-gradient(
- 45deg,
- rgb(var(--accent)),
- rgb(var(--accent-light)) 30%,
- white 60%
- );
- }
- html {
- font-family: system-ui, sans-serif;
- background: #13151a;
- }
- code {
- font-family:
- Menlo,
- Monaco,
- Lucida Console,
- Liberation Mono,
- DejaVu Sans Mono,
- Bitstream Vera Sans Mono,
- Courier New,
- monospace;
+
+<style>
+ html,
+ body {
+ margin: 0;
+ width: 100%;
+ height: 100%;
}
</style>