Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wkim10 committed Dec 10, 2024
1 parent e6b5e4f commit 75b2504
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
Binary file added src/app/fonts/sofia-pro.woff2
Binary file not shown.
5 changes: 3 additions & 2 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ body {
:root {
--background: #ffffff;
--foreground: #171717;
--font-primary: var(--font-sofia-pro), Arial, Helvetica, sans-serif;
--font-sofia-pro: "Sofia Pro", sans-serif;
/* --font-primary: var(--font-sofia-pro), Arial, Helvetica, sans-serif; */
}

body {
color: var(--foreground);
background: var(--background);
font-family: var(--font-primary);
font-family: var(--font-sofia-pro);
}

@layer utilities {
Expand Down
34 changes: 19 additions & 15 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,27 @@ import localFont from "next/font/local";
import "./globals.css";
import AuthProvider from "./context/AuthProvider";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
// const geistSans = localFont({
// src: "./fonts/GeistVF.woff",
// variable: "--font-geist-sans",
// weight: "100 900",
// });
// const geistMono = localFont({
// src: "./fonts/GeistMonoVF.woff",
// variable: "--font-geist-mono",
// weight: "100 900",
// });

// const sofiaPro = localFont({
// src: "./fonts/Sofia Pro Regular.woff",
// variable: "--font-sofia-pro",
// weight: "400",
// });

const sofiaPro = localFont({
src: "./fonts/Sofia Pro Regular.woff",
src: "./fonts/sofia-pro.woff2",
variable: "--font-sofia-pro",
weight: "100 900",
weight: "400",
});

export const metadata: Metadata = {
Expand All @@ -32,9 +38,7 @@ export default function RootLayout({
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} ${sofiaPro.variable} antialiased`}
>
<body className={`${sofiaPro.variable} antialiased`}>
<AuthProvider>{children}</AuthProvider>
</body>
</html>
Expand Down

0 comments on commit 75b2504

Please sign in to comment.