pls
All checks were successful
Deploy Frontend / docker (17, 3.8.5) (push) Successful in 2m52s

This commit is contained in:
Braydon 2024-04-21 01:55:55 -04:00
parent 47d2982666
commit 0a4f00866d
3 changed files with 32 additions and 28 deletions

Binary file not shown.

@ -37,6 +37,7 @@
"clipboard-copy": "^4.0.1", "clipboard-copy": "^4.0.1",
"clsx": "^2.1.0", "clsx": "^2.1.0",
"lucide-react": "^0.372.0", "lucide-react": "^0.372.0",
"mdast-util-frontmatter": "^2.0.1",
"moment": "^2.30.1", "moment": "^2.30.1",
"next": "14.2.2", "next": "14.2.2",
"next-plausible": "^3.12.0", "next-plausible": "^3.12.0",

@ -15,25 +15,31 @@ import {
* The MDX components to style. * The MDX components to style.
*/ */
const components: any = { const components: any = {
h1: ({ children }: { children: ReactNode }) => ( h1: ({ children }: { children: ReactNode }): ReactElement => (
<Heading size="text-4xl">{children}</Heading> <Heading size="text-4xl">{children}</Heading>
), ),
h2: ({ children }: { children: ReactNode }) => ( h2: ({ children }: { children: ReactNode }): ReactElement => (
<Heading size="text-3xl">{children}</Heading> <Heading size="text-3xl">{children}</Heading>
), ),
h3: ({ children }: { children: ReactNode }) => ( h3: ({ children }: { children: ReactNode }): ReactElement => (
<Heading size="text-2xl">{children}</Heading> <Heading size="text-2xl">{children}</Heading>
), ),
h4: ({ children }: { children: ReactNode }) => ( h4: ({ children }: { children: ReactNode }): ReactElement => (
<Heading size="text-xl">{children}</Heading> <Heading size="text-xl">{children}</Heading>
), ),
h5: ({ children }: { children: ReactNode }) => ( h5: ({ children }: { children: ReactNode }): ReactElement => (
<Heading size="text-lg">{children}</Heading> <Heading size="text-lg">{children}</Heading>
), ),
h6: ({ children }: { children: ReactNode }) => ( h6: ({ children }: { children: ReactNode }): ReactElement => (
<Heading size="text-md">{children}</Heading> <Heading size="text-md">{children}</Heading>
), ),
a: ({ href, children }: { href: string; children: ReactNode }) => ( a: ({
href,
children,
}: {
href: string;
children: ReactNode;
}): ReactElement => (
<a <a
className="text-minecraft-green-4 cursor-pointer hover:opacity-85 transition-all transform-gpu" className="text-minecraft-green-4 cursor-pointer hover:opacity-85 transition-all transform-gpu"
href={href} href={href}
@ -41,30 +47,30 @@ const components: any = {
{children} {children}
</a> </a>
), ),
p: ({ children }: { children: ReactNode }) => ( p: ({ children }: { children: ReactNode }): ReactElement => (
<p className="leading-4 text-zinc-300/80">{children}</p> <p className="leading-4 text-zinc-300/80">{children}</p>
), ),
ul: ({ children }: { children: ReactNode }) => ( ul: ({ children }: { children: ReactNode }): ReactElement => (
<ul className="list-disc list-inside">{children}</ul> <ul className="list-disc list-inside">{children}</ul>
), ),
// Tables // Tables
// table: ({ children }: { children: any }) => ( table: ({ children }: { children: any }) => (
// <Table> <Table>
// <TableHeader> <TableHeader>
// <TableRow> <TableRow>
// {children?.[0].props?.children?.props?.children} {children?.[0].props?.children?.props?.children}
// </TableRow> </TableRow>
// </TableHeader> </TableHeader>
// <TableBody>{children?.[1].props?.children}</TableBody> <TableBody>{children?.[1].props?.children}</TableBody>
// </Table> </Table>
// ), ),
// th: ({ children }: { children: ReactNode }) => ( th: ({ children }: { children: ReactNode }) => (
// <TableHead>{children}</TableHead> <TableHead>{children}</TableHead>
// ), ),
// td: ({ children }: { children: ReactNode }) => ( td: ({ children }: { children: ReactNode }) => (
// <TableCell>{children}</TableCell> <TableCell>{children}</TableCell>
// ), ),
}; };
/** /**
@ -83,9 +89,6 @@ export const CustomMDX = (props: any): ReactElement => (
options={{ options={{
mdxOptions: { mdxOptions: {
remarkPlugins: [remarkGfm], remarkPlugins: [remarkGfm],
remarkRehypeOptions: {
passThrough: ["link"],
},
}, },
}} }}
/> />