refactor(ui): change font to geist

This commit is contained in:
Stavros 2023-12-06 20:45:35 +02:00 committed by Nicolas Meienberger
parent 7133a2a2dc
commit 6b371de137
3 changed files with 17 additions and 1971 deletions

View file

@ -52,6 +52,7 @@
"connect-redis": "^7.1.0", "connect-redis": "^7.1.0",
"drizzle-orm": "^0.28.6", "drizzle-orm": "^0.28.6",
"fs-extra": "^11.1.1", "fs-extra": "^11.1.1",
"geist": "^1.2.0",
"let-it-go": "^1.0.0", "let-it-go": "^1.0.0",
"lodash.merge": "^4.6.2", "lodash.merge": "^4.6.2",
"next": "14.0.1", "next": "14.0.1",

File diff suppressed because it is too large Load diff

View file

@ -2,7 +2,7 @@ import React from 'react';
import type { Metadata } from 'next'; import type { Metadata } from 'next';
import { cookies } from 'next/headers'; import { cookies } from 'next/headers';
import { Inter } from 'next/font/google'; import { GeistSans } from 'geist/font/sans';
import merge from 'lodash.merge'; import merge from 'lodash.merge';
import { NextIntlClientProvider } from 'next-intl'; import { NextIntlClientProvider } from 'next-intl';
import { getConfig } from '@/server/core/TipiConfig'; import { getConfig } from '@/server/core/TipiConfig';
@ -13,11 +13,6 @@ import { Toaster } from 'react-hot-toast';
import { getCurrentLocale } from '../utils/getCurrentLocale'; import { getCurrentLocale } from '../utils/getCurrentLocale';
import { ClientProviders } from './components/ClientProviders'; import { ClientProviders } from './components/ClientProviders';
const inter = Inter({
subsets: ['latin'],
display: 'swap',
});
export const metadata: Metadata = { export const metadata: Metadata = {
title: 'Tipi', title: 'Tipi',
description: 'Tipi', description: 'Tipi',
@ -35,7 +30,7 @@ export default async function RootLayout({ children }: { children: React.ReactNo
const { allowAutoThemes } = getConfig(); const { allowAutoThemes } = getConfig();
return ( return (
<html lang={locale} className={clsx(inter.className, 'border-top-wide border-primary')}> <html lang={locale} className={clsx(GeistSans.className, 'border-top-wide border-primary')}>
<NextIntlClientProvider locale={locale} messages={mergedMessages}> <NextIntlClientProvider locale={locale} messages={mergedMessages}>
<ClientProviders initialTheme={theme?.value} cookies={cookies().getAll()} allowAutoThemes={allowAutoThemes}> <ClientProviders initialTheme={theme?.value} cookies={cookies().getAll()} allowAutoThemes={allowAutoThemes}>
<body data-bs-theme={theme?.value}> <body data-bs-theme={theme?.value}>