mirror of
https://github.com/liyunze-coding/coworking-website.git
synced 2026-11-06 13:13:34 +00:00
94 lines
2.2 KiB
Text
94 lines
2.2 KiB
Text
---
|
|
import NavBar from "../components/navBar.astro";
|
|
import { ViewTransitions } from "astro:transitions";
|
|
|
|
export interface Props {
|
|
title: string;
|
|
description: string;
|
|
}
|
|
|
|
const { title, description } = Astro.props;
|
|
---
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="description" content={description} />
|
|
<meta name="keywords" content="coworking, study, streams" />
|
|
<meta name="author" content="RyanPython" />
|
|
<meta name="theme-color" content="#2B2D31" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<link
|
|
href="https://fonts.googleapis.com/css2?family=Fredoka:wght@300;500;700&display=swap"
|
|
rel="stylesheet"
|
|
/>
|
|
<script defer src="/_vercel/insights/script.js"></script>
|
|
<meta name="generator" content={Astro.generator} />
|
|
<title>{title}</title>
|
|
</head>
|
|
<body>
|
|
<NavBar />
|
|
<slot />
|
|
<ViewTransitions />
|
|
</body>
|
|
</html>
|
|
|
|
<style is:global>
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
font-family: "Montserrat", system-ui, sans-serif;
|
|
background-color: #29233f;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
min-height: 100%;
|
|
}
|
|
|
|
body {
|
|
height: 100vh;
|
|
font-family: "Montserrat", system-ui, sans-serif;
|
|
}
|
|
|
|
code {
|
|
font-family: Menlo, Monaco, Lucida Console, Liberation Mono,
|
|
DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
|
|
}
|
|
|
|
nav {
|
|
font-family: "Montserrat", system-ui, sans-serif;
|
|
font-weight: 500;
|
|
}
|
|
|
|
nav ul a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
a.preview {
|
|
text-decoration: none;
|
|
}
|
|
|
|
p code {
|
|
word-break: break-all; /* This will allow the URL to break at any character */
|
|
display: block; /* Ensures the entire URL is on its own line */
|
|
width: 100%; /* Make sure the code element takes up the full width of its container */
|
|
overflow-x: auto;
|
|
}
|
|
</style>
|