From 2fc872d5270c1cb5ac0ccc5b548d19fd8a3c0626 Mon Sep 17 00:00:00 2001 From: SevicheCC <91365763+Sevichecc@users.noreply.github.com> Date: Sun, 4 Jun 2023 16:00:15 +0800 Subject: [PATCH] feat: init fonts --- app/layout.tsx | 14 +++++++++----- components/Container.tsx | 0 lib/fonts.ts | 11 +++++++++++ package.json | 2 +- public/next.svg | 1 - public/vercel.svg | 1 - tsconfig.json | 3 ++- 7 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 components/Container.tsx create mode 100644 lib/fonts.ts delete mode 100644 public/next.svg delete mode 100644 public/vercel.svg diff --git a/app/layout.tsx b/app/layout.tsx index d9f46e0..b94a331 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,10 +1,10 @@ import "@/styles/globals.css" -import { Inter } from 'next/font/google' -const inter = Inter({ subsets: ['latin'] }) +import { fontSans } from "@/lib/fonts" +import { cn } from "@/lib/utils" export const metadata = { - title: 'Ma-OAuth', - description: 'Generated Access Token for Akkoma / Pleroma / Mastodon', + title: 'M-OAuth', + description: 'Access token generator for Akkoma, Pleroma, Mastodon, Misskey APIs.', } export default function RootLayout({ @@ -14,7 +14,11 @@ export default function RootLayout({ }) { return ( -
+ {children} diff --git a/components/Container.tsx b/components/Container.tsx new file mode 100644 index 0000000..e69de29 diff --git a/lib/fonts.ts b/lib/fonts.ts new file mode 100644 index 0000000..b33bbbf --- /dev/null +++ b/lib/fonts.ts @@ -0,0 +1,11 @@ +import { JetBrains_Mono as FontMono, Inter as FontSans } from "next/font/google" + +export const fontSans = FontSans({ + subsets: ["latin"], + variable: "--font-sans", +}) + +export const fontMono = FontMono({ + subsets: ["latin"], + variable: "--font-mono", +}) \ No newline at end of file diff --git a/package.json b/package.json index 013e8f4..062b1a3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "ma-oauth", + "name": "m-oauth", "version": "0.0.1", "private": true, "scripts": { diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 6fe07b8..d6c7c4b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -29,7 +29,8 @@ "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", - "tailwind.config.ts" + "tailwind.config.ts", + "next.config.js" ], "exclude": ["node_modules"] }