Revert "feat: fetch font from github"

This reverts commit 5e2eab040a75feed39cbc67736e805c1f1a2294a.
This commit is contained in:
AykutSarac 2023-08-16 17:06:19 +03:00
parent 5e2eab040a
commit 565a92e98d
No known key found for this signature in database
6 changed files with 17 additions and 11 deletions

Binary file not shown.

View File

@ -1,4 +1,12 @@
import { Fira_Mono } from "next/font/google";
import localFont from "next/font/local";
const monaSans = localFont({
src: "../assets/fonts/Mona-Sans.woff2",
variable: "--mona-sans",
display: "swap",
fallback: ["Arial, Helvetica, sans-serif", "Tahoma, Verdana, sans-serif"],
});
const firaMono = Fira_Mono({
weight: ["500"],
@ -6,4 +14,4 @@ const firaMono = Fira_Mono({
display: "swap",
});
export { firaMono };
export { monaSans, firaMono };

View File

@ -2,6 +2,7 @@ import React from "react";
import { ThemeProvider } from "styled-components";
import { MantineProvider, MantineThemeOverride } from "@mantine/core";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { monaSans } from "src/constants/fonts";
import { lightTheme, darkTheme } from "src/constants/theme";
import useStored from "src/store/useStored";
@ -15,9 +16,9 @@ const queryClient = new QueryClient({
});
const mantineTheme: MantineThemeOverride = {
fontFamily: "'Mona-Sans', sans-serif",
fontFamily: monaSans.style.fontFamily,
headings: {
fontFamily: "'Mona-Sans', sans-serif",
fontFamily: monaSans.style.fontFamily,
},
components: {
Divider: {

View File

@ -1,12 +1,13 @@
import React from "react";
import Link from "next/link";
import styled from "styled-components";
import { monaSans } from "src/constants/fonts";
const StyledTitle = styled.div<{ fontSize: string }>`
font-weight: 900;
margin: 0;
color: ${({ theme }) => theme.INTERACTIVE_HOVER};
font-family: "Mona-Sans", sans-serif;
font-family: ${monaSans.style.fontFamily};
font-size: ${({ fontSize }) => fontSize};
white-space: nowrap;
`;

View File

@ -6,6 +6,7 @@ import { StyleSheetManager, ThemeProvider } from "styled-components";
import { MantineProvider, MantineThemeOverride } from "@mantine/core";
import { SessionContextProvider, Session } from "@supabase/auth-helpers-react";
import ReactGA from "react-ga4";
import { monaSans } from "src/constants/fonts";
import GlobalStyle from "src/constants/globalStyle";
import { lightTheme } from "src/constants/theme";
import { supabase } from "src/lib/api/supabase";
@ -22,8 +23,8 @@ const ModalController = dynamic(() => import("src/layout/ModalController"));
const mantineTheme: MantineThemeOverride = {
colorScheme: "light",
fontFamily: "'Mona-Sans', sans-serif",
headings: { fontFamily: "'Mona-Sans', sans-serif" },
fontFamily: monaSans.style.fontFamily,
headings: { fontFamily: monaSans.style.fontFamily },
primaryShade: 8,
};

View File

@ -52,11 +52,6 @@ class MyDocument extends Document {
<meta name="theme-color" content="#36393E" />
<link rel="manifest" href="/manifest.json" />
<link rel="icon" href="/favicon.ico" />
<link
href="https://github.githubassets.com/static/fonts/github/mona-sans.woff2"
rel="stylesheet"
crossOrigin="anonymous"
/>
</Head>
<body>
<Main />