Revert font.

This commit is contained in:
Mike Cao 2023-04-02 23:12:43 -07:00
parent ae772f048c
commit 31f28125dc
4 changed files with 10 additions and 9 deletions

View File

@ -58,6 +58,7 @@
".next/cache" ".next/cache"
], ],
"dependencies": { "dependencies": {
"@fontsource/inter": "^4.5.15",
"@prisma/client": "4.11.0", "@prisma/client": "4.11.0",
"@tanstack/react-query": "^4.16.1", "@tanstack/react-query": "^4.16.1",
"@umami/prisma-client": "^0.2.0", "@umami/prisma-client": "^0.2.0",

View File

@ -1,18 +1,17 @@
import { IntlProvider } from 'react-intl'; import { IntlProvider } from 'react-intl';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import Head from 'next/head'; import Head from 'next/head';
import { Inter } from 'next/font/google'; import Script from 'next/script';
import { useRouter } from 'next/router'; import { useRouter } from 'next/router';
import useLocale from 'hooks/useLocale'; import useLocale from 'hooks/useLocale';
import useConfig from 'hooks/useConfig'; import useConfig from 'hooks/useConfig';
import '@fontsource/inter/400.css';
import '@fontsource/inter/700.css';
import 'react-basics/dist/styles.css'; import 'react-basics/dist/styles.css';
import 'styles/variables.css'; import 'styles/variables.css';
import 'styles/locale.css'; import 'styles/locale.css';
import 'styles/index.css'; import 'styles/index.css';
import 'chartjs-adapter-date-fns'; import 'chartjs-adapter-date-fns';
import Script from 'next/script';
const inter = Inter({ subsets: ['latin'] });
const client = new QueryClient({ const client = new QueryClient({
defaultOptions: { defaultOptions: {
@ -53,11 +52,6 @@ export default function App({ Component, pageProps }) {
<meta name="theme-color" content="#fafafa" media="(prefers-color-scheme: light)" /> <meta name="theme-color" content="#fafafa" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#2f2f2f" media="(prefers-color-scheme: dark)" /> <meta name="theme-color" content="#2f2f2f" media="(prefers-color-scheme: dark)" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<style>{`
html {
font-family: ${inter.style.fontFamily};
}
`}</style>
</Head> </Head>
<Component {...pageProps} /> <Component {...pageProps} />
{!pathname.includes('/share/') && <Script src={`${basePath}/telemetry.js`} />} {!pathname.includes('/share/') && <Script src={`${basePath}/telemetry.js`} />}

View File

@ -1,5 +1,6 @@
html, html,
body { body {
font-family: Inter, sans-serif;
font-size: 14px; font-size: 14px;
font-weight: normal; font-weight: normal;
line-height: 1.5rem; line-height: 1.5rem;

View File

@ -1274,6 +1274,11 @@
resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.36.0.tgz#9837f768c03a1e4a30bd304a64fb8844f0e72efe" resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.36.0.tgz#9837f768c03a1e4a30bd304a64fb8844f0e72efe"
integrity sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg== integrity sha512-lxJ9R5ygVm8ZWgYdUweoq5ownDlJ4upvoWmO4eLxBYHdMo+vZ/Rx0EN6MbKWDJOSUGrqJy2Gt+Dyv/VKml0fjg==
"@fontsource/inter@^4.5.15":
version "4.5.15"
resolved "https://registry.yarnpkg.com/@fontsource/inter/-/inter-4.5.15.tgz#eed1873d68755d3b52d6fcfcfa3493118430a512"
integrity sha512-FzleM9AxZQK2nqsTDtBiY0PMEVWvnKnuu2i09+p6DHvrHsuucoV2j0tmw+kAT3L4hvsLdAIDv6MdGehsPIdT+Q==
"@formatjs/cli@^4.2.29": "@formatjs/cli@^4.2.29":
version "4.8.4" version "4.8.4"
resolved "https://registry.npmjs.org/@formatjs/cli/-/cli-4.8.4.tgz" resolved "https://registry.npmjs.org/@formatjs/cli/-/cli-4.8.4.tgz"