Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extract
svg
icons in /icons
folder, reusing same icons `<M…
…oonIcon />` / `<SunIcon />` in blog from docs (#525) * chore: better icons * extract <XIcon /> * extract <MenuIcon /> * extract <Spinner />
- Loading branch information
1 parent
c380989
commit 94a8587
Showing
27 changed files
with
234 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"nextra-theme-docs": patch | ||
"nextra-theme-blog": patch | ||
--- | ||
|
||
chore: extract `svg` icons in `/icons` folder, reusing same icons `<MoonIcon />` / `<SunIcon />` in blog from docs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import nextra from 'nextra' | ||
|
||
const withNextra = nextra({ | ||
theme: 'nextra-theme-blog', | ||
themeConfig: './theme.config.jsx', | ||
unstable_staticImage: true | ||
}) | ||
|
||
export default withNextra({ | ||
reactStrictMode: true | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export default { | ||
footer: ( | ||
<small style={{ display: 'block', marginTop: '8rem' }}> | ||
<abbr | ||
title="This site and all its content are licensed under a Creative Commons Attribution-NonCommercial 4.0 International License." | ||
style={{ cursor: 'help' }} | ||
> | ||
CC BY-NC 4.0 | ||
</abbr>{' '} | ||
<time>{new Date().getFullYear()}</time> © Shu Ding. | ||
<a href="/feed.xml">RSS</a> | ||
<style jsx>{` | ||
a { | ||
float: right; | ||
} | ||
@media screen and (max-width: 480px) { | ||
article { | ||
padding-top: 2rem; | ||
padding-bottom: 4rem; | ||
} | ||
} | ||
`}</style> | ||
</small> | ||
), | ||
darkMode: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
import React from 'react' | ||
import React, { ComponentProps, ReactElement } from 'react' | ||
|
||
const ArrowRight = ({ childProps, ...props }: any) => { | ||
export function ArrowRightIcon(props: ComponentProps<'svg'>): ReactElement { | ||
return ( | ||
<svg fill="none" viewBox="0 0 24 24" stroke="currentColor" {...props}> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={2} | ||
strokeWidth="2" | ||
d="M9 5l7 7-7 7" | ||
{...(childProps || {})} | ||
/> | ||
</svg> | ||
) | ||
} | ||
|
||
export default ArrowRight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export * from './arrow-right' | ||
export * from './check' | ||
export * from './discord' | ||
export * from './github' | ||
export * from './globe' | ||
export * from './menu' | ||
export * from './moon' | ||
export * from './spinner' | ||
export * from './sun' | ||
export * from './x' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React, { ReactElement } from 'react' | ||
|
||
export function MenuIcon({ className }: { className?: string }): ReactElement { | ||
return ( | ||
<svg | ||
fill="none" | ||
width="24" | ||
height="24" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
className={className} | ||
> | ||
<g> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M4 6h16" | ||
/> | ||
</g> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M4 12h16" | ||
/> | ||
<g> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M4 18h16" | ||
/> | ||
</g> | ||
</svg> | ||
) | ||
} |
Oops, something went wrong.