mirror of
https://github.com/KazooTTT/kazoottt-blog.git
synced 2025-06-23 18:51:31 +08:00
Built resume template
This commit is contained in:
35
src/layouts/BaseLayout.astro
Normal file
35
src/layouts/BaseLayout.astro
Normal file
@ -0,0 +1,35 @@
|
||||
---
|
||||
import type { SiteMeta } from '@/types'
|
||||
|
||||
import BaseHead from '@/components/BaseHead.astro'
|
||||
import Footer from '@/components/layout/Footer.astro'
|
||||
import Header from '@/components/layout/Header.astro'
|
||||
import ThemeProvider from '@/components/ThemeProvider.astro'
|
||||
|
||||
import { siteConfig } from '@/site-config'
|
||||
|
||||
interface Props {
|
||||
meta: SiteMeta
|
||||
}
|
||||
|
||||
const {
|
||||
meta: { articleDate, description = siteConfig.description, ogImage, title }
|
||||
} = Astro.props
|
||||
---
|
||||
|
||||
<html lang={siteConfig.lang} class=''>
|
||||
<head>
|
||||
<BaseHead articleDate={articleDate} description={description} ogImage={ogImage} title={title} />
|
||||
</head>
|
||||
|
||||
<body class='flex justify-center bg-background'>
|
||||
<ThemeProvider />
|
||||
<main
|
||||
class='flex min-h-screen w-screen max-w-[60rem] flex-col items-center px-6 pb-10 pt-7 font-satoshi text-[0.92rem] leading-relaxed sm:px-10 lg:px-10'
|
||||
>
|
||||
<Header />
|
||||
<slot />
|
||||
<Footer />
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user