use chora web
This commit is contained in:
parent
e83fdac27c
commit
d5c629db4a
12 changed files with 102 additions and 346 deletions
|
|
@ -1,21 +0,0 @@
|
|||
'use client'
|
||||
|
||||
import { ThemeContext } from 'chora/contexts'
|
||||
import darkBackground from 'chora/assets/images/chora_dark.png'
|
||||
import lightBackground from 'chora/assets/images/chora_light.png'
|
||||
import Image from 'next/image'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import styles from './Background.module.css'
|
||||
|
||||
const Background = () => {
|
||||
const { darkTheme } = useContext(ThemeContext)
|
||||
|
||||
return (
|
||||
<div className={styles.background}>
|
||||
<Image alt="chora" src={darkTheme ? darkBackground : lightBackground} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Background
|
||||
Loading…
Add table
Add a link
Reference in a new issue