Browse Source

replaced svg attrs

pull/3/head
remorses 1 year ago
parent
commit
d1ee88e06d
2 changed files with 36 additions and 28 deletions
  1. +3
    -3
      landing-blocks/src/NavBar.tsx
  2. +33
    -25
      website/pages/_app.tsx

+ 3
- 3
landing-blocks/src/NavBar.tsx View File

@ -117,9 +117,9 @@ const Menu = (props) => {
viewBox='0 0 24 24'
fill='none'
stroke='currentColor'
stroke-width='2'
stroke-linecap='round'
stroke-linejoin='round'
strokeWidth='2'
strokeLinejoin='round'
strokeLinecap='round'
{...props}
>
<line x1='3' y1='12' x2='21' y2='12'></line>

+ 33
- 25
website/pages/_app.tsx View File

@ -6,34 +6,42 @@ import { Box, Stack } from 'layout-kit-react'
import NextLink from 'next/link'
import React from 'react'
import { LogoBlack, LogoIcon, LogoIconBlack, LogoWhite } from '../svgs'
import { useRouter } from 'next/router'
export default function App(props) {
const { Component, pageProps } = props
return (
<DokzProvider
docsRootPath='pages/docs'
headerItems={[
...headingNavLinks,
<GithubLink key='0' url='https://github.com/remorses/dokz' />,
// <ColorModeSwitch key='1' />,
]}
headerLogo={<HeadingLogoIcon width='36px' opacity={0.8} />}
mdxComponents={{
img: (p) => <img {...p} />,
a: (p) => <p {...p} />,
}}
sidebarOrdering={{
// sidebar ordering
demos: false,
docs: {
index: true,
components: { hero: true },
},
}}
>
<Component {...pageProps} />
</DokzProvider>
)
const { pathname } = useRouter()
if (pathname.startsWith('/docs')) {
return (
<DokzProvider
docsRootPath='pages/docs'
headerItems={[
...headingNavLinks,
<GithubLink
key='0'
url='https://github.com/remorses/dokz'
/>,
// <ColorModeSwitch key='1' />,
]}
headerLogo={<HeadingLogoIcon width='36px' opacity={0.8} />}
mdxComponents={{
img: (p) => <img {...p} />,
a: (p) => <p {...p} />,
}}
sidebarOrdering={{
// sidebar ordering
demos: false,
docs: {
index: true,
components: { hero: true },
},
}}
>
<Component {...pageProps} />
</DokzProvider>
)
}
return <Component {...pageProps} />
}
export const headingNavLinks = [

Loading…
Cancel
Save