diff --git a/app/globals.css b/app/globals.css index 80937a4..7b05eee 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1 +1,196 @@ -@import 'chora/styles/globals.css'; +@font-face { + 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 */ +} diff --git a/app/layout.module.css b/app/layout.module.css deleted file mode 100644 index 4dc146b..0000000 --- a/app/layout.module.css +++ /dev/null @@ -1,119 +0,0 @@ -.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; - } -} - diff --git a/app/not-found.module.css b/app/not-found.module.css index c4b88a4..38e6395 100644 --- a/app/not-found.module.css +++ b/app/not-found.module.css @@ -1,3 +1,3 @@ .page { - composes: page-center-not-found from 'chora/styles/page.css'; + composes: page-center-not-found from '../styles/page.css'; } diff --git a/app/page.module.css b/app/page.module.css index d909518..7c49f36 100644 --- a/app/page.module.css +++ b/app/page.module.css @@ -1,13 +1,13 @@ .page { - composes: page from 'chora/styles/page.css'; + composes: page from '../styles/page.css'; } .banner { - composes: banner-full from 'chora/styles/main.css'; + composes: banner-full from '../styles/banner.css'; } .content { - composes: content-full from 'chora/styles/main.css'; + composes: content-full from '../styles/content.css'; } .content > div { diff --git a/app/prototypes/page.module.css b/app/prototypes/page.module.css index 727f4ae..91e597a 100644 --- a/app/prototypes/page.module.css +++ b/app/prototypes/page.module.css @@ -1,26 +1,11 @@ .page { - composes: page from 'chora/styles/page.css'; + composes: page from '../../styles/page.css'; } .banner { - composes: banner from 'chora/styles/main.css'; + composes: banner from '../../styles/banner.css'; } .content { - composes: content-full from 'chora/styles/main.css'; -} - -.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; + composes: content-full from '../../styles/content.css'; } diff --git a/app/research/[id]/page.module.css b/app/research/[id]/page.module.css deleted file mode 100644 index 8f3e108..0000000 --- a/app/research/[id]/page.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.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'; -} diff --git a/app/research/[id]/page.tsx b/app/research/[id]/page.tsx deleted file mode 100644 index 9f66fb8..0000000 --- a/app/research/[id]/page.tsx +++ /dev/null @@ -1,34 +0,0 @@ -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 ( -
-
-
-

{doc.date}

-

{doc.title}

-

{`by ${doc.author}`}

