❤️🔥
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use client'; | |
import { useTheme } from 'next-themes'; | |
import { Toaster } from '@/components/ui/sonner'; | |
const ToasterwithTheme = () => { | |
const { theme } = useTheme(); | |
return ( | |
<Toaster | |
richColors | |
closeButton |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { PrismaClient } from "@prisma/client"; | |
const prismaClientSingleton = () => { | |
return new PrismaClient(); | |
}; | |
type PrismaClientSingleton = ReturnType<typeof prismaClientSingleton>; | |
const globalForPrisma = globalThis as unknown as { | |
prisma: PrismaClientSingleton | undefined; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Headings */ | |
.markdown-body h1 { | |
font-size: 2.5rem; /* 40px */ | |
} | |
.markdown-body h2 { | |
font-size: 2rem; /* 32px */ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
box-sizing: border-box; | |
-webkit-font-smoothing: antialiased; | |
} | |
* { | |
box-sizing: inherit; | |
margin: 0; | |
padding: 0; | |
} |