feat: update content
This commit is contained in:
parent
5aef42e16f
commit
f667a9468d
34 changed files with 1014 additions and 5 deletions
54
components/icons/ArrowLeft.tsx
Normal file
54
components/icons/ArrowLeft.tsx
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
'use client'
|
||||
|
||||
import * as React from 'react'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import { ThemeContext } from '../../contexts'
|
||||
|
||||
const defaultColor = '#00C3A5'
|
||||
|
||||
const ArrowRight = ({ color, useTheme }: any) => {
|
||||
const { darkTheme } = useContext(ThemeContext)
|
||||
|
||||
const stroke = color || defaultColor
|
||||
|
||||
return (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="0.5em"
|
||||
width="0.5em"
|
||||
viewBox="0 0 20 20"
|
||||
style={{ marginRight: '0.5em' }}
|
||||
>
|
||||
<line
|
||||
x1="3"
|
||||
y1="10"
|
||||
x2="17"
|
||||
y2="10"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
<line
|
||||
x1="3"
|
||||
y1="10"
|
||||
x2="7"
|
||||
y2="15"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
<line
|
||||
x1="3"
|
||||
y1="10"
|
||||
x2="7"
|
||||
y2="5"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export default ArrowRight
|
||||
54
components/icons/ArrowRight.tsx
Normal file
54
components/icons/ArrowRight.tsx
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
'use client'
|
||||
|
||||
import * as React from 'react'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import { ThemeContext } from '../../contexts'
|
||||
|
||||
const defaultColor = '#00C3A5'
|
||||
|
||||
const ArrowRight = ({ color, useTheme }: any) => {
|
||||
const { darkTheme } = useContext(ThemeContext)
|
||||
|
||||
const stroke = color || defaultColor
|
||||
|
||||
return (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="0.5em"
|
||||
width="0.5em"
|
||||
viewBox="0 0 20 20"
|
||||
style={{ marginLeft: '0.5em' }}
|
||||
>
|
||||
<line
|
||||
x1="3"
|
||||
y1="10"
|
||||
x2="17"
|
||||
y2="10"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
<line
|
||||
x1="17"
|
||||
y1="10"
|
||||
x2="12"
|
||||
y2="5"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
<line
|
||||
x1="17"
|
||||
y1="10"
|
||||
x2="12"
|
||||
y2="15"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export default ArrowRight
|
||||
54
components/icons/ArrowUpRight.tsx
Normal file
54
components/icons/ArrowUpRight.tsx
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
'use client'
|
||||
|
||||
import * as React from 'react'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import { ThemeContext } from '../../contexts'
|
||||
|
||||
const defaultColor = '#00C3A5'
|
||||
|
||||
const ArrowUpRight = ({ color, useTheme }: any) => {
|
||||
const { darkTheme } = useContext(ThemeContext)
|
||||
|
||||
const stroke = color || defaultColor
|
||||
|
||||
return (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="0.5em"
|
||||
width="0.5em"
|
||||
viewBox="0 0 20 20"
|
||||
style={{ marginLeft: '0.5em' }}
|
||||
>
|
||||
<line
|
||||
x1="3"
|
||||
y1="17"
|
||||
x2="17"
|
||||
y2="3"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
<line
|
||||
x1="17"
|
||||
y1="3"
|
||||
x2="7"
|
||||
y2="3"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
<line
|
||||
x1="17"
|
||||
y1="3"
|
||||
x2="17"
|
||||
y2="12"
|
||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="3"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
}
|
||||
|
||||
export default ArrowUpRight
|
||||
31
components/icons/CheckIcon.tsx
Normal file
31
components/icons/CheckIcon.tsx
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import * as React from 'react'
|
||||
|
||||
const CheckIcon = ({ darkTheme }: any) => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="0.5em"
|
||||
width="0.5em"
|
||||
viewBox="0 0 20 20"
|
||||
>
|
||||
<line
|
||||
x1="7"
|
||||
y1="17"
|
||||
x2="17"
|
||||
y2="3"
|
||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="6"
|
||||
/>
|
||||
<line
|
||||
x1="7"
|
||||
y1="17"
|
||||
x2="3"
|
||||
y2="10"
|
||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="6"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
|
||||
export default CheckIcon
|
||||
40
components/icons/MenuIcon.tsx
Normal file
40
components/icons/MenuIcon.tsx
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import * as React from 'react'
|
||||
|
||||
const MenuIcon = ({ darkTheme }: any) => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="1.5em"
|
||||
width="1.5em"
|
||||
viewBox="0 0 100 100"
|
||||
>
|
||||
<line
|
||||
x1="10"
|
||||
y1="85"
|
||||
x2="90"
|
||||
y2="85"
|
||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="10"
|
||||
/>
|
||||
<line
|
||||
x1="10"
|
||||
y1="50"
|
||||
x2="90"
|
||||
y2="50"
|
||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="10"
|
||||
/>
|
||||
<line
|
||||
x1="10"
|
||||
y1="15"
|
||||
x2="90"
|
||||
y2="15"
|
||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
||||
strokeLinecap="round"
|
||||
strokeWidth="10"
|
||||
/>
|
||||
</svg>
|
||||
)
|
||||
|
||||
export default MenuIcon
|
||||
15
components/icons/ThemeIcon.tsx
Normal file
15
components/icons/ThemeIcon.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import * as React from 'react'
|
||||
|
||||
const ThemeIcon = ({ darkTheme }: any) => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="1.5em"
|
||||
width="1.5em"
|
||||
viewBox="0 0 100 100"
|
||||
>
|
||||
<circle cx="50" cy="50" r="40" fill={darkTheme ? '#F5F5F5' : '#0A0A0A'} />
|
||||
<circle cx="60" cy="50" r="37" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
||||
</svg>
|
||||
)
|
||||
|
||||
export default ThemeIcon
|
||||
17
components/icons/UserIcon.tsx
Normal file
17
components/icons/UserIcon.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import * as React from 'react'
|
||||
|
||||
const UserIcon = ({ darkTheme }: any) => (
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
height="1.5em"
|
||||
width="1.5em"
|
||||
viewBox="0 0 100 100"
|
||||
>
|
||||
<circle cx="50" cy="40" r="30" fill={darkTheme ? '#FFFFFF' : '#111111'} />
|
||||
<circle cx="48" cy="40" r="22" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
||||
<circle cx="50" cy="105" r="40" fill={darkTheme ? '#FFFFFF' : '#111111'} />
|
||||
<circle cx="48" cy="105" r="32" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
||||
</svg>
|
||||
)
|
||||
|
||||
export default UserIcon
|
||||
7
components/icons/index.ts
Normal file
7
components/icons/index.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
export { default as ArrowLeft } from './ArrowLeft'
|
||||
export { default as ArrowRight } from './ArrowRight'
|
||||
export { default as ArrowUpRight } from './ArrowUpRight'
|
||||
export { default as CheckIcon } from './CheckIcon'
|
||||
export { default as MenuIcon } from './MenuIcon'
|
||||
export { default as ThemeIcon } from './ThemeIcon'
|
||||
export { default as UserIcon } from './UserIcon'
|
||||
Loading…
Add table
Add a link
Reference in a new issue