mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 10:03:31 +01:00
refactor(guide): next 13
This commit is contained in:
4
apps/guide/src/util/fetcher.ts
Normal file
4
apps/guide/src/util/fetcher.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const fetcher = async (url: string) => {
|
||||
const res = await fetch(url);
|
||||
return res.json();
|
||||
};
|
||||
13
apps/guide/src/util/fonts.ts
Normal file
13
apps/guide/src/util/fonts.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Inter, JetBrains_Mono } from 'next/font/google';
|
||||
|
||||
export const inter = Inter({
|
||||
subsets: ['latin'],
|
||||
display: 'swap',
|
||||
variable: '--font-inter',
|
||||
});
|
||||
|
||||
export const jetBrainsMono = JetBrains_Mono({
|
||||
subsets: ['latin'],
|
||||
display: 'swap',
|
||||
variable: '--font-mono',
|
||||
});
|
||||
Reference in New Issue
Block a user