-
-
-
-
-
-
- ) -} - -export default DocumentPage diff --git a/app/research/about/[id]/page.module.css b/app/research/about/[id]/page.module.css new file mode 100644 index 0000000..7d2c1fc --- /dev/null +++ b/app/research/about/[id]/page.module.css @@ -0,0 +1,11 @@ +.page { + composes: page from '../../../../styles/page.css'; +} + +.banner { + composes: banner-document from '../../../../styles/banner.css'; +} + +.content { + composes: content-full from '../../../../styles/content.css'; +} diff --git a/app/research/about/[id]/page.tsx b/app/research/about/[id]/page.tsx new file mode 100644 index 0000000..78932af --- /dev/null +++ b/app/research/about/[id]/page.tsx @@ -0,0 +1,35 @@ +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 ( +
+
+
+

{`author: ${artifact.author}`}

+

{`title: ${artifact.title}`}

+

{`description: ${artifact.description}`}

+

{`created: ${artifact.created.toDateString()}`}

+

{`updated: ${artifact.updated.toDateString()}`}

+
+
+
+
+
+
+ ) +} + +export default ArtifactPage diff --git a/app/research/concepts/[id]/page.module.css b/app/research/concepts/[id]/page.module.css new file mode 100644 index 0000000..7d2c1fc --- /dev/null +++ b/app/research/concepts/[id]/page.module.css @@ -0,0 +1,11 @@ +.page { + composes: page from '../../../../styles/page.css'; +} + +.banner { + composes: banner-document from '../../../../styles/banner.css'; +} + +.content { + composes: content-full from '../../../../styles/content.css'; +} diff --git a/app/research/concepts/[id]/page.tsx b/app/research/concepts/[id]/page.tsx new file mode 100644 index 0000000..bb7cc54 --- /dev/null +++ b/app/research/concepts/[id]/page.tsx @@ -0,0 +1,36 @@ +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 ( +
+
+
+

{`author: ${artifact.author}`}

+

{`title: ${artifact.title}`}

+

{`description: ${artifact.description}`}

+

{`created: ${artifact.created.toDateString()}`}

+

{`updated: ${artifact.updated.toDateString()}`}

+
+
+
+
+
+
+ ) +} + +export default ArtifactPage diff --git a/app/research/page.module.css b/app/research/page.module.css index 8b3109d..f01d530 100644 --- a/app/research/page.module.css +++ b/app/research/page.module.css @@ -1,35 +1,29 @@ .page { - composes: page from 'chora/styles/page.css'; + composes: page from '../../styles/page.css'; } .banner { - composes: banner from 'chora/styles/main.css'; + composes: banner from '../../styles/banner.css'; } .content { - composes: content-full from 'chora/styles/main.css'; - min-height: 25vh !important; - align-items: end !important; + composes: content-full from '../../styles/content.css'; } -.contentFull { - composes: content-full from 'chora/styles/main.css'; - min-height: 25vh !important; - align-items: start !important; +.content h2 { + margin: 1em 0; } -.contentFull h2 { - margin: 0.5em 0; -} - -.contentFull h3 { - color: var(--color-text); -} - -.contentFull h4 { - color: var(--color-text); -} - -.contentFull ul { +.content ul { list-style: none inside none; + margin: 1em 0; +} + +.content li { + margin: 1em 0; +} + +.content p { + color: var(--color-text); + font-weight: 300; } diff --git a/app/research/page.tsx b/app/research/page.tsx index 94c5597..fd96750 100644 --- a/app/research/page.tsx +++ b/app/research/page.tsx @@ -1,7 +1,7 @@ import { Metadata } from 'next' -// import Link from 'next/link' +import Link from 'next/link' -// import { getDocs } from '@utils' +import { getArtifacts } from '@utils' import styles from './page.module.css' @@ -9,21 +9,15 @@ export const metadata: Metadata = { title: 'chora studio | research', } -// async function getResearch() { -// const allDocs = getDocs().filter((p) => p.tags.includes('research')) - -// // sort docs by date -// return allDocs.sort((a, b) => { -// if (a.date < b.date) { -// return 1 -// } else { -// return -1 -// } -// }) -// } +async function getResearch() { + return [ + { group: 'about', items: getArtifacts('about') }, + { group: 'concepts', items: getArtifacts('concepts') }, + ] +} const ResearchPage = async () => { - // const docs = await getResearch() + const artifacts = await getResearch() return (
@@ -39,27 +33,38 @@ const ResearchPage = async () => { 'Chora Studio is researching decentralized protocols and agentic systems with a special interest in privacy-preserving technologies.' }

+ {!artifacts.length ? ( +

+ {'failed to load artifacts'} +

+ ) : ( +
+ {artifacts.map(({ group, items }) => ( +
+

{group}

+
    + {items.map( + ({ id, title, description, created, updated }) => ( +
  • + +

    {title}

    +

    {description}

    +

    + {`created: ${created.toDateString()}`} + {' | '} + {`updated: ${updated.toDateString()}`} +

    + +
  • + ), + )} +
+
+ ))} +
+ )}
-
- {/*{!docs.length ? (*/} -

- {'check back soon'} -

- {/*) : ( -
    - {docs.map(({ id, date, title, author }) => ( -
  • - -

    {date}

    -

    {title}

    -

    {`by ${author}`}

    - -
  • - ))} -
- )}*/} -
) } diff --git a/app/services/page.module.css b/app/services/page.module.css index 0fc453f..91e597a 100644 --- a/app/services/page.module.css +++ b/app/services/page.module.css @@ -1,11 +1,11 @@ .page { - composes: page from 'chora/styles/page.css'; + composes: page from '../../styles/page.css'; } .banner { - composes: banner from 'chora/styles/main.css'; + composes: banner from '../../styles/banner.css'; } .content { - composes: content-full from 'chora/styles/main.css'; + composes: content-full from '../../styles/content.css'; } diff --git a/app/validator/page.module.css b/app/validator/page.module.css index ca6b896..0f90d9e 100644 --- a/app/validator/page.module.css +++ b/app/validator/page.module.css @@ -1,19 +1,19 @@ .page { - composes: page from 'chora/styles/page.css'; + composes: page from '../../styles/page.css'; } .banner { - composes: banner from 'chora/styles/main.css'; + composes: banner from '../../styles/banner.css'; } .content { - composes: content-full from 'chora/styles/main.css'; + composes: content-full from '../../styles/content.css'; +} + +.content h2 { + margin: 0.5em 0; } .content ul { - margin: 1em 1em 2em; -} - -.content li { - margin: 1em; + margin: 0.5em 0 2em 0; } diff --git a/app/validator/page.tsx b/app/validator/page.tsx index e4f9515..a2b8815 100644 --- a/app/validator/page.tsx +++ b/app/validator/page.tsx @@ -86,7 +86,7 @@ const ValidatorPage = () => {

{'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.' + '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).' }