Skip to content

Commit

Permalink
Merge pull request #17 from SayarB/sayar
Browse files Browse the repository at this point in the history
fix: font
  • Loading branch information
SayarB authored Oct 30, 2023
2 parents 1d6172b + 4e6955d commit 7a6c9d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 6 additions & 0 deletions web/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
@import url("https://fonts.googleapis.com/css2?family=Unbounded:wght@200;300;400;500;600;700;800;900&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--font-unbounded: "Unbounded", sans-serif;
}

* {
box-sizing: border-box;
}
Expand Down
4 changes: 1 addition & 3 deletions web/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

import './globals.css'
import { Unbounded } from 'next/font/google'
import localFont from "next/font/local"

const unbounded = Unbounded({ subsets: ['latin'], variable: '--font-unbounded', display: 'swap' })
const neue_machina = localFont({
src: '/NeueMachina-Regular.otf',
variable: '--font-neuemachina'
Expand Down Expand Up @@ -34,7 +32,7 @@ export default function RootLayout({
children: React.ReactNode
}) {
return (
<html lang="en" className={`${unbounded.variable} ${neue_machina.variable} text-[10px] md:text-[16px]`} >
<html lang="en" className={`${neue_machina.variable} text-[10px] md:text-[16px]`} >
<body className='overflow-hidden bg-dark'>{children}</body>
</ html>
)
Expand Down

0 comments on commit 7a6c9d9

Please sign in to comment.