Added head component
This commit is contained in:
parent
de35dbb953
commit
9952654af1
1 changed files with 20 additions and 0 deletions
20
fwt/components/Head/Head.tsx
Normal file
20
fwt/components/Head/Head.tsx
Normal 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>
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue