Add ️ as default favicon for documentation and examples (#191) (#192)

This commit is contained in:
Nayan Radadiya
2024-12-04 00:05:25 +05:30
committed by GitHub
parent 79ec1c6922
commit 7f9bf08f76
13 changed files with 40 additions and 19 deletions
+13 -3
View File
@@ -1,5 +1,6 @@
import type { ReactNode, JSX } from 'react'
import { MDXProvider } from '@mdx-js/react'
import { Head } from 'tuono'
interface RootRouteProps {
children: ReactNode
@@ -7,8 +8,17 @@ interface RootRouteProps {
export default function RootRoute({ children }: RootRouteProps): JSX.Element {
return (
<main className="main">
<MDXProvider components={{}}>{children}</MDXProvider>
</main>
<>
<Head>
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>⚡</text></svg>"
/>
<title>Tuono - With MDX</title>
</Head>
<main className="main">
<MDXProvider components={{}}>{children}</MDXProvider>
</main>
</>
)
}