Skip to content

Commit

Permalink
fix: fonts + og image
Browse files Browse the repository at this point in the history
  • Loading branch information
Chang Liu committed Jan 22, 2025
1 parent 5c91f73 commit 7751ec0
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 23 deletions.
24 changes: 5 additions & 19 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,16 @@ import {Analytics} from '@vercel/analytics/react'
import {SpeedInsights} from '@vercel/speed-insights/next'
import 'devicon'
import {Metadata} from 'next'
import localFont from 'next/font/local'
import {Toaster} from 'sonner'

import {Background} from '~/3d/Background'
import Nav from '~/components/Nav'
import {DEFAULT_META} from '~/constants/metadata'
import './styles.css'

const font = localFont({
src: [
{
path: '../public/fonts/Geist-Light.woff2',
weight: '100'
},
{
path: '../public/fonts/Geist-Regular.woff2',
weight: '400'
},
{
path: '../public/fonts/Geist-Bold.woff2',
weight: '700'
}
]
})
import { GeistSans } from 'geist/font/sans'
import { GeistMono } from 'geist/font/mono'


export const metadata: Metadata = {
...DEFAULT_META,
Expand All @@ -39,9 +25,9 @@ export const metadata: Metadata = {

export default function RootLayout({children}: {children: React.ReactNode}) {
return (
<html lang='en'>
<html lang='en' className={`${GeistSans.variable} ${GeistMono.variable}`}>
<body
className={`${font.className} relative flex h-full min-h-screen w-full flex-col items-center bg-white dark:bg-black`}>
className={`relative flex h-full min-h-screen w-full flex-col items-center bg-white dark:bg-black`}>
<Background />
<Nav />
<Toaster />
Expand Down
Binary file modified app/opengraph-image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/components/DownloadControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default function DownloadControls({
)

return (
<div className='flex flex-col items-center justify-center overflow-hidden rounded-lg border border-white/10'>
<div className='flex flex-col items-center justify-center overflow-hidden rounded-lg border border-white/10 backdrop-blur'>
<div className='flex w-full items-center justify-center gap-1 border-b border-white/10 p-1 text-gray-400'>
<ArrowDownToLine className='h-[16px] w-[16px]' /> Download
</div>
Expand Down
2 changes: 1 addition & 1 deletion lib/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function Toolbar({
)

return (
<div className='flex w-full flex-row items-center justify-between overflow-hidden rounded border border-white/10'>
<div className='flex w-full flex-row items-center justify-between rounded border border-white/10 backdrop-blur'>
<div className='flex flex-1 flex-col'>
<div className={labelClassNames}>
<User className='h-[16px] w-[16px]' /> Username
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dom-to-image": "^2.6.0",
"file-saver": "^2.0.5",
"framer-motion": "^10.16.16",
"geist": "^1.3.1",
"graphql": "^16.8.1",
"graphql-request": "^6.1.0",
"langchain": "^0.0.203",
Expand Down
Binary file removed public/fonts/Geist-Bold.woff2
Binary file not shown.
Binary file removed public/fonts/Geist-Light.woff2
Binary file not shown.
Binary file removed public/fonts/Geist-Regular.woff2
Binary file not shown.
Binary file removed public/fonts/GeistMono-Regular.woff2
Binary file not shown.
4 changes: 2 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const tailwindConfig = {
content: ['**/*.tsx'],
theme: {
fontFamily: {
sans: ['Geist', 'ui-sans-serif', 'system-ui'],
mono: ['Geist Mono', 'ui-monospace', 'SFMono-Regular']
sans: ['var(--font-geist-sans)', 'ui-sans-serif', 'system-ui'],
mono: ['var(--font-geist-mono)', 'ui-monospace', 'SFMono-Regular'],
},
extend: {
animation: {
Expand Down

0 comments on commit 7751ec0

Please sign in to comment.