added default layout
This commit is contained in:
parent
5ec9a1dcc8
commit
7f0ca203df
1 changed files with 45 additions and 0 deletions
45
src/layouts/Layout.astro
Normal file
45
src/layouts/Layout.astro
Normal file
|
|
@ -0,0 +1,45 @@
|
||||||
|
---
|
||||||
|
const { title } = Astro.props
|
||||||
|
|
||||||
|
const websiteName = ''
|
||||||
|
const websiteDescription = ''
|
||||||
|
---
|
||||||
|
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta name="name" content={websiteName} />
|
||||||
|
<meta name="description" content={websiteDescription} />
|
||||||
|
<title>{title}</title>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body id="body">
|
||||||
|
<slot />
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
<style lang="sass">
|
||||||
|
@use '/src/assets/css/variables.sass' as vars
|
||||||
|
|
||||||
|
@font-face
|
||||||
|
font-family: 'Inter'
|
||||||
|
font-style: normal
|
||||||
|
font-display: swap
|
||||||
|
font-weight: 100 900
|
||||||
|
src: url(@fontsource-variable/inter/files/inter-latin-wght-normal.woff2) format('woff2-variations')
|
||||||
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
|
||||||
|
|
||||||
|
@font-face
|
||||||
|
font-family: 'Montserrat'
|
||||||
|
font-style: normal
|
||||||
|
font-display: swap
|
||||||
|
font-weight: 100 900
|
||||||
|
src: url(@fontsource-variable/montserrat/files/montserrat-latin-wght-normal.woff2) format('woff2-variations')
|
||||||
|
unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD
|
||||||
|
|
||||||
|
#body
|
||||||
|
font-family: 'Fira Code Variable', monospace
|
||||||
|
background-color: vars.$background
|
||||||
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue