Compare commits
No commits in common. "f9beb971e732627ff5da68f9e39dd178894dc606" and "341bad80ee0b5149c2f222efdc2145dd40e9170c" have entirely different histories.
f9beb971e7
...
341bad80ee
6
.gitmodules
vendored
|
|
@ -1,3 +1,3 @@
|
||||||
[submodule "artifacts"]
|
[submodule "research"]
|
||||||
path = artifacts
|
path = research
|
||||||
url = https://github.com/chora-studio/artifacts
|
url = https://github.com/chora-studio/research
|
||||||
|
|
|
||||||
197
app/globals.css
|
|
@ -1,196 +1 @@
|
||||||
@font-face {
|
@import 'chora/styles/globals.css';
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: normal;
|
|
||||||
src: url('../assets/font/Ubuntu-Regular.ttf');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: normal;
|
|
||||||
src: url('../assets/font/Ubuntu-Italic.ttf');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: bold;
|
|
||||||
src: url('../assets/font/Ubuntu-Bold.ttf');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: bold;
|
|
||||||
src: url('../assets/font/Ubuntu-BoldItalic.ttf');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 300;
|
|
||||||
src: url('../assets/font/Ubuntu-Light.ttf');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 300;
|
|
||||||
src: url('../assets/font/Ubuntu-LightItalic.ttf');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 500;
|
|
||||||
src: url('../assets/font/Ubuntu-Medium.ttf');
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Ubuntu';
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 500;
|
|
||||||
src: url('../assets/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);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
:root {
|
|
||||||
--footer-height: 80px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.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 {
|
|
||||||
color: var(--color-text);
|
|
||||||
font-family: var(--font-family);
|
|
||||||
font-weight: 300;
|
|
||||||
}
|
|
||||||
|
|
||||||
main {
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1,
|
|
||||||
h2,
|
|
||||||
h3,
|
|
||||||
h4,
|
|
||||||
h5 {
|
|
||||||
font-weight: 300;
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
input,
|
|
||||||
textarea,
|
|
||||||
select {
|
|
||||||
background: var(--background-primary);
|
|
||||||
border: none;
|
|
||||||
box-shadow: var(--box-shadow);
|
|
||||||
color: var(--color-text);
|
|
||||||
font-family: var(--font-family);
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
textarea {
|
|
||||||
line-height: 1.5;
|
|
||||||
white-space: pre;
|
|
||||||
}
|
|
||||||
|
|
||||||
input::placeholder,
|
|
||||||
textarea::placeholder {
|
|
||||||
color: var(--color-text-placeholder);
|
|
||||||
}
|
|
||||||
|
|
||||||
pre {
|
|
||||||
overflow-x: scroll;
|
|
||||||
scrollbar-width: none; /* hide scrollbar - Firefox */
|
|
||||||
-ms-overflow-style: none; /* hide scrollbar - Internet Explorer 10+ */
|
|
||||||
}
|
|
||||||
|
|
||||||
pre::-webkit-scrollbar {
|
|
||||||
display: none; /* hide scrollbar - Safari and Chrome */
|
|
||||||
}
|
|
||||||
|
|
||||||
hr {
|
|
||||||
border: 0.05em solid var(--box-shadow-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
td {
|
|
||||||
overflow-x: scroll;
|
|
||||||
scrollbar-width: none; /* hide scrollbar - Firefox */
|
|
||||||
-ms-overflow-style: none; /* hide scrollbar - Internet Explorer 10+ */
|
|
||||||
}
|
|
||||||
|
|
||||||
td::-webkit-scrollbar {
|
|
||||||
display: none; /* hide scrollbar - Safari and Chrome */
|
|
||||||
}
|
|
||||||
|
|
|
||||||
119
app/layout.module.css
Normal file
|
|
@ -0,0 +1,119 @@
|
||||||
|
.body {
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 10;
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
background: color-mix(in srgb, var(--background-secondary, #fcfcfc) 85%, transparent);
|
||||||
|
border-bottom: 1px solid color-mix(in srgb, var(--text-secondary, #0a0a0a) 10%, transparent);
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerInner {
|
||||||
|
max-width: 980px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 16px 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
gap: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand {
|
||||||
|
font-size: 20px;
|
||||||
|
font-weight: 600;
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brandDim {
|
||||||
|
opacity: 0.75;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
display: flex;
|
||||||
|
gap: 14px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: inherit;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav a:hover {
|
||||||
|
opacity: 1;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.main {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer {
|
||||||
|
border-top: 1px solid color-mix(in srgb, var(--text-secondary, #0a0a0a) 10%, transparent);
|
||||||
|
background: var(--background-secondary, #fcfcfc);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerInner {
|
||||||
|
max-width: 980px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 28px 20px;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1.2fr 1.8fr;
|
||||||
|
gap: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerInner h3 {
|
||||||
|
margin: 0 0 10px 0;
|
||||||
|
font-size: 14px;
|
||||||
|
text-transform: lowercase;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerInner p {
|
||||||
|
margin: 0;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerCols {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 24px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerInner ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
display: grid;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerInner a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
opacity: 0.85;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerInner a:hover {
|
||||||
|
opacity: 1;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 700px) {
|
||||||
|
.footerInner {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerCols {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
'use client'
|
'use client'
|
||||||
|
|
||||||
import { Background, Footer, Header, Sidebar } from 'components'
|
import { Background, Footer, Header, Sidebar } from 'chora/components'
|
||||||
import { MenuContextProvider, ThemeContextProvider } from 'contexts'
|
import { MenuContextProvider, ThemeContextProvider } from 'chora/contexts'
|
||||||
|
|
||||||
import './globals.css'
|
import './globals.css'
|
||||||
|
|
||||||
|
|
@ -23,8 +23,8 @@ const Layout = ({ children }: any) => (
|
||||||
target: '',
|
target: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: '/prototypes',
|
link: '/projects',
|
||||||
title: 'prototypes',
|
title: 'projects',
|
||||||
target: '',
|
target: '',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -54,9 +54,9 @@ const Layout = ({ children }: any) => (
|
||||||
title: 'research',
|
title: 'research',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: 'prototypes',
|
link: 'projects',
|
||||||
target: '',
|
target: '',
|
||||||
title: 'prototypes',
|
title: 'projects',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: 'services',
|
link: 'services',
|
||||||
|
|
@ -98,9 +98,9 @@ const Layout = ({ children }: any) => (
|
||||||
title: 'research',
|
title: 'research',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: '/prototypes',
|
link: '/projects',
|
||||||
target: '',
|
target: '',
|
||||||
title: 'prototypes',
|
title: 'projects',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
link: '/services',
|
link: '/services',
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
.page {
|
.page {
|
||||||
composes: page-center-not-found from '../styles/page.css';
|
composes: page-center-not-found from 'chora/styles/page.css';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
.page {
|
.page {
|
||||||
composes: page from '../styles/page.css';
|
composes: page from 'chora/styles/page.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
composes: banner-full from '../styles/banner.css';
|
composes: banner-full from 'chora/styles/main.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
composes: content-full from '../styles/content.css';
|
composes: content-full from 'chora/styles/main.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.content > div {
|
.content > div {
|
||||||
|
|
|
||||||
20
app/page.tsx
|
|
@ -1,4 +1,4 @@
|
||||||
import { ArrowRight } from 'components/icons'
|
import { ArrowRight } from 'chora/components/icons'
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
|
||||||
|
|
@ -27,20 +27,26 @@ const HomePage = () => {
|
||||||
<h2>{'research'}</h2>
|
<h2>{'research'}</h2>
|
||||||
<p>
|
<p>
|
||||||
{
|
{
|
||||||
'Chora Studio is researching decentralized protocols and agentic systems with a special interest in privacy-preserving technologies.'
|
'Chora Studio is researching decentalized protocols and agentic systems with a special interest in FOSS and privacy-preserving technologies.'
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
<Link href="/research">
|
<Link href="/research">
|
||||||
{'learn more'}
|
{'learn more'}
|
||||||
<ArrowRight />
|
<ArrowRight />
|
||||||
</Link>
|
</Link>
|
||||||
<h2>{'prototypes'}</h2>
|
<h2>{'projects'}</h2>
|
||||||
<p>
|
<p>
|
||||||
{
|
{'Chora Studio is prototyping software under two project names: '}
|
||||||
'Chora Studio is developing experimental software with a focus on tools and infrastructure for decentralized protocols and agentic systems.'
|
<Link href="https://github.com/chora-io" target="_blank">
|
||||||
}
|
{'Chora IO'}
|
||||||
|
</Link>
|
||||||
|
{' for decentralized protocols and '}
|
||||||
|
<Link href="https://github.com/chora-ai" target="_blank">
|
||||||
|
{'Chora AI'}
|
||||||
|
</Link>
|
||||||
|
{' for agentic systems.'}
|
||||||
</p>
|
</p>
|
||||||
<Link href="/prototypes">
|
<Link href="/projects">
|
||||||
{'learn more'}
|
{'learn more'}
|
||||||
<ArrowRight />
|
<ArrowRight />
|
||||||
</Link>
|
</Link>
|
||||||
|
|
|
||||||
11
app/projects/page.module.css
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
.page {
|
||||||
|
composes: page from 'chora/styles/page.css';
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner {
|
||||||
|
composes: banner from 'chora/styles/main.css';
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
composes: content-full from 'chora/styles/main.css';
|
||||||
|
}
|
||||||
77
app/projects/page.tsx
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'chora studio | projects',
|
||||||
|
}
|
||||||
|
|
||||||
|
const ProjectsPage = () => {
|
||||||
|
return (
|
||||||
|
<div className={styles.page}>
|
||||||
|
<div className={styles.banner}>
|
||||||
|
<div>
|
||||||
|
<h1 style={{ opacity: '0.75' }}>{'projects'}</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className={styles.content}>
|
||||||
|
<div>
|
||||||
|
<h2>{'Chora AI'}</h2>
|
||||||
|
<p>
|
||||||
|
{
|
||||||
|
'Chora Studio is prototyping a privacy-preserving multi-agent management system and researching specification-driven development practices.'
|
||||||
|
}
|
||||||
|
</p>
|
||||||
|
<p style={{ textAlign: 'center' }}>
|
||||||
|
<a href="https://github.com/chora-ai" target="_blank">
|
||||||
|
{'source code'}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
<h2>{'Chora IO'}</h2>
|
||||||
|
<p>
|
||||||
|
{'Chora Studio is prototyping '}
|
||||||
|
<a href="https://chora.io" target="_blank">
|
||||||
|
{'Chora'}
|
||||||
|
</a>
|
||||||
|
{
|
||||||
|
' - software for commons governance and ecological regeneration built with distributed ledger technology.'
|
||||||
|
}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{
|
||||||
|
'Chora includes a blockchain application, blockchain modules, an API service, and three web applications: '
|
||||||
|
}
|
||||||
|
<a href="https://chora.io/groups" target="_blank">
|
||||||
|
{'Groups'}
|
||||||
|
</a>
|
||||||
|
{', '}
|
||||||
|
<a href="https://chora.io/registry" target="_blank">
|
||||||
|
{'Registry'}
|
||||||
|
</a>
|
||||||
|
{', and '}
|
||||||
|
<a href="https://chora.io/ledger" target="_blank">
|
||||||
|
{'Ledger'}
|
||||||
|
</a>
|
||||||
|
{'.'}
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{
|
||||||
|
'Chora also includes demo applications, developer tools, and other software projects. For more information, see '
|
||||||
|
}
|
||||||
|
<a href="https://docs.chora.io" target="_blank">
|
||||||
|
{'Chora Documentation'}
|
||||||
|
</a>
|
||||||
|
{'.'}
|
||||||
|
</p>
|
||||||
|
<p style={{ textAlign: 'center' }}>
|
||||||
|
<a href="https://github.com/chora-io" target="_blank">
|
||||||
|
{'source code'}
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ProjectsPage
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
.page {
|
|
||||||
composes: page from '../../styles/page.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner {
|
|
||||||
composes: banner from '../../styles/banner.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
composes: content-full from '../../styles/content.css';
|
|
||||||
}
|
|
||||||
|
|
@ -1,192 +0,0 @@
|
||||||
import { Metadata } from 'next'
|
|
||||||
|
|
||||||
import styles from './page.module.css'
|
|
||||||
import Link from 'next/link'
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: 'chora studio | prototypes',
|
|
||||||
}
|
|
||||||
|
|
||||||
const PrototypesPage = () => {
|
|
||||||
return (
|
|
||||||
<div className={styles.page}>
|
|
||||||
<div className={styles.banner}>
|
|
||||||
<div>
|
|
||||||
<h1>{'prototypes'}</h1>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className={styles.content}>
|
|
||||||
<div>
|
|
||||||
<h2>{'chai'}</h2>
|
|
||||||
<p>
|
|
||||||
<i>{'2026 - present'}</i>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'Chai is a multi-agent management system. Chai includes a command-line interface and a desktop application. Chai is also a research project exploring agentic systems and specification-driven development practices.'
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<b>{'tech stack'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'Rust, LLMs'}</i>
|
|
||||||
<p>
|
|
||||||
<b>{'source code'}</b>
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/chai" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/chai'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a
|
|
||||||
href="https://github.com/chora-studio/chai-examples"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
{'https://github.com/chora-studio/chai-examples'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<hr />
|
|
||||||
<h2>{'chora'}</h2>
|
|
||||||
<p>
|
|
||||||
<i>{'2026 - present'}</i>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'Chora is an open protocol in its early design phase. Chora is also a research project exploring decentralized protocols, knowledge graphs, and how the two intersect. Check back soon for more information.'
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<b>{'tech stack'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'Rust, Typescript, React, Nostr, IPFS'}</i>
|
|
||||||
<p>
|
|
||||||
<b>{'source code'}</b>
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-io" target="_blank">
|
|
||||||
{'https://github.com/chora-io'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<hr />
|
|
||||||
<h2>{'chora (distributed ledger technology)'}</h2>
|
|
||||||
<p>
|
|
||||||
<i>{'2022 - 2025'}</i>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'Chora started out as a generic blockchain application that was used to test inter-blockchain communication with Regen Ledger. Chora later became a software stack built to support and extend Regen Ledger and to provide improved support for proof-of-authority in the Cosmos ecosystem.'
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'Chora was described as "software for commons governance and ecological regeneration built with distributed ledger technology." The stack included a blockchain application, blockchain modules, an indexing service, three web applications (Groups, Registry, and Ledger), and developer tools.'
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'In addition to building the stack, Chora Studio also operated validators on Regen mainnet and Regen and Chora test networks. Chora applications and services used the public full nodes operated by '
|
|
||||||
}
|
|
||||||
<Link href="/validator">{'Chora Validator'}</Link>
|
|
||||||
{'.'}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<b>{'tech stack'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'Go, Cosmos SDK, Typescript, React, Postgres, IPFS'}</i>
|
|
||||||
<p>
|
|
||||||
<b>{'source code'}</b>
|
|
||||||
</p>
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/web" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/web'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/docs" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/docs'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/chora" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/chora'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/mods" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/mods'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/server" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/server'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/schema" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/schema'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/chora-studio/testing" target="_blank">
|
|
||||||
{'https://github.com/chora-studio/testing'}
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<hr />
|
|
||||||
<h2>{'chora (simple and secure technologies)'}</h2>
|
|
||||||
<p>
|
|
||||||
<i>{'2020'}</i>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'Chora was a decentralized organization (or "DAO") deployed using Colony smart contracts. The organization itself was never operational but the vision was "simple and secure technologies for small farmers" and it was pursued through ethnographic research, media production, software development, and building prototypes with open-source hardware.'
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'A few short videos were produced from interviews with people working on small-scale farms. The interviewees were asked about the technologies they use and their relationship to technology. Alongside field research and video production, mesh networks and smart (or "simple and secure") devices were being built and tested using open-source hardware.'
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<b>{'film kit'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'Canon Mark ii, Zoom H4n, OpenShot'}</i>
|
|
||||||
<p>
|
|
||||||
<b>{'tech stack'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'Typescript, React, Arduino, RaspberryPi'}</i>
|
|
||||||
<p>
|
|
||||||
<b>{'source code'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'unavailable'}</i>
|
|
||||||
<hr />
|
|
||||||
<h2>{'chora (decentralized organizations)'}</h2>
|
|
||||||
<p>
|
|
||||||
<i>{'2018'}</i>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{
|
|
||||||
'Chora was a name for many projects, but the first project named Chora related to the work of Chora Studio was a side project for learning how to build applications with smart contracts in the Ethereum ecosystem. Chora was a web application and a set of smart contracts built for decentralized organizations (or "DAOs") operating on the Ethereum blockchain.'
|
|
||||||
}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<b>{'tech stack'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'Solidity, Truffle, Typescript, React, IPFS'}</i>
|
|
||||||
<p>
|
|
||||||
<b>{'source code'}</b>
|
|
||||||
</p>
|
|
||||||
<i>{'unavailable'}</i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default PrototypesPage
|
|
||||||
11
app/research/[id]/page.module.css
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
.page {
|
||||||
|
composes: page from 'chora/styles/page.css';
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner {
|
||||||
|
composes: banner-document from 'chora/styles/main.css';
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
composes: content-full from 'chora/styles/main.css';
|
||||||
|
}
|
||||||
34
app/research/[id]/page.tsx
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
|
import { getDoc, getDocs } from '@utils'
|
||||||
|
|
||||||
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: 'chora studio | research',
|
||||||
|
}
|
||||||
|
|
||||||
|
export const generateStaticParams = () => {
|
||||||
|
return getDocs()
|
||||||
|
}
|
||||||
|
|
||||||
|
const DocumentPage = async ({ params }: any) => {
|
||||||
|
const doc = await getDoc(params.id)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.page}>
|
||||||
|
<div className={styles.banner}>
|
||||||
|
<div>
|
||||||
|
<h3>{doc.date}</h3>
|
||||||
|
<h1>{doc.title}</h1>
|
||||||
|
<h2>{`by ${doc.author}`}</h2>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className={styles.content}>
|
||||||
|
<div dangerouslySetInnerHTML={{ __html: doc.content }} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default DocumentPage
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
.page {
|
|
||||||
composes: page from '../../../../styles/page.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner {
|
|
||||||
composes: banner-document from '../../../../styles/banner.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
composes: content-full from '../../../../styles/content.css';
|
|
||||||
}
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
import { Metadata } from 'next'
|
|
||||||
|
|
||||||
import { getArtifact, getArtifacts } from '@utils'
|
|
||||||
|
|
||||||
import styles from './page.module.css'
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: 'chora studio | research',
|
|
||||||
}
|
|
||||||
|
|
||||||
export const generateStaticParams = () => {
|
|
||||||
return getArtifacts('about')
|
|
||||||
}
|
|
||||||
|
|
||||||
const ArtifactPage = async ({ params }: any) => {
|
|
||||||
const artifact = await getArtifact('about', params.id)
|
|
||||||
return (
|
|
||||||
<div className={styles.page}>
|
|
||||||
<div className={styles.banner}>
|
|
||||||
<div>
|
|
||||||
<p>{`author: ${artifact.author}`}</p>
|
|
||||||
<p>{`title: ${artifact.title}`}</p>
|
|
||||||
<p>{`description: ${artifact.description}`}</p>
|
|
||||||
<p>{`created: ${artifact.created.toDateString()}`}</p>
|
|
||||||
<p>{`updated: ${artifact.updated.toDateString()}`}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className={styles.content}>
|
|
||||||
<div dangerouslySetInnerHTML={{ __html: artifact.content }} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ArtifactPage
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
.page {
|
|
||||||
composes: page from '../../../../styles/page.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner {
|
|
||||||
composes: banner-document from '../../../../styles/banner.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
composes: content-full from '../../../../styles/content.css';
|
|
||||||
}
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
import { Metadata } from 'next'
|
|
||||||
|
|
||||||
import { getArtifact, getArtifacts } from '@utils'
|
|
||||||
|
|
||||||
import styles from './page.module.css'
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: 'chora studio | research',
|
|
||||||
}
|
|
||||||
|
|
||||||
export const generateStaticParams = () => {
|
|
||||||
return getArtifacts('concepts')
|
|
||||||
}
|
|
||||||
|
|
||||||
const ArtifactPage = async ({ params }: any) => {
|
|
||||||
const artifact = await getArtifact('concepts', params.id)
|
|
||||||
return (
|
|
||||||
<div className={styles.page}>
|
|
||||||
<div className={styles.banner}>
|
|
||||||
<div>
|
|
||||||
<p>{`author: ${artifact.author}`}</p>
|
|
||||||
<p>{`title: ${artifact.title}`}</p>
|
|
||||||
<p>{`description: ${artifact.description}`}</p>
|
|
||||||
<p>{`created: ${artifact.created.toDateString()}`}</p>
|
|
||||||
<p>{`updated: ${artifact.updated.toDateString()}`}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className={styles.content}>
|
|
||||||
<div dangerouslySetInnerHTML={{ __html: artifact.content }} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ArtifactPage
|
|
||||||
|
|
@ -1,24 +1,35 @@
|
||||||
.page {
|
.page {
|
||||||
composes: page from '../../styles/page.css';
|
composes: page from 'chora/styles/page.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
composes: banner from '../../styles/banner.css';
|
composes: banner from 'chora/styles/main.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
composes: content-full from '../../styles/content.css';
|
composes: content-full from 'chora/styles/main.css';
|
||||||
|
min-height: 25vh !important;
|
||||||
|
align-items: end !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content ul {
|
.contentFull {
|
||||||
|
composes: content-full from 'chora/styles/main.css';
|
||||||
|
min-height: 25vh !important;
|
||||||
|
align-items: start !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contentFull h2 {
|
||||||
|
margin: 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.contentFull h3 {
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contentFull h4 {
|
||||||
|
color: var(--color-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.contentFull ul {
|
||||||
list-style: none inside none;
|
list-style: none inside none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content li {
|
|
||||||
margin: 2em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content p {
|
|
||||||
color: var(--color-text);
|
|
||||||
font-weight: 300;
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
import Link from 'next/link'
|
// import Link from 'next/link'
|
||||||
|
|
||||||
import { getArtifacts } from '@utils'
|
// import { getDocs } from '@utils'
|
||||||
|
|
||||||
import styles from './page.module.css'
|
import styles from './page.module.css'
|
||||||
|
|
||||||
|
|
@ -9,62 +9,55 @@ export const metadata: Metadata = {
|
||||||
title: 'chora studio | research',
|
title: 'chora studio | research',
|
||||||
}
|
}
|
||||||
|
|
||||||
async function getResearchArtifacts() {
|
// async function getResearch() {
|
||||||
return [
|
// const allDocs = getDocs().filter((p) => p.tags.includes('research'))
|
||||||
{ group: 'about', items: getArtifacts('about') },
|
|
||||||
{ group: 'concepts', items: getArtifacts('concepts') },
|
// // sort docs by date
|
||||||
{ group: 'tutorials', items: getArtifacts('tutorials') },
|
// return allDocs.sort((a, b) => {
|
||||||
]
|
// if (a.date < b.date) {
|
||||||
}
|
// return 1
|
||||||
|
// } else {
|
||||||
|
// return -1
|
||||||
|
// }
|
||||||
|
// })
|
||||||
|
// }
|
||||||
|
|
||||||
const ResearchPage = async () => {
|
const ResearchPage = async () => {
|
||||||
const artifacts = await getResearchArtifacts()
|
// const docs = await getResearch()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.page}>
|
<div className={styles.page}>
|
||||||
<div className={styles.banner}>
|
<div className={styles.banner}>
|
||||||
<div>
|
<div>
|
||||||
<h1>{'research'}</h1>
|
<h1 style={{ opacity: '0.75' }}>{'research'}</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
{
|
{
|
||||||
'Chora Studio is researching decentralized protocols and agentic systems with a special interest in privacy-preserving technologies.'
|
'Chora Studio is researching decentalized protocols and agentic systems with a special interest in FOSS and privacy-preserving technologies.'
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
{!artifacts.length ? (
|
|
||||||
<p>
|
|
||||||
<i>{'failed to load artifacts'}</i>
|
|
||||||
</p>
|
|
||||||
) : (
|
|
||||||
<div>
|
|
||||||
{artifacts.map(({ group, items }) => (
|
|
||||||
<div key={group} style={{ margin: '1em 0' }}>
|
|
||||||
<h2>{group}</h2>
|
|
||||||
<ul>
|
|
||||||
{items.map(
|
|
||||||
({ id, title, description, created, updated }) => (
|
|
||||||
<li key={id}>
|
|
||||||
<Link href={`/research/` + group + '/' + id}>
|
|
||||||
<h3>{title}</h3>
|
|
||||||
<p>{description}</p>
|
|
||||||
<p>
|
|
||||||
<i>{`created: ${created.toDateString()}`}</i>
|
|
||||||
{' | '}
|
|
||||||
<i>{`updated: ${updated.toDateString()}`}</i>
|
|
||||||
</p>
|
|
||||||
</Link>
|
|
||||||
</li>
|
|
||||||
),
|
|
||||||
)}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className={styles.contentFull}>
|
||||||
|
{/*{!docs.length ? (*/}
|
||||||
|
<p>{'coming soon...'}</p>
|
||||||
|
{/*) : (
|
||||||
|
<ul>
|
||||||
|
{docs.map(({ id, date, title, author }) => (
|
||||||
|
<li key={id}>
|
||||||
|
<Link href={`/research/${id}`}>
|
||||||
|
<h4>{date}</h4>
|
||||||
|
<h2>{title}</h2>
|
||||||
|
<h3>{`by ${author}`}</h3>
|
||||||
|
</Link>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
)}*/}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
.page {
|
|
||||||
composes: page from '../../../../styles/page.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner {
|
|
||||||
composes: banner-document from '../../../../styles/banner.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.content {
|
|
||||||
composes: content-full from '../../../../styles/content.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.content h2,
|
|
||||||
.content h3,
|
|
||||||
.content h4 {
|
|
||||||
margin: 1em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content h4 {
|
|
||||||
font-weight: 400;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content p {
|
|
||||||
margin: 1em 0;
|
|
||||||
padding: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content pre {
|
|
||||||
background-color: rgba(150, 150, 150, 0.1);
|
|
||||||
border-radius: 1em;
|
|
||||||
margin: 1em 0;
|
|
||||||
padding: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
import { Metadata } from 'next'
|
|
||||||
|
|
||||||
import { getArtifact, getArtifacts } from '@utils'
|
|
||||||
|
|
||||||
import styles from './page.module.css'
|
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
|
||||||
title: 'chora studio | research',
|
|
||||||
}
|
|
||||||
|
|
||||||
export const generateStaticParams = () => {
|
|
||||||
return getArtifacts('tutorials')
|
|
||||||
}
|
|
||||||
|
|
||||||
const ArtifactPage = async ({ params }: any) => {
|
|
||||||
const artifact = await getArtifact('tutorials', params.id)
|
|
||||||
return (
|
|
||||||
<div className={styles.page}>
|
|
||||||
<div className={styles.banner}>
|
|
||||||
<div>
|
|
||||||
<p>{`author: ${artifact.author}`}</p>
|
|
||||||
<p>{`title: ${artifact.title}`}</p>
|
|
||||||
<p>{`description: ${artifact.description}`}</p>
|
|
||||||
<p>{`created: ${artifact.created.toDateString()}`}</p>
|
|
||||||
<p>{`updated: ${artifact.updated.toDateString()}`}</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className={styles.content}>
|
|
||||||
<div dangerouslySetInnerHTML={{ __html: artifact.content }} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ArtifactPage
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
.page {
|
.page {
|
||||||
composes: page from '../../styles/page.css';
|
composes: page from 'chora/styles/page.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
composes: banner from '../../styles/banner.css';
|
composes: banner from 'chora/styles/main.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
composes: content-full from '../../styles/content.css';
|
composes: content-full from 'chora/styles/main.css';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ const ServicesPage = () => {
|
||||||
<div className={styles.page}>
|
<div className={styles.page}>
|
||||||
<div className={styles.banner}>
|
<div className={styles.banner}>
|
||||||
<div>
|
<div>
|
||||||
<h1>{'services'}</h1>
|
<h1 style={{ opacity: '0.75' }}>{'services'}</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
|
|
@ -32,16 +32,11 @@ const ServicesPage = () => {
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
{
|
{
|
||||||
'If your organization is interested in working with Chora Studio, please reach out with information about the organization and project:'
|
'If your organization is interested in working with Chora Studio, please reach out with information about your organization and your project.'
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
<p style={{ textAlign: 'center' }}>{'contact [at] chora.studio'}</p>
|
<p style={{ margin: '1em', textAlign: 'center' }}>
|
||||||
<p>
|
{'contact [at] chora.studio'}
|
||||||
<i>
|
|
||||||
{
|
|
||||||
'The above email address uses Proton Mail under the hood. If you send an email using Proton Mail, our communication will be end-to-end encrypted.'
|
|
||||||
}
|
|
||||||
</i>
|
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,19 @@
|
||||||
.page {
|
.page {
|
||||||
composes: page from '../../styles/page.css';
|
composes: page from 'chora/styles/page.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner {
|
||||||
composes: banner from '../../styles/banner.css';
|
composes: banner from 'chora/styles/main.css';
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
composes: content-full from '../../styles/content.css';
|
composes: content-full from 'chora/styles/main.css';
|
||||||
|
}
|
||||||
|
|
||||||
|
.content ul {
|
||||||
|
margin: 1em 1em 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content li {
|
||||||
|
margin: 1em;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ const ValidatorPage = () => {
|
||||||
<div className={styles.page}>
|
<div className={styles.page}>
|
||||||
<div className={styles.banner}>
|
<div className={styles.banner}>
|
||||||
<div>
|
<div>
|
||||||
<h1>{'validator'}</h1>
|
<h1 style={{ opacity: '0.75' }}>{'validator'}</h1>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.content}>
|
<div className={styles.content}>
|
||||||
|
|
@ -22,7 +22,7 @@ const ValidatorPage = () => {
|
||||||
<p style={{ background: 'red', color: 'white', textAlign: 'center' }}>
|
<p style={{ background: 'red', color: 'white', textAlign: 'center' }}>
|
||||||
{'NOTICE: Chora Validator is no longer in operation.'}
|
{'NOTICE: Chora Validator is no longer in operation.'}
|
||||||
</p>
|
</p>
|
||||||
<br />
|
<br/>
|
||||||
<p>
|
<p>
|
||||||
{'Chora Studio operates Chora Validator on '}
|
{'Chora Studio operates Chora Validator on '}
|
||||||
<a href={regenLink} target="_blank">
|
<a href={regenLink} target="_blank">
|
||||||
|
|
@ -86,7 +86,7 @@ const ValidatorPage = () => {
|
||||||
<h2>{'regen'}</h2>
|
<h2>{'regen'}</h2>
|
||||||
<p>
|
<p>
|
||||||
{
|
{
|
||||||
'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 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.'
|
||||||
}
|
}
|
||||||
</p>
|
</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Subproject commit 24c70846869161333840198f41f0fc79822379ff
|
|
||||||
|
|
@ -1,96 +0,0 @@
|
||||||
-------------------------------
|
|
||||||
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.
|
|
||||||
|
Before Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 155 KiB |
|
Before Width: | Height: | Size: 152 KiB |
|
Before Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 137 KiB |
BIN
bun.lockb
Executable file → Normal file
|
|
@ -1,30 +0,0 @@
|
||||||
.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%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.background img {
|
|
||||||
scale: 35%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.background div {
|
|
||||||
background: var(--background-primary-transparent);
|
|
||||||
height: 100vh;
|
|
||||||
position: fixed;
|
|
||||||
width: 100vw;
|
|
||||||
}
|
|
||||||
|
|
@ -1,24 +0,0 @@
|
||||||
'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
|
|
||||||
|
|
@ -1,11 +0,0 @@
|
||||||
.footer {
|
|
||||||
composes: footer from '../styles/footer.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
composes: footer-title from '../styles/footer.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.list {
|
|
||||||
composes: footer-list from '../styles/footer.css';
|
|
||||||
}
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import Image from 'next/image'
|
|
||||||
import Link from 'next/link'
|
|
||||||
import * as React from 'react'
|
|
||||||
import { useContext } from 'react'
|
|
||||||
|
|
||||||
import choraDarkSmall from '../assets//images/chora_dark_small.png'
|
|
||||||
import choraLightSmall from '../assets//images/chora_light_small.png'
|
|
||||||
import { ThemeContext } from '../contexts'
|
|
||||||
import { ArrowUpRight } from './icons'
|
|
||||||
|
|
||||||
import styles from './Footer.module.css'
|
|
||||||
|
|
||||||
const Footer = ({ about, sections }: any) => {
|
|
||||||
const { darkTheme } = useContext(ThemeContext)
|
|
||||||
|
|
||||||
const currentYear = new Date().getFullYear()
|
|
||||||
|
|
||||||
return (
|
|
||||||
<footer className={styles.footer}>
|
|
||||||
<div style={{ display: 'none' }}>{darkTheme?.toString()}</div>
|
|
||||||
<div>
|
|
||||||
<div className={styles.title}>
|
|
||||||
<Image
|
|
||||||
alt="chora"
|
|
||||||
src={darkTheme ? choraDarkSmall : choraLightSmall}
|
|
||||||
/>
|
|
||||||
<h4>{`© ${currentYear} Chora Studio LLC`}</h4>
|
|
||||||
</div>
|
|
||||||
{about && (
|
|
||||||
<div className={styles.list}>
|
|
||||||
<h3>{about.title}</h3>
|
|
||||||
<div>{about.text}</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{sections.map((section: any) => (
|
|
||||||
<div className={styles.list} key={section.title}>
|
|
||||||
<h3>{section.title}</h3>
|
|
||||||
<ul>
|
|
||||||
{section.items.map((item: any) => (
|
|
||||||
<li key={item.title}>
|
|
||||||
<Link href={item.link} target={item.target}>
|
|
||||||
{item.title}
|
|
||||||
{item.target && <ArrowUpRight />}
|
|
||||||
</Link>
|
|
||||||
</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Footer
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
.header {
|
|
||||||
composes: header from '../styles/header.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.menu {
|
|
||||||
composes: header-menu from '../styles/header.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.divider {
|
|
||||||
composes: header-divider from '../styles/header.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 850px) {
|
|
||||||
.buttonMobile {
|
|
||||||
composes: button;
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
@ -1,74 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import Link from 'next/link'
|
|
||||||
import * as React from 'react'
|
|
||||||
import { useContext } from 'react'
|
|
||||||
|
|
||||||
import { MenuContext, ThemeContext } from '../contexts'
|
|
||||||
import { HeaderTitle } from '.'
|
|
||||||
import { ArrowUpRight, MenuIcon, ThemeIcon } from './icons'
|
|
||||||
|
|
||||||
import styles from './Header.module.css'
|
|
||||||
|
|
||||||
const Header = ({ title, items, showMenuButton, showMobileTitle }: any) => {
|
|
||||||
const { showMenu, setShowMenu } = useContext(MenuContext)
|
|
||||||
const { darkTheme, setDarkTheme } = useContext(ThemeContext)
|
|
||||||
|
|
||||||
const toggleMenu = () => {
|
|
||||||
if (showMenu) {
|
|
||||||
setShowMenu(false)
|
|
||||||
} else {
|
|
||||||
setShowMenu(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const toggleTheme = () => {
|
|
||||||
if (darkTheme) {
|
|
||||||
setDarkTheme(false)
|
|
||||||
} else {
|
|
||||||
setDarkTheme(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<header className={styles.header}>
|
|
||||||
<div style={{ display: 'none' }}>{darkTheme?.toString()}</div>
|
|
||||||
<div>
|
|
||||||
{showMenuButton && (
|
|
||||||
<button className={styles.buttonMobile} onClick={toggleMenu}>
|
|
||||||
<MenuIcon darkTheme={darkTheme} />
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
<HeaderTitle
|
|
||||||
darkTheme={darkTheme}
|
|
||||||
title={title}
|
|
||||||
showMobileTitle={showMobileTitle}
|
|
||||||
/>
|
|
||||||
<div className={styles.menu}>
|
|
||||||
<ul>
|
|
||||||
{items &&
|
|
||||||
items.map((item: any, i: number) =>
|
|
||||||
item === 'divider' ? (
|
|
||||||
<li key={i} className={styles.divider}>
|
|
||||||
{'|'}
|
|
||||||
</li>
|
|
||||||
) : (
|
|
||||||
<li key={item.title}>
|
|
||||||
<Link href={item.link} target={item.target}>
|
|
||||||
{item.title}
|
|
||||||
{item.target && <ArrowUpRight />}
|
|
||||||
</Link>
|
|
||||||
</li>
|
|
||||||
),
|
|
||||||
)}
|
|
||||||
</ul>
|
|
||||||
<button className={styles.button} onClick={toggleTheme}>
|
|
||||||
<ThemeIcon darkTheme={darkTheme} />
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Header
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
.title {
|
|
||||||
composes: header-title from '../styles/header.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.title {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobileTitle {
|
|
||||||
composes: header-title from '../styles/header.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerTitleText {
|
|
||||||
composes: header-title-text from '../styles/header.css';
|
|
||||||
}
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import Image from 'next/image'
|
|
||||||
import Link from 'next/link'
|
|
||||||
import * as React from 'react'
|
|
||||||
|
|
||||||
import choraLogoDark from '../assets/images/chora_dark_small.png'
|
|
||||||
import choraLogoLight from '../assets/images/chora_light_small.png'
|
|
||||||
|
|
||||||
import styles from './HeaderTitle.module.css'
|
|
||||||
|
|
||||||
const HeaderTitle = ({ darkTheme, title, showMobileTitle }: any) => (
|
|
||||||
<div className={showMobileTitle ? styles.mobileTitle : styles.title}>
|
|
||||||
<Link href={(title && title.link) || '/'}>
|
|
||||||
<Image alt="chora" src={darkTheme ? choraLogoDark : choraLogoLight} />
|
|
||||||
<div className={styles.headerTitleText}>
|
|
||||||
{'chora '}
|
|
||||||
{title && title.titleX && (
|
|
||||||
<span style={{ opacity: '0.75' }}>{title.titleX}</span>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</Link>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
|
|
||||||
export default HeaderTitle
|
|
||||||
|
|
@ -1,35 +0,0 @@
|
||||||
.sidebar {
|
|
||||||
composes: sidebar from '../styles/sidebar.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.mobileOnly {
|
|
||||||
composes: sidebar from '../styles/sidebar.css';
|
|
||||||
min-height: calc(100vh - var(--header-height));
|
|
||||||
width: 75vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* cancel sidebar styling */
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.mobileOnly {
|
|
||||||
display: block !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 850px) {
|
|
||||||
.mobileOnly {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.active {
|
|
||||||
composes: sidebar-link-active from '../styles/sidebar.css';
|
|
||||||
}
|
|
||||||
|
|
||||||
.divider {
|
|
||||||
margin: 1em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.button {
|
|
||||||
background: none;
|
|
||||||
color: var(--color-theme);
|
|
||||||
}
|
|
||||||
|
|
@ -1,58 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import Link from 'next/link'
|
|
||||||
import { usePathname } from 'next/navigation'
|
|
||||||
import * as React from 'react'
|
|
||||||
import { useContext, useEffect, useState } from 'react'
|
|
||||||
|
|
||||||
import { MenuContext } from '../contexts'
|
|
||||||
import { ArrowUpRight } from './icons'
|
|
||||||
|
|
||||||
import styles from './Sidebar.module.css'
|
|
||||||
|
|
||||||
const Sidebar = ({ items, mobileOnly }: any) => {
|
|
||||||
const currentRoute = usePathname()
|
|
||||||
|
|
||||||
const { showMenu, setShowMenu } = useContext(MenuContext)
|
|
||||||
|
|
||||||
const [initRoute, setInitRoute] = useState<string>('')
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (currentRoute && !initRoute) {
|
|
||||||
setInitRoute(currentRoute)
|
|
||||||
}
|
|
||||||
if (initRoute && initRoute !== currentRoute) {
|
|
||||||
setInitRoute(currentRoute)
|
|
||||||
setShowMenu(false)
|
|
||||||
}
|
|
||||||
}, [currentRoute, initRoute, setShowMenu])
|
|
||||||
|
|
||||||
return !mobileOnly || showMenu ? (
|
|
||||||
<div className={mobileOnly ? styles.mobileOnly : styles.sidebar}>
|
|
||||||
<ul>
|
|
||||||
{items.map((item: any, i: number) =>
|
|
||||||
item === 'divider' ? (
|
|
||||||
<hr key={i} className={styles.divider} />
|
|
||||||
) : (
|
|
||||||
<li key={item.title}>
|
|
||||||
<Link
|
|
||||||
href={item.link}
|
|
||||||
className={
|
|
||||||
currentRoute === item.link ? styles.active : undefined
|
|
||||||
}
|
|
||||||
target={item.target}
|
|
||||||
>
|
|
||||||
{item.title}
|
|
||||||
{item.target === '_blank' && <ArrowUpRight />}
|
|
||||||
</Link>
|
|
||||||
</li>
|
|
||||||
),
|
|
||||||
)}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<></>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default Sidebar
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import * as React from 'react'
|
|
||||||
import { useContext } from 'react'
|
|
||||||
|
|
||||||
import { ThemeContext } from '../../contexts'
|
|
||||||
|
|
||||||
const defaultColor = '#00C3A5'
|
|
||||||
|
|
||||||
const ArrowRight = ({ color, useTheme }: any) => {
|
|
||||||
const { darkTheme } = useContext(ThemeContext)
|
|
||||||
|
|
||||||
const stroke = color || defaultColor
|
|
||||||
|
|
||||||
return (
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="0.5em"
|
|
||||||
width="0.5em"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
style={{ marginRight: '0.5em' }}
|
|
||||||
>
|
|
||||||
<line
|
|
||||||
x1="3"
|
|
||||||
y1="10"
|
|
||||||
x2="17"
|
|
||||||
y2="10"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="3"
|
|
||||||
y1="10"
|
|
||||||
x2="7"
|
|
||||||
y2="15"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="3"
|
|
||||||
y1="10"
|
|
||||||
x2="7"
|
|
||||||
y2="5"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ArrowRight
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import * as React from 'react'
|
|
||||||
import { useContext } from 'react'
|
|
||||||
|
|
||||||
import { ThemeContext } from '../../contexts'
|
|
||||||
|
|
||||||
const defaultColor = '#00C3A5'
|
|
||||||
|
|
||||||
const ArrowRight = ({ color, useTheme }: any) => {
|
|
||||||
const { darkTheme } = useContext(ThemeContext)
|
|
||||||
|
|
||||||
const stroke = color || defaultColor
|
|
||||||
|
|
||||||
return (
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="0.5em"
|
|
||||||
width="0.5em"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
style={{ marginLeft: '0.5em' }}
|
|
||||||
>
|
|
||||||
<line
|
|
||||||
x1="3"
|
|
||||||
y1="10"
|
|
||||||
x2="17"
|
|
||||||
y2="10"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="17"
|
|
||||||
y1="10"
|
|
||||||
x2="12"
|
|
||||||
y2="5"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="17"
|
|
||||||
y1="10"
|
|
||||||
x2="12"
|
|
||||||
y2="15"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ArrowRight
|
|
||||||
|
|
@ -1,54 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import * as React from 'react'
|
|
||||||
import { useContext } from 'react'
|
|
||||||
|
|
||||||
import { ThemeContext } from '../../contexts'
|
|
||||||
|
|
||||||
const defaultColor = '#00C3A5'
|
|
||||||
|
|
||||||
const ArrowUpRight = ({ color, useTheme }: any) => {
|
|
||||||
const { darkTheme } = useContext(ThemeContext)
|
|
||||||
|
|
||||||
const stroke = color || defaultColor
|
|
||||||
|
|
||||||
return (
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="0.5em"
|
|
||||||
width="0.5em"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
style={{ marginLeft: '0.5em' }}
|
|
||||||
>
|
|
||||||
<line
|
|
||||||
x1="3"
|
|
||||||
y1="17"
|
|
||||||
x2="17"
|
|
||||||
y2="3"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="17"
|
|
||||||
y1="3"
|
|
||||||
x2="7"
|
|
||||||
y2="3"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="17"
|
|
||||||
y1="3"
|
|
||||||
x2="17"
|
|
||||||
y2="12"
|
|
||||||
stroke={useTheme ? (darkTheme ? '#000' : '#FFF') : stroke}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="3"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ArrowUpRight
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
||||||
import * as React from 'react'
|
|
||||||
|
|
||||||
const CheckIcon = ({ darkTheme }: any) => (
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="0.5em"
|
|
||||||
width="0.5em"
|
|
||||||
viewBox="0 0 20 20"
|
|
||||||
>
|
|
||||||
<line
|
|
||||||
x1="7"
|
|
||||||
y1="17"
|
|
||||||
x2="17"
|
|
||||||
y2="3"
|
|
||||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="6"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="7"
|
|
||||||
y1="17"
|
|
||||||
x2="3"
|
|
||||||
y2="10"
|
|
||||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="6"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
)
|
|
||||||
|
|
||||||
export default CheckIcon
|
|
||||||
|
|
@ -1,40 +0,0 @@
|
||||||
import * as React from 'react'
|
|
||||||
|
|
||||||
const MenuIcon = ({ darkTheme }: any) => (
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="1.5em"
|
|
||||||
width="1.5em"
|
|
||||||
viewBox="0 0 100 100"
|
|
||||||
>
|
|
||||||
<line
|
|
||||||
x1="10"
|
|
||||||
y1="85"
|
|
||||||
x2="90"
|
|
||||||
y2="85"
|
|
||||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="10"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="10"
|
|
||||||
y1="50"
|
|
||||||
x2="90"
|
|
||||||
y2="50"
|
|
||||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="10"
|
|
||||||
/>
|
|
||||||
<line
|
|
||||||
x1="10"
|
|
||||||
y1="15"
|
|
||||||
x2="90"
|
|
||||||
y2="15"
|
|
||||||
stroke={darkTheme ? '#FFFFFF' : '#111111'}
|
|
||||||
strokeLinecap="round"
|
|
||||||
strokeWidth="10"
|
|
||||||
/>
|
|
||||||
</svg>
|
|
||||||
)
|
|
||||||
|
|
||||||
export default MenuIcon
|
|
||||||
|
|
@ -1,15 +0,0 @@
|
||||||
import * as React from 'react'
|
|
||||||
|
|
||||||
const ThemeIcon = ({ darkTheme }: any) => (
|
|
||||||
<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="37" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
|
||||||
</svg>
|
|
||||||
)
|
|
||||||
|
|
||||||
export default ThemeIcon
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
||||||
import * as React from 'react'
|
|
||||||
|
|
||||||
const UserIcon = ({ darkTheme }: any) => (
|
|
||||||
<svg
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
height="1.5em"
|
|
||||||
width="1.5em"
|
|
||||||
viewBox="0 0 100 100"
|
|
||||||
>
|
|
||||||
<circle cx="50" cy="40" r="30" fill={darkTheme ? '#FFFFFF' : '#111111'} />
|
|
||||||
<circle cx="48" cy="40" r="22" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
|
||||||
<circle cx="50" cy="105" r="40" fill={darkTheme ? '#FFFFFF' : '#111111'} />
|
|
||||||
<circle cx="48" cy="105" r="32" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
|
||||||
</svg>
|
|
||||||
)
|
|
||||||
|
|
||||||
export default UserIcon
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
export { default as ArrowLeft } from './ArrowLeft'
|
|
||||||
export { default as ArrowRight } from './ArrowRight'
|
|
||||||
export { default as ArrowUpRight } from './ArrowUpRight'
|
|
||||||
export { default as CheckIcon } from './CheckIcon'
|
|
||||||
export { default as MenuIcon } from './MenuIcon'
|
|
||||||
export { default as ThemeIcon } from './ThemeIcon'
|
|
||||||
export { default as UserIcon } from './UserIcon'
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
export { default as Background } from './Background'
|
|
||||||
export { default as Footer } from './Footer'
|
|
||||||
export { default as Header } from './Header'
|
|
||||||
export { default as HeaderTitle } from './HeaderTitle'
|
|
||||||
export { default as Sidebar } from './Sidebar'
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
import * as React from 'react'
|
|
||||||
import { createContext, useState } from 'react'
|
|
||||||
|
|
||||||
const MenuContext = createContext<any>({})
|
|
||||||
|
|
||||||
const MenuContextProvider = (props: any) => {
|
|
||||||
const [showMenu, setShowMenu] = useState<boolean>(false)
|
|
||||||
const [showUser, setShowUser] = useState<boolean>(false)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<MenuContext.Provider
|
|
||||||
value={{
|
|
||||||
showMenu,
|
|
||||||
setShowMenu,
|
|
||||||
showUser,
|
|
||||||
setShowUser,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{props.children}
|
|
||||||
</MenuContext.Provider>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export { MenuContext, MenuContextProvider }
|
|
||||||
|
|
@ -1,56 +0,0 @@
|
||||||
'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 = '#FCFCFC' // --background-secondary (light-theme)
|
|
||||||
}
|
|
||||||
|
|
||||||
localStorage.setItem(cachedDarkKey, darkTheme ? 'true' : 'false')
|
|
||||||
}
|
|
||||||
}, [darkTheme])
|
|
||||||
|
|
||||||
return (
|
|
||||||
<ThemeContext.Provider
|
|
||||||
value={{
|
|
||||||
darkTheme,
|
|
||||||
setDarkTheme,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{props.children}
|
|
||||||
</ThemeContext.Provider>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
export { ThemeContext, ThemeContextProvider }
|
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
export { MenuContext, MenuContextProvider } from './MenuContext'
|
|
||||||
export { ThemeContext, ThemeContextProvider } from './ThemeContext'
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
"clean": "rm -rf .next dist node_modules"
|
"clean": "rm -rf .next dist node_modules"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"chora": "npm:@chora-io/chora@v0.1.0-beta12",
|
||||||
"gray-matter": "^4",
|
"gray-matter": "^4",
|
||||||
"next": "^14",
|
"next": "^14",
|
||||||
"react": "^18",
|
"react": "^18",
|
||||||
|
|
|
||||||
1
research
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d16e431f8436968a5cc38d1fc039e7ae1753fc18
|
||||||
|
|
@ -1,86 +0,0 @@
|
||||||
/* banner */
|
|
||||||
|
|
||||||
.banner {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
font-size: 1.5em;
|
|
||||||
justify-content: center;
|
|
||||||
min-height: 10vh;
|
|
||||||
padding: 2em 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.banner {
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner h1 {
|
|
||||||
font-size: 1.75em;
|
|
||||||
margin-top: 2.5%;
|
|
||||||
padding: 0.15em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.banner h1 {
|
|
||||||
padding: 0.1em 0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner p {
|
|
||||||
padding: 0.2em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.banner p {
|
|
||||||
padding: 0.15em 0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner p > i {
|
|
||||||
color: var(--color-theme);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* banner-full */
|
|
||||||
|
|
||||||
.banner-full {
|
|
||||||
composes: banner;
|
|
||||||
min-height: calc(100vh - var(--header-height));
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner-full > div {
|
|
||||||
margin-bottom: calc(1% + var(--header-height));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* banner-document */
|
|
||||||
|
|
||||||
.banner-document {
|
|
||||||
composes: banner;
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner-document h1 {
|
|
||||||
color: var(--color-theme);
|
|
||||||
font-size: 1.5em;
|
|
||||||
margin: 0.5em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.banner-document h1 {
|
|
||||||
font-size: 1.25em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner-document h2,
|
|
||||||
.banner-document h3 {
|
|
||||||
color: var(--color-text);
|
|
||||||
font-size: 1em;
|
|
||||||
font-weight: 300;
|
|
||||||
opacity: 0.8;
|
|
||||||
}
|
|
||||||
|
|
||||||
.banner-document h3 {
|
|
||||||
margin-top: 1em;
|
|
||||||
}
|
|
||||||
|
|
@ -1,77 +0,0 @@
|
||||||
/* content */
|
|
||||||
|
|
||||||
.content {
|
|
||||||
align-items: center;
|
|
||||||
background: var(--background-primary);
|
|
||||||
display: flex;
|
|
||||||
font-size: 1.2em;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.content {
|
|
||||||
font-size: 1em;
|
|
||||||
padding: 0 2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.content > div {
|
|
||||||
display: block;
|
|
||||||
max-width: 650px;
|
|
||||||
padding: 2em 0 4em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.content > div {
|
|
||||||
padding: 1em 0 2em 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.content > div > h1 {
|
|
||||||
font-size: 1.8em;
|
|
||||||
padding: 0.5em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content > div > h2 {
|
|
||||||
padding: 0.25em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.content > div > h2 {
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.content > div > p {
|
|
||||||
padding: 1em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content > div > a {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content h2 {
|
|
||||||
margin: 0.5em 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content ul {
|
|
||||||
list-style-position: inside;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content li {
|
|
||||||
line-height: 1.75;
|
|
||||||
}
|
|
||||||
|
|
||||||
.content hr {
|
|
||||||
border: 1px solid var(--box-shadow-color);
|
|
||||||
border-bottom-width: 0;
|
|
||||||
box-shadow: 0 0 1px var(--box-shadow-color);
|
|
||||||
margin: 5vh 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* content-full */
|
|
||||||
|
|
||||||
.content-full {
|
|
||||||
composes: content;
|
|
||||||
min-height: calc(100vh - var(--header-height) - var(--footer-height));
|
|
||||||
}
|
|
||||||
|
|
@ -1,68 +0,0 @@
|
||||||
/* footer */
|
|
||||||
|
|
||||||
.footer {
|
|
||||||
background: var(--background-primary);
|
|
||||||
box-shadow: var(--box-shadow);
|
|
||||||
height: var(--footer-height);
|
|
||||||
overflow: hidden;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer > div {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
height: inherit;
|
|
||||||
justify-content: center;
|
|
||||||
margin: 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* footer-title */
|
|
||||||
|
|
||||||
.footer-title {
|
|
||||||
margin: 0 4em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-title img {
|
|
||||||
display: block;
|
|
||||||
height: 120px;
|
|
||||||
margin: 0 auto 1em auto;
|
|
||||||
width: 120px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.footer-title img {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-title h4 {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* footer-list */
|
|
||||||
|
|
||||||
.footer-list {
|
|
||||||
font-size: 0.95em;
|
|
||||||
height: 160px;
|
|
||||||
margin: 0 2em;
|
|
||||||
max-width: 220px;
|
|
||||||
min-width: 140px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.footer-list {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-list h3 {
|
|
||||||
margin-bottom: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-list ul {
|
|
||||||
margin: 0 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.footer-list li {
|
|
||||||
margin: 0.75em;
|
|
||||||
}
|
|
||||||
|
|
@ -1,95 +0,0 @@
|
||||||
/* header */
|
|
||||||
|
|
||||||
.header {
|
|
||||||
background: var(--background-primary);
|
|
||||||
box-shadow: var(--box-shadow);
|
|
||||||
height: var(--header-height);
|
|
||||||
overflow: hidden;
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header > div {
|
|
||||||
display: flex;
|
|
||||||
height: inherit;
|
|
||||||
justify-content: space-between;
|
|
||||||
margin: 0 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* header-title */
|
|
||||||
|
|
||||||
.header-title {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-title a {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-title img {
|
|
||||||
height: 36px;
|
|
||||||
width: 36px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.header-title img {
|
|
||||||
height: 27px;
|
|
||||||
width: 27px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-title-text {
|
|
||||||
color: var(--color-text);
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 300; /* cancel link weight */
|
|
||||||
margin-left: 8px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.header-title-text {
|
|
||||||
font-size: 15px;
|
|
||||||
margin-left: 6px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* header-menu */
|
|
||||||
|
|
||||||
.header-menu {
|
|
||||||
display: flex;
|
|
||||||
height: var(--header-height);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.header-menu > div {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-menu ul {
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
list-style: none inside none;
|
|
||||||
margin: 0 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.header-menu ul {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.header-menu li {
|
|
||||||
margin: 0.6em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* header-divider */
|
|
||||||
|
|
||||||
.header-divider {
|
|
||||||
color: var(--color-theme);
|
|
||||||
}
|
|
||||||
|
|
@ -1,61 +0,0 @@
|
||||||
/* page */
|
|
||||||
|
|
||||||
.page {
|
|
||||||
margin-top: var(--header-height);
|
|
||||||
min-height: calc(100vh - var(--header-height) - var(--footer-height));
|
|
||||||
}
|
|
||||||
|
|
||||||
/* page-center */
|
|
||||||
|
|
||||||
.page-center {
|
|
||||||
composes: page;
|
|
||||||
align-items: center;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-center > div {
|
|
||||||
margin-bottom: 10vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* page-center-not-found */
|
|
||||||
|
|
||||||
.page-center-not-found {
|
|
||||||
composes: page-center;
|
|
||||||
background: var(--background-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.page-center-not-found {
|
|
||||||
padding: 0 1.5em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-center-not-found h1 {
|
|
||||||
color: var(--color-theme);
|
|
||||||
font-size: 3em;
|
|
||||||
margin-bottom: 0.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.page-center-not-found h1 {
|
|
||||||
font-size: 2em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-center-not-found h2 {
|
|
||||||
font-size: 2em;
|
|
||||||
font-weight: 300;
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.page-center-not-found h2 {
|
|
||||||
font-size: 1.25em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.page-center-not-found p {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
@ -1,59 +0,0 @@
|
||||||
/* sidebar */
|
|
||||||
|
|
||||||
.sidebar {
|
|
||||||
background: var(--background-primary);
|
|
||||||
box-shadow: var(--box-shadow);
|
|
||||||
height: calc(100vh - var(--header-height));
|
|
||||||
margin-top: var(--header-height);
|
|
||||||
overflow-y: scroll;
|
|
||||||
position: fixed;
|
|
||||||
scrollbar-width: none; /* hide scrollbar - Firefox */
|
|
||||||
width: var(--sidebar-width);
|
|
||||||
z-index: 1;
|
|
||||||
-ms-overflow-style: none; /* hide scrollbar - Internet Explorer 10+ */
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar::-webkit-scrollbar {
|
|
||||||
display: none; /* hide scrollbar - Safari and Chrome */
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar ul {
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar > ul {
|
|
||||||
padding: 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 850px) {
|
|
||||||
.sidebar > ul {
|
|
||||||
padding: 1em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar > ul > li {
|
|
||||||
font-size: 1.2em;
|
|
||||||
padding: 0.75em 1.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar > ul > ul {
|
|
||||||
margin-left: 1.75em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar > ul > ul > li {
|
|
||||||
font-size: 1.1em;
|
|
||||||
padding: 0.65em 0.5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* sidebar-active */
|
|
||||||
|
|
||||||
.sidebar-active {
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* sidebar-breadcrumb */
|
|
||||||
|
|
||||||
.sidebar-breadcrumb a {
|
|
||||||
font-size: 0.85em;
|
|
||||||
margin-left: -0.5em;
|
|
||||||
}
|
|
||||||
|
|
@ -20,8 +20,6 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@components": ["components/index.ts"],
|
|
||||||
"@contexts": ["contexts/index.ts"],
|
|
||||||
"@utils": ["utils/index.ts"]
|
"@utils": ["utils/index.ts"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import matter from 'gray-matter'
|
||||||
import { remark } from 'remark'
|
import { remark } from 'remark'
|
||||||
import html from 'remark-html'
|
import html from 'remark-html'
|
||||||
|
|
||||||
const root = path.join(process.cwd(), 'artifacts')
|
const docsDirectory = path.join(process.cwd(), 'research/docs')
|
||||||
|
|
||||||
export async function getArtifact(dir: string, id: string) {
|
export async function getDoc(id: string) {
|
||||||
const fullPath = path.join(root, dir, `${id}.md`)
|
const fullPath = path.join(docsDirectory, `${id}.md`)
|
||||||
|
|
||||||
// read file contents
|
// read file contents
|
||||||
const fileContents = fs.readFileSync(fullPath, 'utf8')
|
const fileContents = fs.readFileSync(fullPath, 'utf8')
|
||||||
|
|
@ -2,19 +2,14 @@ import fs from 'fs'
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import matter from 'gray-matter'
|
import matter from 'gray-matter'
|
||||||
|
|
||||||
const root = path.join(process.cwd(), 'artifacts')
|
const docsDirectory = path.join(process.cwd(), 'research/docs')
|
||||||
|
|
||||||
export const getArtifacts = (dir: string) => {
|
export const getDocs = () => {
|
||||||
const fileNames = fs.readdirSync(root + '/' + dir)
|
const fileNames = fs.readdirSync(docsDirectory)
|
||||||
|
return fileNames.map((fileName) => {
|
||||||
const filtered = fileNames.filter((fileName) => fileName.includes(`.md`))
|
// set id and full path
|
||||||
|
|
||||||
return filtered.map((fileName) => {
|
|
||||||
// set id
|
|
||||||
const id = fileName.replace(/\.md$/, '')
|
const id = fileName.replace(/\.md$/, '')
|
||||||
|
const fullPath = path.join(docsDirectory, fileName)
|
||||||
// set full path
|
|
||||||
const fullPath = path.join(root, dir, fileName)
|
|
||||||
|
|
||||||
// read file contents
|
// read file contents
|
||||||
const fileContents = fs.readFileSync(fullPath, 'utf8')
|
const fileContents = fs.readFileSync(fullPath, 'utf8')
|
||||||
|
|
@ -1,2 +1,2 @@
|
||||||
export { getArtifact } from './getArtifact'
|
export { getDoc } from './getDoc'
|
||||||
export { getArtifacts } from './getArtifacts'
|
export { getDocs } from './getDocs'
|
||||||
|
|
|
||||||