diff options
author | 2025-06-05 14:25:23 +0000 | |
---|---|---|
committer | 2025-06-05 14:25:23 +0000 | |
commit | e586d7d704d475afe3373a1de6ae20d504f79d6d (patch) | |
tree | 7e3fa24807cebd48a86bd40f866d792181191ee9 /examples/hackernews/src/layouts/Layout.astro | |
download | astro-latest.tar.gz astro-latest.tar.zst astro-latest.zip |
Sync from a8e1c0a7402940e0fc5beef669522b315052df1blatest
Diffstat (limited to 'examples/hackernews/src/layouts/Layout.astro')
-rw-r--r-- | examples/hackernews/src/layouts/Layout.astro | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/hackernews/src/layouts/Layout.astro b/examples/hackernews/src/layouts/Layout.astro new file mode 100644 index 000000000..47bc1ab1a --- /dev/null +++ b/examples/hackernews/src/layouts/Layout.astro @@ -0,0 +1,36 @@ +--- +import Nav from '../components/Nav.astro'; +--- + +<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, initial-scale=1" /> + <meta name="generator" content={Astro.generator} /> + <title>Astro - Hacker News</title> + <meta name="description" content="Hacker News Clone built with Astro" /> + </head> + <body> + <Nav /> + <slot /> + <style is:global> + body { + font-family: + -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, + 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; + font-size: 15px; + background-color: rgb(226 232 240); + margin: 0; + padding-top: 55px; + color: rgb(15 23 42); + overflow-y: scroll; + } + + a { + color: rgb(15 23 42); + text-decoration: none; + } + </style> + </body> +</html> |