init commit
This commit is contained in:
commit
7a46269eff
55 changed files with 1423 additions and 0 deletions
21
components/Background.tsx
Normal file
21
components/Background.tsx
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
'use client'
|
||||
|
||||
import { ThemeContext } from '@contexts/ThemeContext'
|
||||
import darkBackground from '../public/images/chora_dark.png'
|
||||
import lightBackground from '../public/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