initial commit
This commit is contained in:
commit
61511ed28c
28 changed files with 5210 additions and 0 deletions
51
src/layouts/Layout.astro
Normal file
51
src/layouts/Layout.astro
Normal file
|
@ -0,0 +1,51 @@
|
|||
---
|
||||
import '../styles/global.css';
|
||||
import Search from '../components/Search.astro';
|
||||
import ThemeSwitcher from '../components/ThemeSwitcher.astro';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
path?: string;
|
||||
}
|
||||
|
||||
const { title, path = "~/grassblock/micr0blog" } = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<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>
|
||||
</head>
|
||||
<body>
|
||||
<ThemeSwitcher />
|
||||
<main>
|
||||
<div class="container">
|
||||
<div class="terminal-path">
|
||||
{path}
|
||||
</div>
|
||||
|
||||
<nav class="nav">
|
||||
<a href="/">Home</a>
|
||||
<a href="/blog">Blog</a>
|
||||
<a href="/lab">Lab</a>
|
||||
</nav>
|
||||
|
||||
<Search />
|
||||
|
||||
<div class="content-box">
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
Powered by <a href="#">Bear ƒ••?</a>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue