diff --git a/app/globals.css b/app/globals.css index f2b9a38..61fe348 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,63 +1,63 @@ @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: normal; font-weight: normal; - src: url('../public/font/Ubuntu-Regular.ttf'); + src: url("../public/font/Ubuntu-Regular.ttf"); } @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: italic; font-weight: normal; - src: url('../public/font/Ubuntu-Italic.ttf'); + src: url("../public/font/Ubuntu-Italic.ttf"); } @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: normal; font-weight: bold; - src: url('../public/font/Ubuntu-Bold.ttf'); + src: url("../public/font/Ubuntu-Bold.ttf"); } @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: italic; font-weight: bold; - src: url('../public/font/Ubuntu-BoldItalic.ttf'); + src: url("../public/font/Ubuntu-BoldItalic.ttf"); } @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: normal; font-weight: 300; - src: url('../public/font/Ubuntu-Light.ttf'); + src: url("../public/font/Ubuntu-Light.ttf"); } @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: italic; font-weight: 300; - src: url('../public/font/Ubuntu-LightItalic.ttf'); + src: url("../public/font/Ubuntu-LightItalic.ttf"); } @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: normal; font-weight: 500; - src: url('../public/font/Ubuntu-Medium.ttf'); + src: url("../public/font/Ubuntu-Medium.ttf"); } @font-face { - font-family: 'Ubuntu'; + font-family: "Ubuntu"; font-style: italic; font-weight: 500; - src: url('../public/font/Ubuntu-MediumItalic.ttf'); + src: url("../public/font/Ubuntu-MediumItalic.ttf"); } :root { --color-error: rgb(245, 45, 45); --color-theme: rgb(0, 195, 165); - --font-family: 'Ubuntu', sans-serif; + --font-family: "Ubuntu", sans-serif; --footer-height: 320px; --header-height: 80px; --sidebar-width: 240px; @@ -104,7 +104,11 @@ main { color: var(--color-text); } -h1, h2, h3, h4, h5 { +h1, +h2, +h3, +h4, +h5 { font-weight: 400; } @@ -112,7 +116,8 @@ p { line-height: 1.75; } -a, a:active { +a, +a:active { color: var(--color-theme); font-weight: 400; text-decoration: none; diff --git a/app/layout.tsx b/app/layout.tsx index dd1f8c4..c1c5312 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,9 +1,9 @@ -import { ThemeContextProvider } from '@contexts/ThemeContext' +import { ThemeContextProvider } from "@contexts/ThemeContext"; -import Footer from '@components/Footer' -import Header from '@components/Header' +import Footer from "@components/Footer"; +import Header from "@components/Header"; -import './globals.css' +import "./globals.css"; const Layout = ({ children }: any) => ( @@ -17,6 +17,6 @@ const Layout = ({ children }: any) => ( -) +); -export default Layout +export default Layout; diff --git a/app/not-found.tsx b/app/not-found.tsx index eda36ac..ff61603 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -1,18 +1,18 @@ -import { Metadata } from 'next' +import { Metadata } from "next"; -import styles from './not-found.module.css' +import styles from "./not-found.module.css"; export const metadata: Metadata = { - title: '404 | a placeless place', -} + title: "404 | a placeless place", +}; const NotFoundPage = () => (
-

{'404'}

-

{'a placeless place'}

+

{"404"}

+

{"a placeless place"}

-) +); -export default NotFoundPage +export default NotFoundPage; diff --git a/app/page.tsx b/app/page.tsx index 3d66126..fee4dc1 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,12 +1,12 @@ -import { Metadata } from 'next' +import { Metadata } from "next"; -import Background from '@components/Background' +import Background from "@components/Background"; -import styles from './page.module.css' +import styles from "./page.module.css"; export const metadata: Metadata = { - title: 'chora studio | research and development', -} + title: "chora studio | research and development", +}; const HomePage = () => { return ( @@ -14,58 +14,62 @@ const HomePage = () => {
-

{'chora '}{'studio'}

+

+ {"chora "} + {"studio"} +

- {'what is the role of technology in ecological regeneration?'} + + {"what is the role of technology in ecological regeneration?"} +

-

{'software research and development'}

+

{"software research and development"}

-

{'products'}

+

{"products"}

- { - 'Chora Studio is stewarding ' - } + {"Chora Studio is stewarding "} - {'Chora Protocol'} - - {' - distributed ledger technology for commons governance and ecological regeneration.'} -

-

- - {'learn more ⇾'} - -

-

{'solutions'}

-

- {'Chora Studio offers software research and development consulting services to clients building infrastructure for climate solutions.'} -

-

- - {'learn more ⇾'} - -

-

{'validator'}

-

- {'Chora Studio operates Chora Validator on '} - - {'Regen'} + {"Chora Protocol"} { - ' and multiple test networks including Regen Redwood and Chora Testnet.' + " - distributed ledger technology for commons governance and ecological regeneration." }

- - {'learn more ⇾'} + {"learn more ⇾"} +

+

{"solutions"}

+

+ { + "Chora Studio offers software research and development consulting services to clients building infrastructure for climate solutions." + } +

+

+ {"learn more ⇾"} +

+

{"validator"}

+

+ {"Chora Studio operates Chora Validator on "} + + {"Regen"} + { + " and multiple test networks including Regen Redwood and Chora Testnet." + } +

+

+ {"learn more ⇾"}

- ) -} + ); +}; -export default HomePage +export default HomePage; diff --git a/app/products/page.tsx b/app/products/page.tsx index 0055a0c..e11fa9b 100644 --- a/app/products/page.tsx +++ b/app/products/page.tsx @@ -1,30 +1,30 @@ -import { Metadata } from 'next' +import { Metadata } from "next"; -import styles from './page.module.css' +import styles from "./page.module.css"; export const metadata: Metadata = { - title: 'chora studio | products', -} + title: "chora studio | products", +}; const ProductsPage = () => { return (
-

{'products'}

+

{"products"}

- { - 'Chora Studio is stewarding ' - } + {"Chora Studio is stewarding "} - {'Chora Protocol'} + {"Chora Protocol"} - {' - distributed ledger technology for commons governance and ecological regeneration.'} + { + " - distributed ledger technology for commons governance and ecological regeneration." + }

- ) -} + ); +}; -export default ProductsPage +export default ProductsPage; diff --git a/app/solutions/page.tsx b/app/solutions/page.tsx index 8ce0eea..d752bdb 100644 --- a/app/solutions/page.tsx +++ b/app/solutions/page.tsx @@ -1,24 +1,26 @@ -import { Metadata } from 'next' +import { Metadata } from "next"; -import styles from './page.module.css' +import styles from "./page.module.css"; export const metadata: Metadata = { - title: 'chora studio | solutions', -} + title: "chora studio | solutions", +}; const SolutionsPage = () => { return (
-

{'solutions'}

+

{"solutions"}

- {'Chora Studio offers software research and development consulting services to clients building infrastructure for climate solutions.'} + { + "Chora Studio offers software research and development consulting services to clients building infrastructure for climate solutions." + }

- ) -} + ); +}; -export default SolutionsPage +export default SolutionsPage; diff --git a/app/validator/page.tsx b/app/validator/page.tsx index c985044..5a662ad 100644 --- a/app/validator/page.tsx +++ b/app/validator/page.tsx @@ -1,70 +1,73 @@ -import { Metadata } from 'next' +import { Metadata } from "next"; -import styles from './page.module.css' +import styles from "./page.module.css"; export const metadata: Metadata = { - title: 'chora studio | validator', -} + title: "chora studio | validator", +}; const regenLink = - 'https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e' + "https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e"; const ValidatorPage = () => { return (
-

{'validator'}

+

{"validator"}

- {'Chora Studio operates Chora Validator on '} + {"Chora Studio operates Chora Validator on "} - {'Regen'} + {"Regen"} { - ' and multiple test networks including Regen Redwood and Chora Testnet.' + " and multiple test networks including Regen Redwood and Chora Testnet." }

-

{'what is a validator?'}

+

{"what is a validator?"}

{ - 'In the context of distributed ledger technology, a validator is a node in a network responsible for verifying and producing state transitions. Validators play a critical role in ensuring the security and integrity of a network. ' + "In the context of distributed ledger technology, a validator is a node in a network responsible for verifying and producing state transitions. Validators play a critical role in ensuring the security and integrity of a network. " }

{ - 'Chora Validator is currently operating on proof-of-stake blockchains in the Cosmos ecosystem. On proof-of-stake networks, validators stake tokens (i.e. lock up their tokens in the network) and then earn rewards for successfully verifying and producing blocks. Validators are also penalized for downtime or acting maliciously. When a validator is penalized, a portion of the staked tokens are slashed (i.e. destroyed and cannot be recovered).' + "Chora Validator is currently operating on proof-of-stake blockchains in the Cosmos ecosystem. On proof-of-stake networks, validators stake tokens (i.e. lock up their tokens in the network) and then earn rewards for successfully verifying and producing blocks. Validators are also penalized for downtime or acting maliciously. When a validator is penalized, a portion of the staked tokens are slashed (i.e. destroyed and cannot be recovered)." }

-

- {'In the Cosmos ecosystem, token holders stake tokens with validators to earn rewards alongside validators. When a validator is penalized for downtime or acting maliciously, the token holders are also penalized, i.e. a portion of the staked tokens from each account staking with the validator is slashed. Token holders are therefore incentivized to stake tokens with validators they trust, which in turn reduces the risk of lost assets and helps to ensure the security and integrity of the network.' - } -

-

{'what about governance?'}

{ - 'In addition to verifying and producing blocks, validators on proof-of-stake networks in the Cosmos ecosystem also act as representatives in network governance. When staking with a validator in the Cosmos ecosystem, token holders are also delegating their voting power (i.e. one token, one vote) to the validator. Token holders have the option to cancel out their delegated votes by voting independently. If a token holder does not intend to vote on every governance proposal independently, they should stake with validators that they think will best represent their interests.' + "In the Cosmos ecosystem, token holders stake tokens with validators to earn rewards alongside validators. When a validator is penalized for downtime or acting maliciously, the token holders are also penalized, i.e. a portion of the staked tokens from each account staking with the validator is slashed. Token holders are therefore incentivized to stake tokens with validators they trust, which in turn reduces the risk of lost assets and helps to ensure the security and integrity of the network." }

-

{'what about other services?'}

+

{"what about governance?"}

{ - 'Although not required, validators (or companies running validators) often provide additional tools and services as public goods for the benefit of the network. For example, some may run additional infrastructure such as full nodes, archive nodes, relayers, oracle services, or a testnet validator on the corresponding test network, some may contribute to designing, building, or maintaining software, some may organize working groups and publish their research, etc. Token holders may want to consider staking with validators that bring additional and diverse forms of value to the network.' + "In addition to verifying and producing blocks, validators on proof-of-stake networks in the Cosmos ecosystem also act as representatives in network governance. When staking with a validator in the Cosmos ecosystem, token holders are also delegating their voting power (i.e. one token, one vote) to the validator. Token holders have the option to cancel out their delegated votes by voting independently. If a token holder does not intend to vote on every governance proposal independently, they should stake with validators they think will best represent their interests." }

-

{'why choose chora validator?'}

-

- {'Chora Validator is committed to ensuring the security and integrity of every network that Chora Validator operates on. Chora Validator is operated by a team of senior software engineers with more than two years of experience building, maintaining, and testing software within Cosmos ecosystem.'} -

-

{'Regen'}

+

{"what about other services?"}

{ - 'Chora Validator is running a validator node and a full node with public API endpoints. Chora Validator is also running a testnet validator node on Regen Redwood (the stable test network for Regen). Chora Validator is committed to offsetting energy costs with carbon credits issued on Regen.' + "Although not required, validators (or companies running validators) often provide additional tools and services as public goods for the benefit of the network. For example, some may run additional infrastructure such as full nodes, archive nodes, relayers, oracle services, or a testnet validator on the corresponding test network, some may contribute to designing, building, or maintaining software, some may organize working groups and publish their research, etc. Token holders may want to consider staking with validators that bring additional and diverse forms of value to the network." + } +

+

{"why choose chora validator?"}

+

+ { + "Chora Validator is committed to ensuring the security and integrity of every network that Chora Validator operates on. Chora Validator is operated by senior software engineers with more than two years of experience building, maintaining, and testing software within the Cosmos ecosystem." + } +

+

{"regen"}

+

+ { + "Chora Validator is running a validator node and a full node with public API endpoints. Chora Validator is also running a testnet validator node on Regen Redwood (the stable test network for Regen). Chora Validator is committed to offsetting energy costs with carbon credits issued on Regen." }

- ) -} + ); +}; -export default ValidatorPage +export default ValidatorPage; diff --git a/bun.lockb b/bun.lockb index 39bf8b6..0ba8f4a 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/Background.tsx b/components/Background.tsx index 6274ae1..6542707 100644 --- a/components/Background.tsx +++ b/components/Background.tsx @@ -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 (
chora
- ) -} + ); +}; -export default Background +export default Background; diff --git a/components/Footer.tsx b/components/Footer.tsx index 2c3823c..5bea994 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,93 +1,96 @@ -'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 (
-
{darkTheme.toString()}
+
{darkTheme.toString()}
chora -

{'© 2023 Chora Studio, LLC'}

+

{"© 2023 Chora Studio, LLC"}

-

{'chora studio'}

+

{"chora studio"}

  • - {'blog ↗'} + {"blog ↗"}
  • - - {'products'} - + {"products"}
  • - - {'solutions'} - + {"solutions"}
  • - - {'validator'} - + {"validator"}
-

{'chora protocol'}

+

{"chora protocol"}

  • - {'chora applications ↗'} + {"chora applications ↗"}
  • - {'chora documentation ↗'} + {"chora documentation ↗"}
  • - {'chora repositories ↗'} + {"chora repositories ↗"}
-

{'chora validator'}

+

{"chora validator"}

  • - - {'regen ↗'} + + {"regen ↗"}
  • - - {'regen-redwood ↗'} + + {"regen-redwood ↗"}
  • - - {'chora-testnet ↗'} + + {"chora-testnet ↗"}
- ) -} + ); +}; -export default Footer +export default Footer; diff --git a/components/Header.tsx b/components/Header.tsx index 6736301..de5c5f3 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -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 (
-
{darkTheme.toString()}
+
{darkTheme.toString()}
@@ -31,32 +31,35 @@ const Header = () => { alt="chora studio" src={darkTheme ? choraLogoDark : choraLogoLight} /> -
{'chora '}{'studio'}
+
+ {"chora "} + {"studio"} +
-
    -
  • - {'products'} -
  • -
  • - {'solutions'} -
  • -
  • - {'validator'} -
  • -
  • {'|'}
  • -
  • - - {'blog ↗'} - -
  • -
+
    +
  • + {"products"} +
  • +
  • + {"solutions"} +
  • +
  • + {"validator"} +
  • +
  • {"|"}
  • +
  • + + {"blog ↗"} + +
  • +
- ) -} + ); +}; -export default Header +export default Header; diff --git a/components/ThemeButton.tsx b/components/ThemeButton.tsx index 52e4e87..81e5aae 100644 --- a/components/ThemeButton.tsx +++ b/components/ThemeButton.tsx @@ -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) => ( -) +); -export default ThemeButton +export default ThemeButton; diff --git a/contexts/ThemeContext.tsx b/contexts/ThemeContext.tsx index 3f1ee63..dda738e 100644 --- a/contexts/ThemeContext.tsx +++ b/contexts/ThemeContext.tsx @@ -1,45 +1,45 @@ -'use client' +"use client"; -import * as React from 'react' -import { createContext, useEffect, useState } from 'react' +import * as React from "react"; +import { createContext, useEffect, useState } from "react"; -export const cachedDarkKey = 'chora-web-dark' +export const cachedDarkKey = "chora-web-dark"; const initDarkTheme = () => { - let initDarkTheme = false + let initDarkTheme = false; if ( - typeof localStorage !== 'undefined' && + typeof localStorage !== "undefined" && localStorage.getItem(cachedDarkKey) ) { - initDarkTheme = localStorage.getItem(cachedDarkKey) === 'true' - } else if (typeof window !== 'undefined') { - initDarkTheme = window.matchMedia('(prefers-color-scheme: dark)').matches + initDarkTheme = localStorage.getItem(cachedDarkKey) === "true"; + } else if (typeof window !== "undefined") { + initDarkTheme = window.matchMedia("(prefers-color-scheme: dark)").matches; } - return initDarkTheme -} + return initDarkTheme; +}; -const ThemeContext = createContext({}) +const ThemeContext = createContext({}); const ThemeContextProvider = (props: any) => { - const [darkTheme, setDarkTheme] = useState(initDarkTheme()) + const [darkTheme, setDarkTheme] = useState(initDarkTheme()); useEffect(() => { - if (typeof window !== 'undefined' && typeof localStorage !== 'undefined') { - const root = window.document.documentElement + if (typeof window !== "undefined" && typeof localStorage !== "undefined") { + const root = window.document.documentElement; if (darkTheme) { - root.classList.add('dark-theme') - root.style.backgroundColor = '#161616' // --background-secondary (dark-theme) + root.classList.add("dark-theme"); + root.style.backgroundColor = "#161616"; // --background-secondary (dark-theme) } else { - root.classList.remove('dark-theme') - root.style.backgroundColor = '#FAFAFA' // --background-secondary (light-theme) + root.classList.remove("dark-theme"); + root.style.backgroundColor = "#FAFAFA"; // --background-secondary (light-theme) } - localStorage.setItem(cachedDarkKey, darkTheme ? 'true' : 'false') + localStorage.setItem(cachedDarkKey, darkTheme ? "true" : "false"); } - }, [darkTheme]) + }, [darkTheme]); return ( { > {props.children} - ) -} + ); +}; -export { ThemeContext, ThemeContextProvider } +export { ThemeContext, ThemeContextProvider }; diff --git a/module.d.ts b/module.d.ts index 6c344ed..1eabbb4 100644 --- a/module.d.ts +++ b/module.d.ts @@ -1 +1 @@ -declare module '*.module.css' +declare module "*.module.css"; diff --git a/next.config.js b/next.config.js index 681c906..a3efa95 100644 --- a/next.config.js +++ b/next.config.js @@ -1,8 +1,8 @@ /** @type {import('next').NextConfig} */ const nextConfig = { - distDir: 'dist', - output: 'export', - images: { unoptimized: true } -} + distDir: "dist", + output: "export", + images: { unoptimized: true }, +}; -module.exports = nextConfig +module.exports = nextConfig; diff --git a/postcss.config.js b/postcss.config.js index 6e41d95..4df9d3b 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -3,4 +3,4 @@ module.exports = { autoprefixer: {}, tailwindcss: {}, }, -} +}; diff --git a/tailwind.config.ts b/tailwind.config.ts index 9a4e1ea..2b2c90f 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -1,3 +1,3 @@ module.exports = { - content: ['./app/**/*.{js,ts,jsx,tsx}'], -} + content: ["./app/**/*.{js,ts,jsx,tsx}"], +}; diff --git a/tsconfig.json b/tsconfig.json index 4645354..9ef6d6a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,11 +2,7 @@ "compilerOptions": { "baseUrl": "./", "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -36,7 +32,5 @@ ".next/types/**/*.ts", "dist/types/**/*.ts" ], - "exclude": [ - "node_modules" - ] + "exclude": ["node_modules"] }