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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

+1 -14
View File
@@ -70,22 +70,9 @@ export default function RootRoute({ children }: RootRouteProps): JSX.Element {
<Head> <Head>
<meta charSet="UTF-8" /> <meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="apple-touch-icon"
sizes="180x180"
href="/apple-touch-icon.png"
/>
<link <link
rel="icon" rel="icon"
type="image/png" 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>"
sizes="32x32"
href="/favicon-32x32.png"
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href="/favicon-16x16.png"
/> />
<link rel="manifest" href="/site.webmanifest" /> <link rel="manifest" href="/site.webmanifest" />
</Head> </Head>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

+13 -1
View File
@@ -1,9 +1,21 @@
import type { ReactNode, JSX } from 'react' import type { ReactNode, JSX } from 'react'
import { Head } from 'tuono'
interface RootRouteProps { interface RootRouteProps {
children: ReactNode children: ReactNode
} }
export default function RootRoute({ children }: RootRouteProps): JSX.Element { export default function RootRoute({ children }: RootRouteProps): JSX.Element {
return <main className="main">{children}</main> return (
<>
<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 app</title>
</Head>
<main className="main">{children}</main>
</>
)
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

+13 -1
View File
@@ -1,9 +1,21 @@
import type { ReactNode, JSX } from 'react' import type { ReactNode, JSX } from 'react'
import { Head } from 'tuono'
interface RootRouteProps { interface RootRouteProps {
children: ReactNode children: ReactNode
} }
export default function RootRoute({ children }: RootRouteProps): JSX.Element { export default function RootRoute({ children }: RootRouteProps): JSX.Element {
return <main className="main">{children}</main> return (
<>
<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 tutorial</title>
</Head>
<main className="main">{children}</main>
</>
)
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

+13 -3
View File
@@ -1,5 +1,6 @@
import type { ReactNode, JSX } from 'react' import type { ReactNode, JSX } from 'react'
import { MDXProvider } from '@mdx-js/react' import { MDXProvider } from '@mdx-js/react'
import { Head } from 'tuono'
interface RootRouteProps { interface RootRouteProps {
children: ReactNode children: ReactNode
@@ -7,8 +8,17 @@ interface RootRouteProps {
export default function RootRoute({ children }: RootRouteProps): JSX.Element { export default function RootRoute({ children }: RootRouteProps): JSX.Element {
return ( return (
<main className="main"> <>
<MDXProvider components={{}}>{children}</MDXProvider> <Head>
</main> <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>
</>
) )
} }