mirror of
https://github.com/pykeio/ort
synced 2026-04-25 16:34:55 +02:00
docs: move card def
This commit is contained in:
3
docs/.gitignore
vendored
Normal file
3
docs/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
next-env.d.ts
|
||||
out/
|
||||
.next/
|
||||
@@ -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>
|
||||
|
||||
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user