use chora web

This commit is contained in:
ryanchristo 2023-11-09 21:38:05 -08:00
parent e83fdac27c
commit d5c629db4a
12 changed files with 102 additions and 346 deletions

View file

@ -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