diff --git a/public/fonts/SourceHanSansSC-Bold.otf b/public/fonts/SourceHanSansSC-Bold.otf deleted file mode 100644 index 3b33e77..0000000 Binary files a/public/fonts/SourceHanSansSC-Bold.otf and /dev/null differ diff --git a/public/fonts/SourceHanSansSC-ExtraLight.otf b/public/fonts/SourceHanSansSC-ExtraLight.otf deleted file mode 100644 index 9e51269..0000000 Binary files a/public/fonts/SourceHanSansSC-ExtraLight.otf and /dev/null differ diff --git a/public/fonts/SourceHanSansSC-Heavy.otf b/public/fonts/SourceHanSansSC-Heavy.otf deleted file mode 100644 index 149f6b8..0000000 Binary files a/public/fonts/SourceHanSansSC-Heavy.otf and /dev/null differ diff --git a/public/fonts/SourceHanSansSC-Light.otf b/public/fonts/SourceHanSansSC-Light.otf deleted file mode 100644 index ebb1728..0000000 Binary files a/public/fonts/SourceHanSansSC-Light.otf and /dev/null differ diff --git a/public/fonts/SourceHanSansSC-Medium.otf b/public/fonts/SourceHanSansSC-Medium.otf deleted file mode 100644 index 304b3e6..0000000 Binary files a/public/fonts/SourceHanSansSC-Medium.otf and /dev/null differ diff --git a/public/fonts/SourceHanSansSC-Normal.otf b/public/fonts/SourceHanSansSC-Normal.otf deleted file mode 100644 index 5e805a0..0000000 Binary files a/public/fonts/SourceHanSansSC-Normal.otf and /dev/null differ diff --git a/public/fonts/SourceHanSansSC-Regular.otf b/public/fonts/SourceHanSansSC-Regular.otf deleted file mode 100644 index 8113ad5..0000000 Binary files a/public/fonts/SourceHanSansSC-Regular.otf and /dev/null differ diff --git a/src/app/globals.css b/src/app/globals.css index 64ac8a6..a47659f 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -22,7 +22,7 @@ body { background: var(--background); color: var(--foreground); - font-family: var(--font-geist-sans), Arial, Helvetica, sans-serif; + font-family: "Source Han Sans SC VF", var(--font-geist-sans), Arial, Helvetica, sans-serif; } .code-block { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 236618d..c3bf743 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,7 +1,13 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; -import localFont from "next/font/local"; +import Head from "next/head"; +import type { Viewport } from 'next' + +export const viewport: Viewport = { + width: 'device-width', + initialScale: 1.0 +} const geistSans = Geist({ variable: "--font-geist-sans", @@ -13,45 +19,9 @@ const geistMono = Geist_Mono({ subsets: ["latin"], }); -const sourceHanSansSC = localFont({ - src: [ - { - path: '../../public/fonts/SourceHanSansSC-ExtraLight.otf', - weight: '200', - style: 'normal' - }, - { - path: '../../public/fonts/SourceHanSansSC-Light.otf', - weight: '300', - style: 'normal' - }, - { - path: '../../public/fonts/SourceHanSansSC-Regular.otf', - weight: '400', - style: 'normal' - }, - { - path: '../../public/fonts/SourceHanSansSC-Medium.otf', - weight: '500', - style: 'normal' - }, - { - path: '../../public/fonts/SourceHanSansSC-Bold.otf', - weight: '700', - style: 'normal' - }, - { - path: '../../public/fonts/SourceHanSansSC-Heavy.otf', - weight: '900', - style: 'normal' - } - ] -}); - export const metadata: Metadata = { title: "Learn Languages", description: "A Website to Learn Languages", - viewport: 'width=device-width, initial-scale=1.0', }; export default function RootLayout({ @@ -61,8 +31,14 @@ export default function RootLayout({ }>) { return ( +
+ + {children}