alpha version
This commit is contained in:
32
src/components/Layout.astro
Normal file
32
src/components/Layout.astro
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
// Layout.astro
|
||||
import '../styles/styles.css';
|
||||
import Header from './Header.astro';
|
||||
import Sidebar from './Sidebar.astro';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{title} - My Website</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<Header />
|
||||
<Sidebar />
|
||||
<main>
|
||||
<section class="main-content">
|
||||
<slot />
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user