use chora web
This commit is contained in:
parent
2f54c32808
commit
e83fdac27c
34 changed files with 25 additions and 338 deletions
|
|
@ -1,8 +1,8 @@
|
|||
'use client'
|
||||
|
||||
import { ThemeContext } from '@contexts/ThemeContext'
|
||||
import darkBackground from '../public/images/chora_dark.png'
|
||||
import lightBackground from '../public/images/chora_light.png'
|
||||
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'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
'use client'
|
||||
|
||||
import { ThemeContext } from '@contexts/ThemeContext'
|
||||
import choraLogoDark from '../public/images/chora_dark_small.png'
|
||||
import choraLogoLight from '../public/images/chora_light_small.png'
|
||||
import { ThemeContext } from 'chora/contexts'
|
||||
import choraLogoDark from 'chora/assets//images/chora_dark_small.png'
|
||||
import choraLogoLight from 'chora/assets//images/chora_light_small.png'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { useContext } from 'react'
|
||||
|
|
@ -14,7 +14,7 @@ const Footer = () => {
|
|||
|
||||
return (
|
||||
<div className={styles.footer}>
|
||||
<div style={{ display: 'none' }}>{darkTheme.toString()}</div>
|
||||
<div style={{ display: 'none' }}>{darkTheme?.toString()}</div>
|
||||
<div>
|
||||
<div className={styles.title}>
|
||||
<Image alt="chora" src={darkTheme ? choraLogoDark : choraLogoLight} />
|
||||
|
|
|
|||
|
|
@ -16,6 +16,10 @@
|
|||
margin: 0 1em;
|
||||
}
|
||||
|
||||
.header button {
|
||||
background: none;
|
||||
}
|
||||
|
||||
/* title */
|
||||
|
||||
.title {
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
'use client'
|
||||
|
||||
import { ThemeContext } from '@contexts/ThemeContext'
|
||||
import choraLogoDark from '../public/images/chora_dark_small.png'
|
||||
import choraLogoLight from '../public/images/chora_light_small.png'
|
||||
import ThemeButton from '@components/ThemeButton'
|
||||
import { ThemeContext } from 'chora/contexts'
|
||||
import ThemeButton from 'chora/components/ThemeButton'
|
||||
import choraLogoDark from 'chora/assets/images/chora_dark_small.png'
|
||||
import choraLogoLight from 'chora/assets/images/chora_light_small.png'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { useContext } from 'react'
|
||||
|
|
@ -23,7 +23,7 @@ const Header = () => {
|
|||
|
||||
return (
|
||||
<div className={styles.header}>
|
||||
<div style={{ display: 'none' }}>{darkTheme.toString()}</div>
|
||||
<div style={{ display: 'none' }}>{darkTheme?.toString()}</div>
|
||||
<div>
|
||||
<div className={styles.title}>
|
||||
<Link href="/">
|
||||
|
|
|
|||
|
|
@ -1,8 +0,0 @@
|
|||
.button {
|
||||
align-items: center;
|
||||
background: none;
|
||||
display: inline-flex;
|
||||
height: var(--header-height);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
import * as React from 'react'
|
||||
|
||||
import styles from './ThemeButton.module.css'
|
||||
|
||||
const ThemeButton = ({ darkTheme, toggleTheme }: any) => (
|
||||
<button className={styles.button} onClick={toggleTheme}>
|
||||
<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="35" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
||||
</svg>
|
||||
</button>
|
||||
)
|
||||
|
||||
export default ThemeButton
|
||||
Loading…
Add table
Add a link
Reference in a new issue