fix build
This commit is contained in:
parent
c0ee8a4a11
commit
71590024e7
28 changed files with 943 additions and 2 deletions
24
components/Background.tsx
Normal file
24
components/Background.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
'use client'
|
||||
|
||||
import Image from 'next/image'
|
||||
import * as React from 'react'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import darkBackground from '../assets/images/chora_dark.png'
|
||||
import lightBackground from '../assets/images/chora_light.png'
|
||||
import { ThemeContext } from '../contexts'
|
||||
|
||||
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 />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Background
|
||||
Loading…
Add table
Add a link
Reference in a new issue