init commit
24
.eslintrc.json
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
{
|
||||||
|
"plugins": ["react"],
|
||||||
|
"extends": [
|
||||||
|
"eslint:recommended",
|
||||||
|
"next/core-web-vitals",
|
||||||
|
"plugin:@typescript-eslint/recommended"
|
||||||
|
],
|
||||||
|
"parser": "@typescript-eslint/parser",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": "latest",
|
||||||
|
"sourceType": "module",
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"@typescript-eslint/no-explicit-any": "off"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"react": {
|
||||||
|
"version": "detect"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
4
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
.DS_Store
|
||||||
|
.idea
|
||||||
|
dist
|
||||||
|
node_modules
|
||||||
3
README.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# www
|
||||||
|
|
||||||
|
chora studio website
|
||||||
BIN
app/favicon.ico
Normal file
|
After Width: | Height: | Size: 137 KiB |
140
app/globals.css
Normal file
|
|
@ -0,0 +1,140 @@
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
src: url('../public/font/Ubuntu-Regular.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: normal;
|
||||||
|
src: url('../public/font/Ubuntu-Italic.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: bold;
|
||||||
|
src: url('../public/font/Ubuntu-Bold.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: bold;
|
||||||
|
src: url('../public/font/Ubuntu-BoldItalic.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url('../public/font/Ubuntu-Light.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 300;
|
||||||
|
src: url('../public/font/Ubuntu-LightItalic.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 500;
|
||||||
|
src: url('../public/font/Ubuntu-Medium.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Ubuntu';
|
||||||
|
font-style: italic;
|
||||||
|
font-weight: 500;
|
||||||
|
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;
|
||||||
|
--footer-height: 320px;
|
||||||
|
--header-height: 80px;
|
||||||
|
--sidebar-width: 240px;
|
||||||
|
--transition: 0.25s;
|
||||||
|
|
||||||
|
/* light theme */
|
||||||
|
--background-primary: rgb(255, 255, 255);
|
||||||
|
--background-primary-transparent: rgba(255, 255, 255, 0.98);
|
||||||
|
--background-secondary: rgb(250, 250, 250);
|
||||||
|
--background-secondary-transparent: rgba(250, 250, 250, 0.98);
|
||||||
|
--box-shadow: 0 0 4px rgb(245, 245, 245);
|
||||||
|
--box-shadow-color: rgb(245, 245, 245);
|
||||||
|
--color-text: rgb(10, 10, 10);
|
||||||
|
--color-text-placeholder: rgba(10, 10, 10, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark-theme {
|
||||||
|
--background-primary: rgb(17, 17, 17);
|
||||||
|
--background-primary-transparent: rgba(17, 17, 17, 0.98);
|
||||||
|
--background-secondary: rgb(22, 22, 22);
|
||||||
|
--background-secondary-transparent: rgba(22, 22, 22, 0.98);
|
||||||
|
--box-shadow: 0 0 4px rgb(27, 27, 27);
|
||||||
|
--box-shadow-color: rgb(27, 27, 27);
|
||||||
|
--color-text: rgb(245, 245, 245);
|
||||||
|
--color-text-placeholder: rgba(245, 245, 245, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: var(--font-family);
|
||||||
|
font-weight: 300;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5 {
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
line-height: 1.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:active {
|
||||||
|
color: var(--color-theme);
|
||||||
|
font-weight: 400;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: var(--transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background: var(--color-theme);
|
||||||
|
border: none;
|
||||||
|
border-radius: 1em;
|
||||||
|
color: var(--background-primary);
|
||||||
|
font-family: var(--font-family);
|
||||||
|
font-size: 1em;
|
||||||
|
outline: none;
|
||||||
|
transition: var(--transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
22
app/layout.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
import { ThemeContextProvider } from '@contexts/ThemeContext'
|
||||||
|
|
||||||
|
import Footer from '@components/Footer'
|
||||||
|
import Header from '@components/Header'
|
||||||
|
|
||||||
|
import './globals.css'
|
||||||
|
|
||||||
|
const Layout = ({ children }: any) => (
|
||||||
|
<html lang="en">
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<ThemeContextProvider>
|
||||||
|
<Header />
|
||||||
|
{children}
|
||||||
|
<Footer />
|
||||||
|
</ThemeContextProvider>
|
||||||
|
</main>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
)
|
||||||
|
|
||||||
|
export default Layout
|
||||||
58
app/not-found.module.css
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
/* page */
|
||||||
|
|
||||||
|
.page {
|
||||||
|
align-items: flex-start;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: var(--footer-height);
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* page-with-sidebar */
|
||||||
|
|
||||||
|
.page-with-sidebar {
|
||||||
|
align-items: flex-start;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin-bottom: var(--footer-height);
|
||||||
|
padding-left: var(--sidebar-width);
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* page and page-with-sidebar */
|
||||||
|
|
||||||
|
.page h1,
|
||||||
|
.page-with-sidebar h1 {
|
||||||
|
margin-bottom: 1.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page > div,
|
||||||
|
.page-with-sidebar > div {
|
||||||
|
margin-top: var(--header-height);
|
||||||
|
padding-top: 4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* page-center */
|
||||||
|
|
||||||
|
.page-center {
|
||||||
|
background: var(--background-primary-transparent);
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-center div {
|
||||||
|
margin-bottom: 2%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-center h1 {
|
||||||
|
color: var(--color-theme);
|
||||||
|
font-size: 2.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-center h1,
|
||||||
|
.page-center h2 {
|
||||||
|
margin: 0.5em 0;
|
||||||
|
}
|
||||||
18
app/not-found.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
|
import styles from './not-found.module.css'
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: '404 | a placeless place',
|
||||||
|
}
|
||||||
|
|
||||||
|
const NotFoundPage = () => (
|
||||||
|
<div className={styles.page}>
|
||||||
|
<div>
|
||||||
|
<h1>{'404'}</h1>
|
||||||
|
<h2>{'a placeless place'}</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
export default NotFoundPage
|
||||||
91
app/page.module.css
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
/* container */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background: var(--background-primary-transparent);
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionMain */
|
||||||
|
|
||||||
|
.sectionMain {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain div {
|
||||||
|
margin-bottom: 2%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain h1 {
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p {
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p > i {
|
||||||
|
color: var(--color-theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionMain {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionText */
|
||||||
|
|
||||||
|
.sectionText {
|
||||||
|
align-items: center;
|
||||||
|
background: var(--background-primary);
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5%;
|
||||||
|
max-width: 650px;
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div h2 {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div p {
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText div {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionTextLinks */
|
||||||
|
|
||||||
|
.sectionTextLinks {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionTextLinks a {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
74
app/page.tsx
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
|
import Background from '@components/Background'
|
||||||
|
|
||||||
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'chora studio | home',
|
||||||
|
}
|
||||||
|
|
||||||
|
const regenLink =
|
||||||
|
'https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e'
|
||||||
|
|
||||||
|
const HomePage = () => {
|
||||||
|
return (
|
||||||
|
<div className={styles.container}>
|
||||||
|
<Background />
|
||||||
|
<div className={styles.sectionMain}>
|
||||||
|
<div>
|
||||||
|
<h1>{'chora '}<span style={{ opacity: '0.75' }}>{'studio'}</span></h1>
|
||||||
|
<p>
|
||||||
|
<i>{'what is the role of technology in ecological regeneration?'}</i>
|
||||||
|
</p>
|
||||||
|
<p>{'protocol research and development'}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className={styles.sectionText}>
|
||||||
|
<div>
|
||||||
|
<h2>{'products'}</h2>
|
||||||
|
<p>
|
||||||
|
{
|
||||||
|
'Chora Studio is stewarding '
|
||||||
|
}
|
||||||
|
<a href="https://chora.io" target="_blank">
|
||||||
|
{'Chora Protocol'}
|
||||||
|
</a>
|
||||||
|
{' - software tools and services for commons governance and ecological regeneration.'}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="/products">
|
||||||
|
{'learn more ⇾'}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<h2>{'solutions'}</h2>
|
||||||
|
<p>
|
||||||
|
{'Chora Studio offers software research and development consulting services to clients building infrastructure for climate solutions.'}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="/solutions">
|
||||||
|
{'learn more ⇾'}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<h2>{'validator'}</h2>
|
||||||
|
<p>
|
||||||
|
{'Chora Studio operates Chora Validator on '}
|
||||||
|
<a href={regenLink} target="_blank">
|
||||||
|
{'Regen'}
|
||||||
|
</a>
|
||||||
|
{
|
||||||
|
' in addition to multiple test networks including Chora Testnet and Regen Redwood.'
|
||||||
|
}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="/validator">
|
||||||
|
{'learn more ⇾'}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default HomePage
|
||||||
91
app/products/page.module.css
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
/* container */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background: var(--background-primary-transparent);
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionMain */
|
||||||
|
|
||||||
|
.sectionMain {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain div {
|
||||||
|
margin-bottom: 2%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain h1 {
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p {
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p > i {
|
||||||
|
color: var(--color-theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionMain {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionText */
|
||||||
|
|
||||||
|
.sectionText {
|
||||||
|
align-items: center;
|
||||||
|
background: var(--background-primary);
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5%;
|
||||||
|
max-width: 650px;
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div h2 {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div p {
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText div {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionTextLinks */
|
||||||
|
|
||||||
|
.sectionTextLinks {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionTextLinks a {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
30
app/products/page.tsx
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'chora studio | products',
|
||||||
|
}
|
||||||
|
|
||||||
|
const ProductsPage = () => {
|
||||||
|
return (
|
||||||
|
<div className={styles.container}>
|
||||||
|
<div className={styles.sectionText}>
|
||||||
|
<div>
|
||||||
|
<h2>{'products'}</h2>
|
||||||
|
<p>
|
||||||
|
{
|
||||||
|
'Chora Studio is stewarding '
|
||||||
|
}
|
||||||
|
<a href="https://chora.io" target="_blank">
|
||||||
|
{'Chora Protocol'}
|
||||||
|
</a>
|
||||||
|
{' - software tools and services for commons governance and ecological regeneration.'}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ProductsPage
|
||||||
91
app/solutions/page.module.css
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
/* container */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background: var(--background-primary-transparent);
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionMain */
|
||||||
|
|
||||||
|
.sectionMain {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain div {
|
||||||
|
margin-bottom: 2%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain h1 {
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p {
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p > i {
|
||||||
|
color: var(--color-theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionMain {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionText */
|
||||||
|
|
||||||
|
.sectionText {
|
||||||
|
align-items: center;
|
||||||
|
background: var(--background-primary);
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5%;
|
||||||
|
max-width: 650px;
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div h2 {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div p {
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText div {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionTextLinks */
|
||||||
|
|
||||||
|
.sectionTextLinks {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionTextLinks a {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
24
app/solutions/page.tsx
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'chora studio | solutions',
|
||||||
|
}
|
||||||
|
|
||||||
|
const SolutionsPage = () => {
|
||||||
|
return (
|
||||||
|
<div className={styles.container}>
|
||||||
|
<div className={styles.sectionText}>
|
||||||
|
<div>
|
||||||
|
<h2>{'solutions'}</h2>
|
||||||
|
<p>
|
||||||
|
{'Chora Studio offers software research and development consulting services to clients building infrastructure for climate solutions.'}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default SolutionsPage
|
||||||
91
app/validator/page.module.css
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
/* container */
|
||||||
|
|
||||||
|
.container {
|
||||||
|
background: var(--background-primary-transparent);
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionMain */
|
||||||
|
|
||||||
|
.sectionMain {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.5rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain div {
|
||||||
|
margin-bottom: 2%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain h1 {
|
||||||
|
padding: 0.75rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p {
|
||||||
|
padding: 0.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionMain p > i {
|
||||||
|
color: var(--color-theme);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionMain {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionText */
|
||||||
|
|
||||||
|
.sectionText {
|
||||||
|
align-items: center;
|
||||||
|
background: var(--background-primary);
|
||||||
|
display: flex;
|
||||||
|
font-size: 1.2rem;
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText {
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 5%;
|
||||||
|
max-width: 650px;
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div h2 {
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionText div p {
|
||||||
|
padding: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 850px) {
|
||||||
|
.sectionText div {
|
||||||
|
padding: 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sectionTextLinks */
|
||||||
|
|
||||||
|
.sectionTextLinks {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sectionTextLinks a {
|
||||||
|
padding: 1rem;
|
||||||
|
}
|
||||||
33
app/validator/page.tsx
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'chora studio | validator',
|
||||||
|
}
|
||||||
|
|
||||||
|
const regenLink =
|
||||||
|
'https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e'
|
||||||
|
|
||||||
|
const ValidatorPage = () => {
|
||||||
|
return (
|
||||||
|
<div className={styles.container}>
|
||||||
|
<div className={styles.sectionText}>
|
||||||
|
<div>
|
||||||
|
<h2>{'validator'}</h2>
|
||||||
|
<p>
|
||||||
|
{'Chora Studio operates Chora Validator on '}
|
||||||
|
<a href={regenLink} target="_blank">
|
||||||
|
{'Regen'}
|
||||||
|
</a>
|
||||||
|
{
|
||||||
|
' in addition to multiple test networks including Chora Testnet and Regen Redwood.'
|
||||||
|
}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ValidatorPage
|
||||||
BIN
bun.lockb
Executable file
17
components/Background.module.css
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
.background {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
height: 100vh;
|
||||||
|
justify-content: center;
|
||||||
|
position: fixed;
|
||||||
|
width: 100vw;
|
||||||
|
z-index: -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.background {
|
||||||
|
background: var(--background-primary);
|
||||||
|
}
|
||||||
|
|
||||||
|
.background img {
|
||||||
|
scale: 65%;
|
||||||
|
}
|
||||||
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
|
||||||
55
components/Footer.module.css
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
/* footer */
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
background: var(--background-primary);
|
||||||
|
box-shadow: var(--box-shadow);
|
||||||
|
height: var(--footer-height);
|
||||||
|
width: 100vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer > div {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
height: inherit;
|
||||||
|
justify-content: center;
|
||||||
|
margin: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* title */
|
||||||
|
|
||||||
|
.title {
|
||||||
|
margin: 0 4em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title img {
|
||||||
|
display: block;
|
||||||
|
height: 120px;
|
||||||
|
margin: 0 auto 1em auto;
|
||||||
|
width: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title h4 {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* list */
|
||||||
|
|
||||||
|
.list {
|
||||||
|
font-size: 0.95em;
|
||||||
|
height: 160px;
|
||||||
|
margin: 0 3em;
|
||||||
|
min-width: 140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list h3 {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list ul {
|
||||||
|
list-style: inside;
|
||||||
|
margin: 0 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.list li {
|
||||||
|
margin: 0.75em 0;
|
||||||
|
}
|
||||||
93
components/Footer.tsx
Normal file
|
|
@ -0,0 +1,93 @@
|
||||||
|
'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 styles from './Footer.module.css'
|
||||||
|
|
||||||
|
const Footer = () => {
|
||||||
|
const { darkTheme } = useContext(ThemeContext)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.footer}>
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
<div className={styles.list}>
|
||||||
|
<h3>{'chora studio'}</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<Link href="https://blog.chora.studio" target="_blank">
|
||||||
|
{'blog ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="/products">
|
||||||
|
{'products'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="/solutions">
|
||||||
|
{'solutions'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="/validator">
|
||||||
|
{'validator'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div className={styles.list}>
|
||||||
|
<h3>{'chora protocol'}</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<Link href="https://chora.io" target="_blank">
|
||||||
|
{'chora dashboard ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="https://docs.chora.io" target="_blank">
|
||||||
|
{'chora documentation ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="https://github.com/choraio" target="_blank">
|
||||||
|
{'chora repositories ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div className={styles.list}>
|
||||||
|
<h3>{'chora validator'}</h3>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<Link href="https://www.mintscan.io/regen/validators/regenvaloper1t8p3zdu3h8qzggfmvvvmtdnaj4trcsfh79xp4e" target="_blank">
|
||||||
|
{'regen ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="https://chora.io/scan/regen-redwood-1" target="_blank">
|
||||||
|
{'regen-redwood ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="https://chora.io/scan/chora-testnet-1" target="_blank">
|
||||||
|
{'chora-testnet ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Footer
|
||||||
70
components/Header.module.css
Normal file
|
|
@ -0,0 +1,70 @@
|
||||||
|
/* header */
|
||||||
|
|
||||||
|
.header {
|
||||||
|
background: var(--background-primary);
|
||||||
|
box-shadow: var(--box-shadow);
|
||||||
|
height: var(--header-height);
|
||||||
|
position: fixed;
|
||||||
|
width: 100vw;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header > div {
|
||||||
|
display: flex;
|
||||||
|
height: inherit;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: 0 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* title */
|
||||||
|
|
||||||
|
.title {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
margin: 0 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title a {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title img {
|
||||||
|
height: 40px;
|
||||||
|
width: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title div {
|
||||||
|
color: var(--color-text);
|
||||||
|
font-size: 22px;
|
||||||
|
margin-left: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* menu */
|
||||||
|
|
||||||
|
.menu {
|
||||||
|
display: flex;
|
||||||
|
height: var(--header-height);
|
||||||
|
margin-right: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu ul {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
list-style: none inside none;
|
||||||
|
margin: 0 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu li {
|
||||||
|
margin: 0.75em;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* divider */
|
||||||
|
|
||||||
|
.divider {
|
||||||
|
color: var(--color-theme);
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
62
components/Header.tsx
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
'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 styles from './Header.module.css'
|
||||||
|
|
||||||
|
const Header = () => {
|
||||||
|
const { darkTheme, setDarkTheme } = useContext(ThemeContext)
|
||||||
|
|
||||||
|
const toggleTheme = () => {
|
||||||
|
if (darkTheme) {
|
||||||
|
setDarkTheme(false)
|
||||||
|
} else {
|
||||||
|
setDarkTheme(true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.header}>
|
||||||
|
<div style={{ display: 'none' }}>{darkTheme.toString()}</div>
|
||||||
|
<div>
|
||||||
|
<div className={styles.title}>
|
||||||
|
<Link href="/">
|
||||||
|
<Image
|
||||||
|
alt="chora studio"
|
||||||
|
src={darkTheme ? choraLogoDark : choraLogoLight}
|
||||||
|
/>
|
||||||
|
<div>{'chora '}<span style={{ opacity: '0.75' }}>{'studio'}</span></div>
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
<div className={styles.menu}>
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<Link href="/products">{'products'}</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="/solutions">{'solutions'}</Link>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<Link href="/validator">{'validator'}</Link>
|
||||||
|
</li>
|
||||||
|
<li className={styles.divider}>{'|'}</li>
|
||||||
|
<li>
|
||||||
|
<Link href="https://blog.chora.studio" target="_blank">
|
||||||
|
{'blog ↗'}
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
<ThemeButton darkTheme={darkTheme} toggleTheme={toggleTheme} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Header
|
||||||
8
components/ThemeButton.module.css
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
.button {
|
||||||
|
align-items: center;
|
||||||
|
background: none;
|
||||||
|
display: inline-flex;
|
||||||
|
height: var(--header-height);
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
19
components/ThemeButton.tsx
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
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
|
||||||
56
contexts/ThemeContext.tsx
Normal file
|
|
@ -0,0 +1,56 @@
|
||||||
|
'use client'
|
||||||
|
|
||||||
|
import * as React from 'react'
|
||||||
|
import { createContext, useEffect, useState } from 'react'
|
||||||
|
|
||||||
|
export const cachedDarkKey = 'chora-web-dark'
|
||||||
|
|
||||||
|
const initDarkTheme = () => {
|
||||||
|
let initDarkTheme = false
|
||||||
|
|
||||||
|
if (
|
||||||
|
typeof localStorage !== 'undefined' &&
|
||||||
|
localStorage.getItem(cachedDarkKey)
|
||||||
|
) {
|
||||||
|
initDarkTheme = localStorage.getItem(cachedDarkKey) === 'true'
|
||||||
|
} else if (typeof window !== 'undefined') {
|
||||||
|
initDarkTheme = window.matchMedia('(prefers-color-scheme: dark)').matches
|
||||||
|
}
|
||||||
|
|
||||||
|
return initDarkTheme
|
||||||
|
}
|
||||||
|
|
||||||
|
const ThemeContext = createContext<any>({})
|
||||||
|
|
||||||
|
const ThemeContextProvider = (props: any) => {
|
||||||
|
const [darkTheme, setDarkTheme] = useState<boolean>(initDarkTheme())
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
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)
|
||||||
|
} else {
|
||||||
|
root.classList.remove('dark-theme')
|
||||||
|
root.style.backgroundColor = '#FAFAFA' // --background-secondary (light-theme)
|
||||||
|
}
|
||||||
|
|
||||||
|
localStorage.setItem(cachedDarkKey, darkTheme ? 'true' : 'false')
|
||||||
|
}
|
||||||
|
}, [darkTheme])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ThemeContext.Provider
|
||||||
|
value={{
|
||||||
|
darkTheme,
|
||||||
|
setDarkTheme,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{props.children}
|
||||||
|
</ThemeContext.Provider>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export { ThemeContext, ThemeContextProvider }
|
||||||
26
deploy.sh
Executable file
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# abort on errors
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# build website
|
||||||
|
bun run build
|
||||||
|
|
||||||
|
# add CNAME file
|
||||||
|
echo 'chora.studio' >> dist/CNAME
|
||||||
|
|
||||||
|
# change to build directory
|
||||||
|
cd dist
|
||||||
|
|
||||||
|
# git init and commit
|
||||||
|
git init
|
||||||
|
git add -A
|
||||||
|
git commit -m 'publish'
|
||||||
|
|
||||||
|
# push to gh-pages branch
|
||||||
|
git push https://github.com/chora-studio/www master:gh-pages -f
|
||||||
|
|
||||||
|
# clean up git
|
||||||
|
rm -rf .git
|
||||||
|
|
||||||
|
cd -
|
||||||
1
module.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
declare module '*.module.css'
|
||||||
5
next-env.d.ts
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
/// <reference types="next" />
|
||||||
|
/// <reference types="next/image-types/global" />
|
||||||
|
|
||||||
|
// NOTE: This file should not be edited
|
||||||
|
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||||
8
next.config.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
/** @type {import('next').NextConfig} */
|
||||||
|
const nextConfig = {
|
||||||
|
distDir: 'dist',
|
||||||
|
output: 'export',
|
||||||
|
images: { unoptimized: true }
|
||||||
|
}
|
||||||
|
|
||||||
|
module.exports = nextConfig
|
||||||
40
package.json
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"name": "www",
|
||||||
|
"private": true,
|
||||||
|
"description": "chora studio website",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"homepage": "https://chora.studio",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/chora-studio/www/issues"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/chora-studio/www"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "next dev",
|
||||||
|
"build": "next build",
|
||||||
|
"lint": "next lint",
|
||||||
|
"format": "prettier --write .",
|
||||||
|
"test": "echo 'test not configured'",
|
||||||
|
"clean": "rm -rf .next dist node_modules"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"next": "^14",
|
||||||
|
"react": "^18",
|
||||||
|
"react-dom": "^18"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@types/node": "^20",
|
||||||
|
"@types/react": "^18",
|
||||||
|
"@types/react-dom": "^18",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^6",
|
||||||
|
"@typescript-eslint/parser": "^6",
|
||||||
|
"autoprefixer": "^10",
|
||||||
|
"postcss": "^8",
|
||||||
|
"tailwindcss": "^3",
|
||||||
|
"typescript": "^5",
|
||||||
|
"eslint": "^8",
|
||||||
|
"eslint-config-next": "^14"
|
||||||
|
}
|
||||||
|
}
|
||||||
6
postcss.config.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
module.exports = {
|
||||||
|
plugins: {
|
||||||
|
autoprefixer: {},
|
||||||
|
tailwindcss: {},
|
||||||
|
},
|
||||||
|
}
|
||||||
1
public/CNAME
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
chora.studio
|
||||||
96
public/font/UFL.txt
Normal file
|
|
@ -0,0 +1,96 @@
|
||||||
|
-------------------------------
|
||||||
|
UBUNTU FONT LICENCE Version 1.0
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
PREAMBLE
|
||||||
|
This licence allows the licensed fonts to be used, studied, modified and
|
||||||
|
redistributed freely. The fonts, including any derivative works, can be
|
||||||
|
bundled, embedded, and redistributed provided the terms of this licence
|
||||||
|
are met. The fonts and derivatives, however, cannot be released under
|
||||||
|
any other licence. The requirement for fonts to remain under this
|
||||||
|
licence does not require any document created using the fonts or their
|
||||||
|
derivatives to be published under this licence, as long as the primary
|
||||||
|
purpose of the document is not to be a vehicle for the distribution of
|
||||||
|
the fonts.
|
||||||
|
|
||||||
|
DEFINITIONS
|
||||||
|
"Font Software" refers to the set of files released by the Copyright
|
||||||
|
Holder(s) under this licence and clearly marked as such. This may
|
||||||
|
include source files, build scripts and documentation.
|
||||||
|
|
||||||
|
"Original Version" refers to the collection of Font Software components
|
||||||
|
as received under this licence.
|
||||||
|
|
||||||
|
"Modified Version" refers to any derivative made by adding to, deleting,
|
||||||
|
or substituting -- in part or in whole -- any of the components of the
|
||||||
|
Original Version, by changing formats or by porting the Font Software to
|
||||||
|
a new environment.
|
||||||
|
|
||||||
|
"Copyright Holder(s)" refers to all individuals and companies who have a
|
||||||
|
copyright ownership of the Font Software.
|
||||||
|
|
||||||
|
"Substantially Changed" refers to Modified Versions which can be easily
|
||||||
|
identified as dissimilar to the Font Software by users of the Font
|
||||||
|
Software comparing the Original Version with the Modified Version.
|
||||||
|
|
||||||
|
To "Propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification and with or without charging
|
||||||
|
a redistribution fee), making available to the public, and in some
|
||||||
|
countries other activities as well.
|
||||||
|
|
||||||
|
PERMISSION & CONDITIONS
|
||||||
|
This licence does not grant any rights under trademark law and all such
|
||||||
|
rights are reserved.
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
copy of the Font Software, to propagate the Font Software, subject to
|
||||||
|
the below conditions:
|
||||||
|
|
||||||
|
1) Each copy of the Font Software must contain the above copyright
|
||||||
|
notice and this licence. These can be included either as stand-alone
|
||||||
|
text files, human-readable headers or in the appropriate machine-
|
||||||
|
readable metadata fields within text or binary files as long as those
|
||||||
|
fields can be easily viewed by the user.
|
||||||
|
|
||||||
|
2) The font name complies with the following:
|
||||||
|
(a) The Original Version must retain its name, unmodified.
|
||||||
|
(b) Modified Versions which are Substantially Changed must be renamed to
|
||||||
|
avoid use of the name of the Original Version or similar names entirely.
|
||||||
|
(c) Modified Versions which are not Substantially Changed must be
|
||||||
|
renamed to both (i) retain the name of the Original Version and (ii) add
|
||||||
|
additional naming elements to distinguish the Modified Version from the
|
||||||
|
Original Version. The name of such Modified Versions must be the name of
|
||||||
|
the Original Version, with "derivative X" where X represents the name of
|
||||||
|
the new work, appended to that name.
|
||||||
|
|
||||||
|
3) The name(s) of the Copyright Holder(s) and any contributor to the
|
||||||
|
Font Software shall not be used to promote, endorse or advertise any
|
||||||
|
Modified Version, except (i) as required by this licence, (ii) to
|
||||||
|
acknowledge the contribution(s) of the Copyright Holder(s) or (iii) with
|
||||||
|
their explicit written permission.
|
||||||
|
|
||||||
|
4) The Font Software, modified or unmodified, in part or in whole, must
|
||||||
|
be distributed entirely under this licence, and must not be distributed
|
||||||
|
under any other licence. The requirement for fonts to remain under this
|
||||||
|
licence does not affect any document created using the Font Software,
|
||||||
|
except any version of the Font Software extracted from a document
|
||||||
|
created using the Font Software may only be distributed under this
|
||||||
|
licence.
|
||||||
|
|
||||||
|
TERMINATION
|
||||||
|
This licence becomes null and void if any of the above conditions are
|
||||||
|
not met.
|
||||||
|
|
||||||
|
DISCLAIMER
|
||||||
|
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
||||||
|
COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
||||||
|
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
||||||
|
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER
|
||||||
|
DEALINGS IN THE FONT SOFTWARE.
|
||||||
BIN
public/font/Ubuntu-Bold.ttf
Normal file
BIN
public/font/Ubuntu-BoldItalic.ttf
Normal file
BIN
public/font/Ubuntu-Italic.ttf
Normal file
BIN
public/font/Ubuntu-Light.ttf
Normal file
BIN
public/font/Ubuntu-LightItalic.ttf
Normal file
BIN
public/font/Ubuntu-Medium.ttf
Normal file
BIN
public/font/Ubuntu-MediumItalic.ttf
Normal file
BIN
public/font/Ubuntu-Regular.ttf
Normal file
BIN
public/images/chora_dark.png
Normal file
|
After Width: | Height: | Size: 153 KiB |
BIN
public/images/chora_dark_background.png
Normal file
|
After Width: | Height: | Size: 153 KiB |
BIN
public/images/chora_dark_icon.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/chora_dark_large.png
Normal file
|
After Width: | Height: | Size: 140 KiB |
BIN
public/images/chora_dark_small.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/images/chora_light.png
Normal file
|
After Width: | Height: | Size: 155 KiB |
BIN
public/images/chora_light_background.png
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
public/images/chora_light_icon.png
Normal file
|
After Width: | Height: | Size: 19 KiB |
BIN
public/images/chora_light_large.png
Normal file
|
After Width: | Height: | Size: 140 KiB |
BIN
public/images/chora_light_small.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
public/images/favicon.ico
Normal file
|
After Width: | Height: | Size: 137 KiB |
3
tailwind.config.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module.exports = {
|
||||||
|
content: ['./app/**/*.{js,ts,jsx,tsx}'],
|
||||||
|
}
|
||||||
42
tsconfig.json
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"baseUrl": "./",
|
||||||
|
"target": "es5",
|
||||||
|
"lib": [
|
||||||
|
"dom",
|
||||||
|
"dom.iterable",
|
||||||
|
"esnext"
|
||||||
|
],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"jsx": "preserve",
|
||||||
|
"incremental": true,
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": {
|
||||||
|
"@components/*": ["components/*"],
|
||||||
|
"@contexts/*": ["contexts/*"],
|
||||||
|
"@hooks/*": ["hooks/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx",
|
||||||
|
".next/types/**/*.ts",
|
||||||
|
"dist/types/**/*.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
|
}
|
||||||