Compare commits

..

No commits in common. "f8c7d24cb53d955aa98551b7b8a9a76e8308f413" and "1c3f2565c7b0218bc444955db4ad86cfa145483a" have entirely different histories.

4 changed files with 38 additions and 46 deletions

View file

@ -1,13 +0,0 @@
@use '/src/styles/variables.sass' as vars
@use '/src/styles/fonts.sass' as fonts
.body
color: vars.$textColor
.inter
@extend .body
font-family: fonts.$Inter
.roboto
@extend .body
font-family: fonts.$Roboto

View file

@ -1,28 +0,0 @@
import './HTML.sass'
interface Props {
title: string
name: string
description: string
children: any
font?: string
}
export default (props: Props) => {
return (
<>
<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, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<meta name="name" content={props.name} />
<meta name="description" content={props.description} />
<title>{props.title}</title>
</head>
<body class={props.font}>{props.children}</body>
</html>
</>
)
}

View file

@ -0,0 +1,20 @@
interface Props {
title: string
name: string
description: string
}
export default (props: Props) => {
return (
<>
<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, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<meta name="name" content={props.name} />
<meta name="description" content={props.description} />
<title>{props.title}</title>
</head>
</>
)
}

View file

@ -6,10 +6,23 @@ const websiteDescription = 'This is just a template.'
import Background from '../../fwt/components/Background/Background'
import OptimizeBackground from '../../fwt/components/Optimizer/OptimizeBackground'
import HTML from '../../fwt/components/HTML/HTML'
import Head from '../../fwt/components/Head/Head'
---
<HTML title={title} name={websiteName} description={websiteDescription} font="inter">
<html lang="en">
<Head title={title} name={websiteName} description={websiteDescription} />
<body id="body">
<Background color="#0c1b31" />
<slot />
</HTML>
<style lang="sass">
@use '/src/styles/variables.sass' as vars
@use '/src/styles/fonts.sass' as fonts
#body
font-family: fonts.$Inter
color: vars.$textColor
</style>
</body>
</html>