1
1
import { FC , HTMLAttributes } from "react" ;
2
2
import { Sora } from "next/font/google" ;
3
3
import Head from "next/head" ;
4
+ import { Header } from "@/components/Header" ;
5
+ import { Nav } from "@/components/Nav" ;
4
6
import { WEBSITE } from "@/constants" ;
5
7
import { cn } from "@/utils" ;
6
- import { Header } from "@/components/Header" ;
7
- import { Nav } from "@/components/Nav" ;
8
8
import TopLeftImg from "../components/TopLeftImg" ;
9
9
10
10
const sora = Sora ( {
@@ -15,7 +15,7 @@ const sora = Sora({
15
15
16
16
type Props = HTMLAttributes < HTMLDivElement > ;
17
17
18
- const Layout : FC < Props > = ( { className, children, ...rest } ) => {
18
+ export const Layout : FC < Props > = ( { className, children, ...rest } ) => {
19
19
return (
20
20
< main
21
21
className = { cn (
@@ -30,7 +30,7 @@ const Layout: FC<Props> = ({ className, children, ...rest }) => {
30
30
< meta name = "description" content = { WEBSITE . description } />
31
31
< meta name = "keywords" content = { WEBSITE . keywords . join ( ", " ) } />
32
32
< meta name = "author" content = { WEBSITE . author } />
33
- < meta name = "theme-color" content = "#f13024" />
33
+ < meta name = "theme-color" content = { WEBSITE . color } />
34
34
</ Head >
35
35
36
36
< TopLeftImg />
@@ -41,5 +41,3 @@ const Layout: FC<Props> = ({ className, children, ...rest }) => {
41
41
</ main >
42
42
) ;
43
43
} ;
44
-
45
- export default Layout ;
0 commit comments