Used fwt components on layout
This commit is contained in:
parent
e7f7441e46
commit
74b0d3a902
1 changed files with 11 additions and 39 deletions
|
|
@ -1,44 +1,16 @@
|
||||||
---
|
---
|
||||||
import Navbar from '../components/Navbar/Navbar.tsx'
|
import Navbar from '../components/Navbar/Navbar.tsx'
|
||||||
const { title } = Astro.props
|
const { title } = Astro.props
|
||||||
|
|
||||||
|
const websiteName = 'AIO Tools'
|
||||||
|
const websiteDescription = 'All-in-One Tools for Everyone'
|
||||||
|
|
||||||
|
import Background from '../../fwt/components/Background/Background'
|
||||||
|
import HTML from '../../fwt/components/HTML/HTML'
|
||||||
---
|
---
|
||||||
|
|
||||||
<html lang="en">
|
<HTML title={title} name={websiteName} description={websiteDescription} font="inter">
|
||||||
<head>
|
<Background color="#0f1a28" />
|
||||||
<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="AIO Tools" />
|
|
||||||
<meta name="description" content="All-in-One Tools for Everyone" />
|
|
||||||
<title>{title}</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body id="body">
|
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<slot />
|
<slot />
|
||||||
</body>
|
</HTML>
|
||||||
</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: vars.$fontFamily
|
|
||||||
background-color: vars.$background
|
|
||||||
</style>
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue