docs: move card def

This commit is contained in:
Carson M.
2026-04-06 18:02:52 -05:00
parent 1f31122a1b
commit 0f04123c08
3 changed files with 11 additions and 8 deletions

3
docs/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
next-env.d.ts
out/
.next/

View File

@@ -89,12 +89,7 @@ export default async function RootLayout({ children }) {
footer={<Footer />}
pageMap={pageMap}
copyPageButton={false}
toc={{
extraContent: <Card>
<p style={{ fontFamily: '"Monaspace Neon"', textTransform: 'uppercase', color: 'var(--gray-9)', fontSize: '0.6rem', marginTop: '-4px', marginBottom: '4px' }}>Sponsored by</p>
<TocSponsors />
</Card>
}}
toc={{ extraContent: <TocSponsors /> }}
>
{children}
</Layout>

View File

@@ -1,5 +1,6 @@
'use client';
import { Card } from '@radix-ui/themes';
import { useTheme } from 'nextra-theme-docs';
import { useEffect, useState } from 'react';
@@ -11,6 +12,10 @@ export function TocSponsors() {
setTheme(actualResolvedTheme ?? 'dark');
}, [ actualResolvedTheme ]);
return <>
</>;
return null;
return <Card>
<p style={{ fontFamily: '"Monaspace Neon"', textTransform: 'uppercase', color: 'var(--gray-9)', fontSize: '0.6rem', marginTop: '-4px', marginBottom: '4px' }}>Sponsored by</p>
{/* ... */}
</Card>;
}