fix and format
This commit is contained in:
parent
818f984f7b
commit
f9b77511d2
17 changed files with 206 additions and 202 deletions
|
|
@ -1,21 +1,21 @@
|
|||
"use client";
|
||||
'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 { 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";
|
||||
import styles from './Background.module.css'
|
||||
|
||||
const Background = () => {
|
||||
const { darkTheme } = useContext(ThemeContext);
|
||||
const { darkTheme } = useContext(ThemeContext)
|
||||
|
||||
return (
|
||||
<div className={styles.background}>
|
||||
<Image alt="chora" src={darkTheme ? darkBackground : lightBackground} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default Background;
|
||||
export default Background
|
||||
|
|
|
|||
|
|
@ -1,73 +1,73 @@
|
|||
"use client";
|
||||
'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 Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { useContext } from "react";
|
||||
import { ThemeContext } from '@contexts/ThemeContext'
|
||||
import choraLogoDark from '../public/images/chora_dark_small.png'
|
||||
import choraLogoLight from '../public/images/chora_light_small.png'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import styles from "./Footer.module.css";
|
||||
import styles from './Footer.module.css'
|
||||
|
||||
const Footer = () => {
|
||||
const { darkTheme } = useContext(ThemeContext);
|
||||
const { darkTheme } = useContext(ThemeContext)
|
||||
|
||||
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} />
|
||||
<h4>{"© 2023 Chora Studio, LLC"}</h4>
|
||||
<h4>{'© 2023 Chora Studio, LLC'}</h4>
|
||||
</div>
|
||||
<div className={styles.list}>
|
||||
<h3>{"chora studio"}</h3>
|
||||
<h3>{'chora studio'}</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="https://blog.chora.studio" target="_blank">
|
||||
{"blog ↗"}
|
||||
<Link href="https://chora.blog" target="_blank">
|
||||
{'blog ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/products">{"products"}</Link>
|
||||
<Link href="/products">{'products'}</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/solutions">{"solutions"}</Link>
|
||||
<Link href="/solutions">{'solutions'}</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/validator">{"validator"}</Link>
|
||||
<Link href="/validator">{'validator'}</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className={styles.list}>
|
||||
<h3>{"chora protocol"}</h3>
|
||||
<h3>{'chora protocol'}</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="https://chora.io" target="_blank">
|
||||
{"chora applications ↗"}
|
||||
{'chora applications ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="https://docs.chora.io" target="_blank">
|
||||
{"chora documentation ↗"}
|
||||
{'chora documentation ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="https://github.com/choraio" target="_blank">
|
||||
{"chora repositories ↗"}
|
||||
{'chora repositories ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div className={styles.list}>
|
||||
<h3>{"chora validator"}</h3>
|
||||
<h3>{'chora validator'}</h3>
|
||||
<ul>
|
||||
<li>
|
||||
<Link
|
||||
href="https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e"
|
||||
target="_blank"
|
||||
>
|
||||
{"regen ↗"}
|
||||
{'regen ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -75,7 +75,7 @@ const Footer = () => {
|
|||
href="https://chora.io/scan/regen-redwood-1"
|
||||
target="_blank"
|
||||
>
|
||||
{"regen-redwood ↗"}
|
||||
{'regen-redwood ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -83,14 +83,14 @@ const Footer = () => {
|
|||
href="https://chora.io/scan/chora-testnet-1"
|
||||
target="_blank"
|
||||
>
|
||||
{"chora-testnet ↗"}
|
||||
{'chora-testnet ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default Footer;
|
||||
export default Footer
|
||||
|
|
|
|||
|
|
@ -1,29 +1,29 @@
|
|||
"use client";
|
||||
'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 Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { useContext } from "react";
|
||||
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 Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { useContext } from 'react'
|
||||
|
||||
import styles from "./Header.module.css";
|
||||
import styles from './Header.module.css'
|
||||
|
||||
const Header = () => {
|
||||
const { darkTheme, setDarkTheme } = useContext(ThemeContext);
|
||||
const { darkTheme, setDarkTheme } = useContext(ThemeContext)
|
||||
|
||||
const toggleTheme = () => {
|
||||
if (darkTheme) {
|
||||
setDarkTheme(false);
|
||||
setDarkTheme(false)
|
||||
} else {
|
||||
setDarkTheme(true);
|
||||
setDarkTheme(true)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
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="/">
|
||||
|
|
@ -32,26 +32,26 @@ const Header = () => {
|
|||
src={darkTheme ? choraLogoDark : choraLogoLight}
|
||||
/>
|
||||
<div>
|
||||
{"chora "}
|
||||
<span style={{ opacity: "0.75" }}>{"studio"}</span>
|
||||
{'chora '}
|
||||
<span style={{ opacity: '0.75' }}>{'studio'}</span>
|
||||
</div>
|
||||
</Link>
|
||||
</div>
|
||||
<div className={styles.menu}>
|
||||
<ul>
|
||||
<li>
|
||||
<Link href="/products">{"products"}</Link>
|
||||
<Link href="/products">{'products'}</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/solutions">{"solutions"}</Link>
|
||||
<Link href="/solutions">{'solutions'}</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link href="/validator">{"validator"}</Link>
|
||||
<Link href="/validator">{'validator'}</Link>
|
||||
</li>
|
||||
<li className={styles.divider}>{"|"}</li>
|
||||
<li className={styles.divider}>{'|'}</li>
|
||||
<li>
|
||||
<Link href="https://blog.chora.studio" target="_blank">
|
||||
{"blog ↗"}
|
||||
<Link href="https://chora.blog" target="_blank">
|
||||
{'blog ↗'}
|
||||
</Link>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
@ -59,7 +59,7 @@ const Header = () => {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
)
|
||||
}
|
||||
|
||||
export default Header;
|
||||
export default Header
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import * as React from "react";
|
||||
import * as React from 'react'
|
||||
|
||||
import styles from "./ThemeButton.module.css";
|
||||
import styles from './ThemeButton.module.css'
|
||||
|
||||
const ThemeButton = ({ darkTheme, toggleTheme }: any) => (
|
||||
<button className={styles.button} onClick={toggleTheme}>
|
||||
|
|
@ -10,10 +10,10 @@ const ThemeButton = ({ darkTheme, toggleTheme }: any) => (
|
|||
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"} />
|
||||
<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;
|
||||
export default ThemeButton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue