feat: track images with git lfs
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
---
|
||||
import LanguagePicker from "../components/LanguagePicker.astro";
|
||||
import { AstroFont } from "astro-font";
|
||||
import Nav from "../components/Nav.astro";
|
||||
interface Props {
|
||||
title: string;
|
||||
width?: "full" | "compact";
|
||||
}
|
||||
|
||||
const { title } = Astro.props;
|
||||
const { title, width = "compact" } = Astro.props;
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
@@ -15,6 +17,38 @@ const { title } = Astro.props;
|
||||
<meta name="description" content="Astro description" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
||||
<AstroFont
|
||||
config={[
|
||||
{
|
||||
name: "Nunito Sans",
|
||||
src: [
|
||||
{
|
||||
style: "light",
|
||||
weight: "300",
|
||||
path: "/fonts/nunito-v26-latin-300.woff2",
|
||||
},
|
||||
],
|
||||
preload: true,
|
||||
display: "swap",
|
||||
selector: "body",
|
||||
fallback: "sans-serif",
|
||||
},
|
||||
{
|
||||
name: "Roboto",
|
||||
src: [
|
||||
{
|
||||
weight: "300",
|
||||
style: "normal",
|
||||
path: "/fonts/roboto-v30-latin-300.woff2",
|
||||
},
|
||||
],
|
||||
preload: true,
|
||||
display: "swap",
|
||||
selector: "body > span",
|
||||
fallback: "serif",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<link rel="stylesheet" href="/app.css" />
|
||||
<meta name="generator" content={Astro.generator} />
|
||||
<!-- <meta http-equiv="refresh" content="0;url=/" /> -->
|
||||
@@ -33,9 +67,20 @@ const { title } = Astro.props;
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<Nav />
|
||||
<slot />
|
||||
<body class=`layout-${width}`>
|
||||
<header>
|
||||
<Nav />
|
||||
</header>
|
||||
<main>
|
||||
<slot />
|
||||
</main>
|
||||
<LanguagePicker />
|
||||
<style>
|
||||
.layout-compact {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
padding: 0px 20px;
|
||||
}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user