This commit is contained in:
@ -4,7 +4,7 @@ import NavigationBar from "../components/NavigationBar";
|
|||||||
import ScrollUpButton from "../components/ScrollUpButton";
|
import ScrollUpButton from "../components/ScrollUpButton";
|
||||||
import { siteConfig } from "../config/data";
|
import { siteConfig } from "../config/data";
|
||||||
const currentPath = Astro.url.pathname;
|
const currentPath = Astro.url.pathname;
|
||||||
import '../styles/global.css';
|
import "../styles/global.css";
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
title?: string;
|
title?: string;
|
||||||
@ -13,7 +13,9 @@ export interface Props {
|
|||||||
|
|
||||||
const { title, description } = Astro.props;
|
const { title, description } = Astro.props;
|
||||||
|
|
||||||
const pageTitle = title ? `${title} | ${siteConfig.meta.title}` : siteConfig.meta.title;
|
const pageTitle = title
|
||||||
|
? `${title} | ${siteConfig.meta.title}`
|
||||||
|
: siteConfig.meta.title;
|
||||||
const pageDescription = description || siteConfig.meta.description;
|
const pageDescription = description || siteConfig.meta.description;
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -30,10 +32,12 @@ const pageDescription = description || siteConfig.meta.description;
|
|||||||
<ClientRouter />
|
<ClientRouter />
|
||||||
</head>
|
</head>
|
||||||
<body class="flex flex-col min-h-screen overflow-x-hidden">
|
<body class="flex flex-col min-h-screen overflow-x-hidden">
|
||||||
<main class="flex-grow flex flex-col gap-4 items-center justify-center">
|
<main
|
||||||
|
class="flex-grow flex flex-col gap-4 items-center justify-center pb-[68px] sm:pb-[76px]"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
<NavigationBar client:load currentPath={currentPath} />
|
<NavigationBar client:load currentPath={currentPath} />
|
||||||
<ScrollUpButton client:load />
|
<ScrollUpButton client:load />
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Reference in New Issue
Block a user