diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..43a36ac --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "artifacts"] + path = artifacts + url = https://codeberg.org/ryanchristo/artifacts diff --git a/app/about/page.module.css b/app/about/page.module.css deleted file mode 100644 index 44f4bf9..0000000 --- a/app/about/page.module.css +++ /dev/null @@ -1,15 +0,0 @@ -.container { - composes: container from "../../styles/page.css"; -} - -.content { - composes: content from "../../styles/page.css"; -} - -.item { - composes: item from "../../styles/page.css"; -} - -.item img { - width: 225px !important; -} diff --git a/app/about/page.tsx b/app/about/page.tsx deleted file mode 100644 index 64af59d..0000000 --- a/app/about/page.tsx +++ /dev/null @@ -1,82 +0,0 @@ -import { Metadata } from "next"; - -import styles from "./page.module.css"; - -export const metadata: Metadata = { - title: "ryan christoffersen | about", -}; - -const AboutPage = () => { - return ( -
-
-
-

{"about"}

-

- { - "I studied liberal arts in college with a focus on classical languages, critical and cultural theory, and film studies. I also participated in an extracurricular program for film production focused on cinematography." - } -

-

- { - "I bounced around jobs after college but eventually settled into a career as a software engineer in the web3 ecosystem. I now research and develop tools and infrastructure for decentralized protocols and agentic systems." - } -

-
-
-

{"2024 - present"}

-

- { - "exploring decentralized protocols, agentic systems, open-source software, open-source hardware, and privacy-preserving technologies" - } -

-

- { - "researching and producing digital media on topics including philosophy of technology, emerging technologies, and cognitive security" - } -

-

{"2018 - 2024"}

-

- { - "developed software for distributed systems, governance frameworks, and decentralized monitoring, reporting, and verification" - } -

-

- { - "software engineer, product manager, and protocol researcher for teams specializing in tools and infrastructure for the web3 ecosystem" - } -

-
-
-

{"2014 - 2018"}

-

- { - "website developer, network administrator, and full stack engineer for small businesses, early startups, and non-profit organizations" - } -

-

- { - "account manager and technical support at an AI software company, quality assurance specialist at a solar panel manufacturing company" - } -

-
-
-

{"2010 - 2014"}

-

- { - "produced documentary films, promotional videos, and experimental short films exploring poverty, microfinance, and cinematography" - } -

-

- { - "earned a BA in classical languages and literature, minors in classical greek, english literature, and film studies, also earned a CELTA certificate" - } -

-
-
-
-
- ); -}; - -export default AboutPage; diff --git a/app/accounts/page.module.css b/app/accounts/page.module.css deleted file mode 100644 index c1df742..0000000 --- a/app/accounts/page.module.css +++ /dev/null @@ -1,20 +0,0 @@ -.container { - composes: container from "../../styles/page.css"; -} - -.content { - composes: content from "../../styles/page.css"; - min-height: calc(100dvh - var(--header-height) - var(--footer-height)); -} - -.item { - composes: item from "../../styles/page.css"; -} - -.item img { - width: 225px !important; -} - -.content div > ul > li > i { - color: var(--color-dimmed); -} diff --git a/app/accounts/page.tsx b/app/accounts/page.tsx deleted file mode 100644 index 9375503..0000000 --- a/app/accounts/page.tsx +++ /dev/null @@ -1,170 +0,0 @@ -import { Metadata } from "next"; - -import styles from "./page.module.css"; - -export const metadata: Metadata = { - title: "ryan christoffersen | accounts", -}; - -const AccountsPage = () => { - return ( -
-
-
-

{"accounts"}

-

{"Accounts that I currently use and intend to keep for now:"}

-
- -
-

- {"Accounts that I no longer use and may deactivate in the future:"} -

-
- -
-
-

- - { - "The above does not include messaging platforms (e.g. Signal, Telegram, Discord) or project-specific forums for technical and governance discussions." - } - -

-

- - { - "I currently do not have an account on X, Facebook, Instagram, TikTok, etc. If you see a suspicious account that is not on the list, please " - } - {"let me know"} - {"."} - -

-
-
-
- ); -}; - -export default AccountsPage; diff --git a/app/artifacts/essays/[id]/page.module.css b/app/artifacts/essays/[id]/page.module.css new file mode 100644 index 0000000..79ba582 --- /dev/null +++ b/app/artifacts/essays/[id]/page.module.css @@ -0,0 +1,24 @@ +.container { + composes: container from "../../../../styles/page.css"; +} + +.banner { + composes: banner from "../../../../styles/page.css"; +} + +.content { + composes: content from "../../../../styles/page.css"; +} + +.content { + text-align: center; +} + +.content h1 { + font-size: 1.6em; + margin: 1em 0; +} + +.content p { + margin: 1em 0; +} diff --git a/app/artifacts/essays/[id]/page.tsx b/app/artifacts/essays/[id]/page.tsx new file mode 100644 index 0000000..228ff94 --- /dev/null +++ b/app/artifacts/essays/[id]/page.tsx @@ -0,0 +1,37 @@ +import { Metadata } from "next"; + +import { getArtifact, getArtifacts } from "@utils"; + +import styles from "./page.module.css"; + +export const metadata: Metadata = { + title: "ryan christoffersen | artifacts", +}; + +export const generateStaticParams = () => { + return getArtifacts("essays"); +}; + +const ArtifactPage = async ({ params }: any) => { + const artifact = await getArtifact("essays", 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/artifacts/essays/feed/route.ts b/app/artifacts/essays/feed/route.ts new file mode 100644 index 0000000..5663b7d --- /dev/null +++ b/app/artifacts/essays/feed/route.ts @@ -0,0 +1,41 @@ +import { Feed } from "feed"; +import { getArtifacts } from "utils"; + +const SITE_URL = "https://chora.io/artifacts/essays"; + +function getAllArtifacts() { + return [ + ...getArtifacts('essays'), + ] +} + +export const revalidate = false; + +export async function GET() { + const feed = new Feed({ + title: "ryan's artifacts (essays)", + description: "ryan's artifacts (essays)", + id: SITE_URL, + link: SITE_URL, + language: "en", + feedLinks: { rss2: `${SITE_URL}/feed` }, + ttl: 60, + }); + + for (const a of getAllArtifacts()) { + feed.addItem({ + title: a.title, + id: `${SITE_URL}/${a.id}`, + link: `${SITE_URL}/${a.id}`, + description: a.description, + date: a.created, + }); + } + + return new Response(feed.rss2(), { + headers: { + "Content-Type": "application/rss+xml; charset=utf-8", + "Cache-Control": "public, max-age=3600", + }, + }); +} diff --git a/app/artifacts/feed/route.ts b/app/artifacts/feed/route.ts new file mode 100644 index 0000000..b236463 --- /dev/null +++ b/app/artifacts/feed/route.ts @@ -0,0 +1,44 @@ +import { Feed } from "feed"; +import { getArtifacts } from "utils"; + +const SITE_URL = "https://ryanchristo.com/artifacts"; + +function getAllArtifacts() { + return [ + ...getArtifacts('essays'), + ...getArtifacts('film'), + ...getArtifacts('software'), + ...getArtifacts('videos'), + ] +} + +export const revalidate = false; + +export async function GET() { + const feed = new Feed({ + title: "ryan's artifacts", + description: "ryan's artifacts", + id: SITE_URL, + link: SITE_URL, + language: "en", + feedLinks: { rss2: `${SITE_URL}/feed` }, + ttl: 60, + }); + + for (const a of getAllArtifacts()) { + feed.addItem({ + title: a.title, + id: `${SITE_URL}/${a.category}/${a.id}`, + link: `${SITE_URL}/${a.category}/${a.id}`, + description: a.description, + date: a.created, + }); + } + + return new Response(feed.rss2(), { + headers: { + "Content-Type": "application/rss+xml; charset=utf-8", + "Cache-Control": "public, max-age=3600", + }, + }); +} diff --git a/app/artifacts/film/[id]/page.module.css b/app/artifacts/film/[id]/page.module.css new file mode 100644 index 0000000..79ba582 --- /dev/null +++ b/app/artifacts/film/[id]/page.module.css @@ -0,0 +1,24 @@ +.container { + composes: container from "../../../../styles/page.css"; +} + +.banner { + composes: banner from "../../../../styles/page.css"; +} + +.content { + composes: content from "../../../../styles/page.css"; +} + +.content { + text-align: center; +} + +.content h1 { + font-size: 1.6em; + margin: 1em 0; +} + +.content p { + margin: 1em 0; +} diff --git a/app/artifacts/film/[id]/page.tsx b/app/artifacts/film/[id]/page.tsx new file mode 100644 index 0000000..529a272 --- /dev/null +++ b/app/artifacts/film/[id]/page.tsx @@ -0,0 +1,37 @@ +import { Metadata } from "next"; + +import { getArtifact, getArtifacts } from "@utils"; + +import styles from "./page.module.css"; + +export const metadata: Metadata = { + title: "ryan christoffersen | artifacts", +}; + +export const generateStaticParams = () => { + return getArtifacts("film"); +}; + +const ArtifactPage = async ({ params }: any) => { + const artifact = await getArtifact("film", 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/artifacts/film/feed/route.ts b/app/artifacts/film/feed/route.ts new file mode 100644 index 0000000..221855a --- /dev/null +++ b/app/artifacts/film/feed/route.ts @@ -0,0 +1,41 @@ +import { Feed } from "feed"; +import { getArtifacts } from "utils"; + +const SITE_URL = "https://chora.io/artifacts/film"; + +function getAllArtifacts() { + return [ + ...getArtifacts('film'), + ] +} + +export const revalidate = false; + +export async function GET() { + const feed = new Feed({ + title: "ryan's artifacts (film)", + description: "ryan's artifacts (film)", + id: SITE_URL, + link: SITE_URL, + language: "en", + feedLinks: { rss2: `${SITE_URL}/feed` }, + ttl: 60, + }); + + for (const a of getAllArtifacts()) { + feed.addItem({ + title: a.title, + id: `${SITE_URL}/${a.id}`, + link: `${SITE_URL}/${a.id}`, + description: a.description, + date: a.created, + }); + } + + return new Response(feed.rss2(), { + headers: { + "Content-Type": "application/rss+xml; charset=utf-8", + "Cache-Control": "public, max-age=3600", + }, + }); +} diff --git a/app/artifacts/page.module.css b/app/artifacts/page.module.css new file mode 100644 index 0000000..58fef72 --- /dev/null +++ b/app/artifacts/page.module.css @@ -0,0 +1,25 @@ +.container { + composes: container from "../../styles/page.css"; +} + +.content { + composes: content from "../../styles/page.css"; +} + +.content h2 { + font-size: 1.3em; + margin: 2em 0 1.5em 0; +} + +.content ul { + list-style: none inside none; +} + +.content li { + margin: 2em 0; +} + +.content p { + color: var(--color-text); + font-weight: 300; +} diff --git a/app/artifacts/page.tsx b/app/artifacts/page.tsx new file mode 100644 index 0000000..ec4302b --- /dev/null +++ b/app/artifacts/page.tsx @@ -0,0 +1,78 @@ +import { Metadata } from "next"; +import Link from "next/link"; + +import { getArtifacts } from "@utils"; + +import styles from "./page.module.css"; + +export const metadata: Metadata = { + title: "ryan christoffersen | artifacts", +}; + +async function getArtifactsByGroup() { + return [ + { + group: "essays", + items: getArtifacts("essays").sort((a, b) => b.order - a.order), + }, + { + group: "film / videos", + items: [...getArtifacts("film"), ...getArtifacts("videos")].sort( + (a, b) => b.order - a.order, + ), + }, + { + group: "software", + items: getArtifacts("software").sort((a, b) => b.order - a.order), + }, + ]; +} + +const ArtifactsPage = async () => { + const artifacts = await getArtifactsByGroup(); + return ( +
+
+ {!artifacts.length ? ( +

+ {"failed to load artifacts"} +

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

{group}

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

    {title}

    +

    {description}

    +

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

    + +
  • + ), + )} +
+
+ ))} +
+ )} +
+
+ ); +}; + +export default ArtifactsPage; diff --git a/app/artifacts/software/[id]/page.module.css b/app/artifacts/software/[id]/page.module.css new file mode 100644 index 0000000..79ba582 --- /dev/null +++ b/app/artifacts/software/[id]/page.module.css @@ -0,0 +1,24 @@ +.container { + composes: container from "../../../../styles/page.css"; +} + +.banner { + composes: banner from "../../../../styles/page.css"; +} + +.content { + composes: content from "../../../../styles/page.css"; +} + +.content { + text-align: center; +} + +.content h1 { + font-size: 1.6em; + margin: 1em 0; +} + +.content p { + margin: 1em 0; +} diff --git a/app/artifacts/software/[id]/page.tsx b/app/artifacts/software/[id]/page.tsx new file mode 100644 index 0000000..e859ab8 --- /dev/null +++ b/app/artifacts/software/[id]/page.tsx @@ -0,0 +1,37 @@ +import { Metadata } from "next"; + +import { getArtifact, getArtifacts } from "@utils"; + +import styles from "./page.module.css"; + +export const metadata: Metadata = { + title: "ryan christoffersen | artifacts", +}; + +export const generateStaticParams = () => { + return getArtifacts("software"); +}; + +const ArtifactPage = async ({ params }: any) => { + const artifact = await getArtifact("software", 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/artifacts/software/feed/route.ts b/app/artifacts/software/feed/route.ts new file mode 100644 index 0000000..2b5083e --- /dev/null +++ b/app/artifacts/software/feed/route.ts @@ -0,0 +1,41 @@ +import { Feed } from "feed"; +import { getArtifacts } from "utils"; + +const SITE_URL = "https://chora.io/artifacts/software"; + +function getAllArtifacts() { + return [ + ...getArtifacts('software'), + ] +} + +export const revalidate = false; + +export async function GET() { + const feed = new Feed({ + title: "ryan's artifacts (software)", + description: "ryan's artifacts (software)", + id: SITE_URL, + link: SITE_URL, + language: "en", + feedLinks: { rss2: `${SITE_URL}/feed` }, + ttl: 60, + }); + + for (const a of getAllArtifacts()) { + feed.addItem({ + title: a.title, + id: `${SITE_URL}/${a.id}`, + link: `${SITE_URL}/${a.id}`, + description: a.description, + date: a.created, + }); + } + + return new Response(feed.rss2(), { + headers: { + "Content-Type": "application/rss+xml; charset=utf-8", + "Cache-Control": "public, max-age=3600", + }, + }); +} diff --git a/app/artifacts/videos/[id]/page.module.css b/app/artifacts/videos/[id]/page.module.css new file mode 100644 index 0000000..79ba582 --- /dev/null +++ b/app/artifacts/videos/[id]/page.module.css @@ -0,0 +1,24 @@ +.container { + composes: container from "../../../../styles/page.css"; +} + +.banner { + composes: banner from "../../../../styles/page.css"; +} + +.content { + composes: content from "../../../../styles/page.css"; +} + +.content { + text-align: center; +} + +.content h1 { + font-size: 1.6em; + margin: 1em 0; +} + +.content p { + margin: 1em 0; +} diff --git a/app/artifacts/videos/[id]/page.tsx b/app/artifacts/videos/[id]/page.tsx new file mode 100644 index 0000000..196264d --- /dev/null +++ b/app/artifacts/videos/[id]/page.tsx @@ -0,0 +1,37 @@ +import { Metadata } from "next"; + +import { getArtifact, getArtifacts } from "@utils"; + +import styles from "./page.module.css"; + +export const metadata: Metadata = { + title: "ryan christoffersen | artifacts", +}; + +export const generateStaticParams = () => { + return getArtifacts("videos"); +}; + +const ArtifactPage = async ({ params }: any) => { + const artifact = await getArtifact("videos", 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/artifacts/videos/feed/route.ts b/app/artifacts/videos/feed/route.ts new file mode 100644 index 0000000..65b1dc6 --- /dev/null +++ b/app/artifacts/videos/feed/route.ts @@ -0,0 +1,41 @@ +import { Feed } from "feed"; +import { getArtifacts } from "utils"; + +const SITE_URL = "https://chora.io/artifacts/videos"; + +function getAllArtifacts() { + return [ + ...getArtifacts('videos'), + ] +} + +export const revalidate = false; + +export async function GET() { + const feed = new Feed({ + title: "ryan's artifacts (videos)", + description: "ryan's artifacts (videos)", + id: SITE_URL, + link: SITE_URL, + language: "en", + feedLinks: { rss2: `${SITE_URL}/feed` }, + ttl: 60, + }); + + for (const a of getAllArtifacts()) { + feed.addItem({ + title: a.title, + id: `${SITE_URL}/${a.id}`, + link: `${SITE_URL}/${a.id}`, + description: a.description, + date: a.created, + }); + } + + return new Response(feed.rss2(), { + headers: { + "Content-Type": "application/rss+xml; charset=utf-8", + "Cache-Control": "public, max-age=3600", + }, + }); +} diff --git a/app/contact/page.module.css b/app/contact/page.module.css deleted file mode 100644 index ef729e6..0000000 --- a/app/contact/page.module.css +++ /dev/null @@ -1,20 +0,0 @@ -.container { - composes: container from "../../styles/page.css"; -} - -.content { - composes: content from "../../styles/page.css"; - min-height: calc(100dvh - var(--header-height) - var(--footer-height)); -} - -.item { - composes: item from "../../styles/page.css"; -} - -.item img { - width: 225px !important; -} - -.content div > ul > li > i { - color: rgba(255, 255, 255, 0.6); -} diff --git a/app/contact/page.tsx b/app/contact/page.tsx deleted file mode 100644 index 90ac1e5..0000000 --- a/app/contact/page.tsx +++ /dev/null @@ -1,44 +0,0 @@ -import { Metadata } from "next"; - -import styles from "./page.module.css"; - -export const metadata: Metadata = { - title: "ryan christoffersen | contact", -}; - -const ContactPage = () => { - return ( -
-
-
-

{"contact"}

-

{"We can stay connected using one of the following options:"}

-
    -
  • - {"Email"} - {": contact [at] ryanchristo.com"} -
  • -
  • - {"Signal"} - {": [ available upon request ]"} -
  • - {/*
  • - {"Telegram"} - {": [ available upon request ]"} -
  • */} -
-
-

- - { - "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." - } - -

-
-
-
- ); -}; - -export default ContactPage; diff --git a/app/film/page.module.css b/app/film/page.module.css deleted file mode 100644 index 9c12f3d..0000000 --- a/app/film/page.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.container { - composes: container from "../../styles/page.css"; -} - -.content { - composes: content from "../../styles/page.css"; -} - -.item { - composes: item from "../../styles/page.css"; -} diff --git a/app/film/page.tsx b/app/film/page.tsx deleted file mode 100644 index 2923bed..0000000 --- a/app/film/page.tsx +++ /dev/null @@ -1,128 +0,0 @@ -import { Metadata } from "next"; -import Link from "next/link"; - -import styles from "./page.module.css"; - -export const metadata: Metadata = { - title: "ryan christoffersen | film", -}; - -const SolutionsPage = () => { - return ( -
-
-
-

{"film"}

-

- { - "I studied film and film production alongside my studies in classical languages and literature. I also helped with student and local film projects." - } -

-

- { - "The height of my filmmaking pursuits was around 2010 when I co-produced an experimental short film and a feature-length documentary." - } -

-
-
-

{"Rosa - These Storms | 2014"}

-

- {"Camera Operator"} -

-

- { - '"Rosa, a young Mayan woman, sits alone. She stares directly into the camera and for the first time has the courage to share her story. She has wrestled with rejection, forgiveness and the fight to keep her child alive. Now 27, she must overcome her past to follow dreams she once thought impossible."' - } -

-

- {"Photography, Cinematography"} -

-

- - {"more information"} - -

-
-
-

{"Alleviating Poverty in Vietnam | 2013"}

-

- {"Videographer"} -

-

- { - '"Alleviating Poverty in Vietnam is a short promotional video that explores a day in the life of Whole Planet Foundation\'s Field Director, Daniel Zoltani, as he visits one of their partners in Vietnam. Daniel visits Tao Yeu Mai (TYM) - the leading microfinance institution in Thai Nguyen Province of Northern Vietnam. Daniel and the TYM staff go out to meet with their clients."' - } -

-

- - { - "Production, Photography, Videography, Audio Recording, Video Editing" - } - -

-

- - {"watch video"} - -

-
-
-

{"Living on One Dollar | 2010 - 2012"}

-

- {"Co-Producer, Cinematographer, Assistant Editor"} -

-

- { - '"Living on One Dollar follows the experience of four young friends as they live on less than $1 a day for two months in rural Guatemala. They battle hunger, parasites and the realization that there are no easy answers. Yet, the generosity and strength of Rosa, a 20-year-old woman with her husband Anthony, and Chino, a 12-year-old boy gives them hope that there are ways to make a difference."' - } -

-

- - { - "Production, Photography, Cinematography, Audio Recording, Video Editing" - } - -

-

- - {"more information"} - -

-
-
-

{"Aspectator | 2010"}

-

- {"Co-Producer, Cinematographer"} -

-

- { - '"The subject of a psychology study begins to lose his identity when he decides to follow a woman whose presence deteriorates his sight while also invigorating his desire to rediscover himself."' - } -

-

- - {"Production, Cinematography, Audio Recording, Video Editing"} - -

-

- - {"watch trailer"} - -

-
-
-
-
- ); -}; - -export default SolutionsPage; diff --git a/app/globals.css b/app/globals.css index 73b117b..907674d 100644 --- a/app/globals.css +++ b/app/globals.css @@ -55,28 +55,24 @@ } :root { - --color-theme: rgb(0, 195, 165); + --color-theme: rgb(0, 180, 155); /* #00B49B */ --font-family: "Ubuntu", sans-serif; - --footer-height: 60px; - --header-height: 60px; + --footer-height: 70px; + --header-height: 70px; --transition: 0.25s; /* light theme */ - --background-primary: rgb(255, 255, 255); - --background-primary-transparent: rgba(255, 255, 255, 0.95); - --box-shadow: 0 0 4px rgb(245, 245, 245); - --box-shadow-color: rgb(245, 245, 245); - --color-text: rgb(10, 10, 10); - --color-dimmed: rgba(10, 10, 10, 0.5); + --background-primary: rgb(255, 255, 255); /* #FFFFFF */ + --box-shadow: 0 0 3px rgb(230, 230, 230); /* #C8C8C8 */ + --box-shadow-color: rgb(230, 230, 230); /* #C8C8C8 */ + --color-text: rgb(25, 25, 25); /* #191919 */ } .dark-theme { - --background-primary: rgb(17, 17, 17); - --background-primary-transparent: rgba(17, 17, 17, 0.9); - --box-shadow: 0 0 4px rgb(27, 27, 27); - --box-shadow-color: rgb(27, 27, 27); - --color-text: rgb(245, 245, 245); - --color-dimmed: rgba(245, 245, 245, 0.5); + --background-primary: rgb(25, 25, 25); /* #191919 */ + --box-shadow: 0 0 3px rgb(75, 75, 75); /* #4B4B4B */ + --box-shadow-color: rgb(75, 75, 75); /* #4B4B4B */ + --color-text: rgb(255, 255, 255); /* #FFFFFF */ } * { @@ -103,7 +99,7 @@ h2, h3, h4, h5 { - font-weight: 400; + font-weight: 300; } p, @@ -114,7 +110,6 @@ li { a, a:active { color: var(--color-theme); - font-weight: 400; text-decoration: none; transition: var(--transition); } @@ -124,12 +119,9 @@ a:hover { } button { - background: var(--color-theme); border: none; - border-radius: 1em; - color: var(--background-primary); - font-family: var(--font-family); font-size: 1em; + opacity: 1; outline: none; transition: var(--transition); } @@ -140,8 +132,8 @@ button:hover { } hr { - margin: 2em 0; - border: 1px solid var(--color-dimmed); + border: 1px solid var(--box-shadow-color); border-bottom-width: 0; - opacity: 0.25; + box-shadow: 0 0 1px var(--box-shadow-color); + opacity: 0.5; } diff --git a/app/layout.tsx b/app/layout.tsx index a2b13b3..b0d064a 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,4 +1,4 @@ -import Footer from "@components/Footer"; +// import Footer from "@components/Footer"; import Header from "@components/Header"; import { ThemeContextProvider } from "@contexts"; @@ -12,7 +12,7 @@ const Layout = ({ children }: any) => (
{children} -
+ {/*
*/}
diff --git a/app/not-found.module.css b/app/not-found.module.css index 00e6f3a..599f893 100644 --- a/app/not-found.module.css +++ b/app/not-found.module.css @@ -1,6 +1,6 @@ -/* page */ +/* container */ -.page { +.container { background: var(--background-primary); align-items: center; display: flex; @@ -9,16 +9,20 @@ text-align: center; } -.page div { - margin-bottom: 2%; +/* content */ + +.content { + margin-bottom: 5vh; } -.page h1 { +.content h1 { color: var(--color-theme); - font-size: 2.5em; + font-size: 2em; + margin: 0.25em 0; } -.page h1, -.page h2 { - margin: 0.5em 0; +.content p { + font-size: 1.2em; + font-style: italic; + margin: 0.25em 0; } diff --git a/app/not-found.tsx b/app/not-found.tsx index d491a9a..09ee006 100644 --- a/app/not-found.tsx +++ b/app/not-found.tsx @@ -7,10 +7,10 @@ export const metadata: Metadata = { }; const NotFoundPage = () => ( -
-
+
+

{"404"}

-

{"not found"}

+

{"a placeless place"}

); diff --git a/app/page.module.css b/app/page.module.css index 90c314a..def294c 100644 --- a/app/page.module.css +++ b/app/page.module.css @@ -1,40 +1,38 @@ -/* container */ - .container { - background: var(--background-primary-transparent); - width: 100dvw; + composes: container from "../styles/page.css"; } -/* banner */ - -.banner { - align-items: center; - display: flex; - font-size: 1.5em; - justify-content: center; - min-height: 100dvh; - text-align: center; +.content { + composes: content from "../styles/page.css"; } -@media (max-width: 850px) { - .banner { - font-size: 1em; - } +.content h2 { + font-size: 1.3em; + margin: 2em 0 1.5em 0; } -.banner div { - margin-bottom: 2%; +.content h3 { + font-size: 1.1em; + margin: 1em 0; } -.banner h1 { - font-size: 1.6em; - padding: 0.25em 0; +.content hr { + margin: 5vh 0; } -.banner p { - padding: 0.5em 0; +.content p { + margin: 1em 0; } -.banner p > i { - color: var(--color-theme); +.content div { + margin: 2em 0; +} + +.content ul { + list-style-position: inside; + margin: 1em 0; +} + +.content li { + margin: 0.5em 0; } diff --git a/app/page.tsx b/app/page.tsx index 14d6e2e..66eb09a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,5 @@ import { Metadata } from "next"; -import Background from "@components/Background"; - import styles from "./page.module.css"; export const metadata: Metadata = { @@ -11,15 +9,239 @@ export const metadata: Metadata = { const HomePage = () => { return (
- -
+
+

{"a brief intro"}

+

+ { + "I studied liberal arts in college with a focus on classical languages, critical and cultural theory, and film studies. I also participated in an extracurricular program for film production focused on cinematography." + } +

+

+ { + "I bounced around jobs after college but eventually settled into a career as a software engineer and technical product manager. I now continue this work and provide software consulting services through " + } + + {"Chora Studio"} + + {"."} +

+

+ { + "More recently I've been reading various fields of theory, philosophy, and science fiction while also exploring farming, forestry, and alternative ways of living. I also contribute to a project called " + } + + {"Open Machine"} + + {"."} +

+
+

{"a brief history"}

-

{"ryan christoffersen"}

+

{"2024 - present"}

- {"decentralized protocols and agentic systems"} + { + "exploring decentralized protocols, agentic systems, open-source software, open-source hardware, and privacy-preserving technologies" + } +

+

+ { + "researching a variety of topics including the philosophy of technology, the apparatus of capture, cognitive security, and extitutional theory" + }

-

{"research and development"}

+
+

{"2018 - 2024"}

+

+ { + "software engineer, technical product manager, and protocol researcher for teams building tools and infrastructure in the web3 ecosystem" + } +

+

+ { + "contributed to developer tools, governance frameworks, blockchain clients, registries for ecological assets, and various network services" + } +

+
+
+

{"2014 - 2018"}

+

+ { + "website developer, network administrator, and full stack engineer for small businesses, early startups, and non-profit organizations" + } +

+

+ { + "account manager and technical support at an AI software company, quality assurance specialist at a solar panel manufacturing company" + } +

+
+
+

{"2010 - 2014"}

+

+ { + "produced documentary films, promotional videos, and experimental short films exploring poverty, microfinance, and cinematography" + } +

+

+ { + "earned a BA in classical languages and literature, minors in classical greek, english literature, and film studies, also earned a CELTA certificate" + } +

+
+
+

{"public accounts"}

+

+ { + "I take a minimalist approach to social media and other platforms. All public accounts that I'm actively (or occasionally) using are listed here:" + } +

+ +

+ + { + "I don't have an account on X, Facebook, Instagram, LinkedIn, TikTok, etc. If you see a suspicious account that is not on the list, please let me know." + } + +

+
+

{"contact info"}

+

{"We can connect using the following options:"}

+
    +
  • + {"Email"} + {": contact [at] ryanchristo.com"} +
  • +
  • + {"Signal"} + {": [ available upon request ]"} +
  • + {/*
  • + {"Telegram"} + {": [ available upon request ]"} +
  • */} + {/*
  • + {"Discord"} + {": [ available upon request ]"} +
  • */} +
+

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

); diff --git a/app/tech/page.module.css b/app/tech/page.module.css deleted file mode 100644 index 9c12f3d..0000000 --- a/app/tech/page.module.css +++ /dev/null @@ -1,11 +0,0 @@ -.container { - composes: container from "../../styles/page.css"; -} - -.content { - composes: content from "../../styles/page.css"; -} - -.item { - composes: item from "../../styles/page.css"; -} diff --git a/app/tech/page.tsx b/app/tech/page.tsx deleted file mode 100644 index f5b53a9..0000000 --- a/app/tech/page.tsx +++ /dev/null @@ -1,319 +0,0 @@ -import { Metadata } from "next"; -import Link from "next/link"; - -import styles from "./page.module.css"; - -export const metadata: Metadata = { - title: "ryan christoffersen | tech", -}; - -const TechPage = () => { - return ( -
-
-
-

{"tech"}

-

- { - "I'm a self-taught software engineer. I started building websites back in 2012 after graduating college with a liberal arts degree." - } -

-

- { - "I managed websites, databases, and servers for small businesses and non-profit organizations before starting a career in tech in 2016." - } -

-

- { - "I later became passionate about web3 technologies and worked on projects building governance tools and blockchain infrastructure." - } -

-

- { - "More recently I've been learning about agentic systems and building a multi-agent management system and knowledge framework." - } -

-
-
-

{"Chora AI | 2026 - Present"}

-

- {"Software Engineer, Protocol Researcher"} -

-

- { - "Chora AI is a research project focused on local-first and privacy-preserving tools and infrastructure for specialized agents. Chora AI is an evolving side project that is currently stewarded by Chora Studio." - } -

-

- {"Rust, LLMs"} -

-

- {/* - {"website"} - - {" | "}*/} - - {"source"} - -

-

{"Chora Studio | 2024 - Present"}

-

- {"Owner, Software Engineer, Protocol Researcher"} -

-

- { - "Chora Studio is a software research and development company building software for agentic systems and decentralied protocols. Chora Studio also offers research and development as a service." - } -

-

- {"Rust, LLMs, Go, TypeScript, Cosmos"} -

-

- - {"website"} - - {" | "} - - {"source"} - -

-
-
-

{"Regen Network | 2021 - 2023"}

-

- - { - "Technical Product Manager, Software Engineer, Network Operations" - } - -

-

- { - "Regen Network aligns economics with ecology to drive regenerative land management. I primarily worked on Regen Ledger and Cosmos SDK, the underlying blockchain infrastructure for Regen Network." - } -

-

- {"Go, TypeScript, Cosmos"} -

-

- - {"website"} - - {" | "} - - {"source"} - -

-
-
-

{"Chora | 2020 - 2023"}

-

- {"Software Engineer, Protocol Researcher"} -

-

- { - "Chora is software for commons governance and ecological regeneration built with distributed ledger technology. Chora started out as an evolving side project that later became a product of Chora Studio." - } -

-

- {"Go, TypeScript, Cosmos"} -

-

- - {"website"} - - {" | "} - - {"source"} - -

-
-
-

{"ChainSafe | 2019 - 2020"}

-

- {"Software Engineer, Protocol Researcher"} -

-

- { - "ChainSafe is a team of developers building tools and infrastructure for a variety of decentralized protocols. I primarily worked on Gossamer, a node client implementation for the Polkadot network written in Go." - } -

-

- {"Go, Polkadot, Solidity, Ethereum"} -

-

- - {"website"} - - {" | "} - - {"source"} - -

-
-
-

{"Colony | 2018 - 2019"}

-

- {"Developer Relations Manager, Software Engineer"} -

-

- { - "Colony is a platform for open organizations built on Ethereum. I helped build and maintain developer tools, wrote documentation, explored integrations, and managed developer relations." - } -

-

- - {"JavaScript, React, Redux, Webpack, IPFS, Solidity, Ethereum"} - -

-

- - {"website"} - - {" | "} - - {"source"} - -

-
-
-

{"Chora | 2018"}

-

- {"Software Engineer"} -

-

- { - "Chora was a project I created to learn about and explore Ethereum. The demo application allowed users to create organizations, projects, and tasks using smart contracts on the Ethereum network." - } -

-

- {"JavaScript, React, Redux, Webpack, Solidity, Ethereum"} -

-
-
-

{"Horizon App | 2017 - 2018"}

-

- {"Full Stack Engineer"} -

-

- { - "Horizon App uses groups and mutual friends to help members find people and places to stay. I designed and developed the web application, rebuilt the latest version of the API, and integrated email services." - } -

-

- - {"JavaScript, React, Redux, Webpack, Ruby, Rails, PostgreSQL"} - -

-
-
-

{"Ushahidi | 2017"}

-

- {"Full Stack Engineer"} -

-

- { - "Ushahidi is a crowdsourcing application with a focus on disaster response that makes it easy to collect and visualize data on a map. I volunteered for three months implementing features and fixing bugs." - } -

-

- {"JavaScript, AngularJS, PHP"} -

-
-
-

{"Joglo Northwest | 2017"}

-

- {"Full Stack Engineer"} -

-

- { - "Joglo Northwest is a small business that buys and sells Indonesian art, furniture and stone. I rebuilt the website and content management system using my very own simple-cms as the foundation (see below)." - } -

-

- - {"JavaScript, React, Redux, Webpack, Node, Express, MongoDB"} - -

-
-
-

{"simple-cms | 2017"}

-

- {"Full Stack Engineer"} -

-

- { - "After working my way through freeCodeCamp, I developed simple-cms to test my skills on a larger project - a simple yet customizable content management system for small businesses and freelancers." - } -

-

- - {"JavaScript, React, Redux, Webpack, Node, Express, MongoDB"} - -

-
-
-

{"fcc-projects | 2016 - 2017"}

-

- {"Full Stack Engineer"} -

-

- { - "To advance my skills, I worked my way through the freeCodeCamp coursework and projects. The freeCodeCamp curriculum focuses on full-stack development with React, Node, Express, and MongoDB." - } -

-

- - {"JavaScript, React, Redux, Webpack, Node, Express, MongoDB"} - -

-
-
-

{"Joglo Northwest | 2014"}

-

- {"Web Developer"} -

-

- { - "Joglo Northwest is a small business that buys and sells Indonesian art, furniture, and stone. I designed and developed a simple gallery website with a custom content management system and integrated email services." - } -

-

- {"HTML, CSS, JavaScript, PHP, SQL"} -

-
-
-

{"Ancient Greek | 2014"}

-

- {"Web Developer"} -

-

- { - "Ancient Greek was a web application for learning Ancient Greek. The app included a dictionary, interactive reading exercises, and flashcards for practicing vocabulary, verb conjugations, and noun declensions." - } -

-

- {"HTML, CSS, JavaScript, PHP, SQL"} -

-
-
-

{"Documentary Art Network | 2013"}

-

- {"Web Developer"} -

-

- { - "Documentary Art Network was a professional network for documentary artists. Users could post articles and stories, discuss ideas, find people to collaborate with, and rent or exchange equipment." - } -

-

- {"HTML, CSS, JavaScript, PHP, SQL"} -

-
-
-
-
- ); -}; - -export default TechPage; diff --git a/app/text/page.module.css b/app/text/page.module.css deleted file mode 100644 index ef729e6..0000000 --- a/app/text/page.module.css +++ /dev/null @@ -1,20 +0,0 @@ -.container { - composes: container from "../../styles/page.css"; -} - -.content { - composes: content from "../../styles/page.css"; - min-height: calc(100dvh - var(--header-height) - var(--footer-height)); -} - -.item { - composes: item from "../../styles/page.css"; -} - -.item img { - width: 225px !important; -} - -.content div > ul > li > i { - color: rgba(255, 255, 255, 0.6); -} diff --git a/app/text/page.tsx b/app/text/page.tsx deleted file mode 100644 index a11ad53..0000000 --- a/app/text/page.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import { Metadata } from "next"; - -import styles from "./page.module.css"; - -export const metadata: Metadata = { - title: "ryan christoffersen | contact", -}; - -const TextPage = () => { - return ( -
-
-
-

{"text"}

-

{"I'm currently exploring the following topics:"}

-
    -
  • - { - "free and open-source software and privacy-preserving technologies" - } -
  • -
  • - { - "philosophy of technology, emerging technologies, cognitive security" - } -
  • -
  • - { - "dark forest theory applied to politics, intelligence, and the internet" - } -
  • -
-
-

{"[ links will be posted here ]"}

-
-
-
- ); -}; - -export default TextPage; diff --git a/artifacts b/artifacts new file mode 160000 index 0000000..65a118e --- /dev/null +++ b/artifacts @@ -0,0 +1 @@ +Subproject commit 65a118e4a27b93f175018506952f754f7b4d1100 diff --git a/bun.lockb b/bun.lockb old mode 100644 new mode 100755 index a103191..49a0933 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/Background.module.css b/components/Background.module.css deleted file mode 100644 index 593611f..0000000 --- a/components/Background.module.css +++ /dev/null @@ -1,25 +0,0 @@ -.background { - align-items: center; - display: flex; - height: 100dvh; - justify-content: center; - position: fixed; - width: 100dvw; - z-index: -1; -} - -.background { - background: var(--background-primary); -} - -.background img { - height: auto; - width: 100dvw; -} - -@media (max-width: 850px) { - .background img { - height: 100dvh; - width: auto; - } -} diff --git a/components/Background.tsx b/components/Background.tsx deleted file mode 100644 index 9d57a61..0000000 --- a/components/Background.tsx +++ /dev/null @@ -1,17 +0,0 @@ -"use client"; - -import Image from "next/image"; - -import background from "../public/images/background.jpg"; - -import styles from "./Background.module.css"; - -const Background = () => { - return ( -
- background -
- ); -}; - -export default Background; diff --git a/components/Footer.module.css b/components/Footer.module.css index 00f8c81..4efdc4b 100644 --- a/components/Footer.module.css +++ b/components/Footer.module.css @@ -30,8 +30,3 @@ margin: 0.5em; } } - -.pipe { - color: var(--color-dimmed); - opacity: 0.5; -} diff --git a/components/Footer.tsx b/components/Footer.tsx index d8331da..acdfbaf 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,7 +1,5 @@ "use client"; -import Link from "next/link"; - import styles from "./Footer.module.css"; const Footer = () => { @@ -19,22 +17,13 @@ const Footer = () => {
  • - {"linkedin"} + {"substack"}
  • -
  • - {"|"} -
  • -
  • - {"accounts"} -
  • -
  • - {"contact"} -
  • ); diff --git a/components/Header.module.css b/components/Header.module.css index 5c18f71..da1be8a 100644 --- a/components/Header.module.css +++ b/components/Header.module.css @@ -12,12 +12,12 @@ z-index: 1; } -.header div { +.header > div { align-items: center; display: flex; justify-content: space-between; height: inherit; - margin: 0 1em; + width: 650px; } @media (max-width: 850px) { @@ -30,7 +30,7 @@ .title div { color: var(--color-text); - font-size: 22px; + font-size: 20px; } @media (max-width: 850px) { @@ -49,6 +49,7 @@ } .menu li { + font-weight: 400; margin: 0.75em; } @@ -59,7 +60,14 @@ } } -/* show/hide */ +/* button */ + +.themeButton { + display: flex; + margin-left: 1em; +} + +/* display */ .showMobile { display: none !important; @@ -80,8 +88,3 @@ display: none !important; } } - -.button { - background: none; - display: flex; -} diff --git a/components/Header.tsx b/components/Header.tsx index e880d80..73f1bd0 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -22,32 +22,32 @@ const Header = () => { return (
    +
    {darkTheme?.toString()}
    -
    {"rc"}
    +
    {"ryanchristo"}
    {"ryan christoffersen"}
    • - {"about"} + {"artifacts"}
    • - {"film"} + {"git"}
    • - {"tech"} + {"rss"}
    • - {"text"} +
    -
    ); }; diff --git a/components/icons/ThemeIcon.tsx b/components/icons/ThemeIcon.tsx index 21e88b1..82fda9b 100644 --- a/components/icons/ThemeIcon.tsx +++ b/components/icons/ThemeIcon.tsx @@ -3,13 +3,13 @@ import * as React from "react"; const ThemeIcon = ({ darkTheme }: any) => ( - - + + ); diff --git a/content/tech/.gitkeep b/content/tech/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/content/text/.gitkeep b/content/text/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/package.json b/package.json index 10b9ef4..fe3eb76 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "website", "private": true, - "description": "personal portfolio website", + "description": "personal website", "version": "0.0.0", "homepage": "https://ryanchristo.com", "bugs": { @@ -19,9 +19,13 @@ "clean": "rm -rf .next dist node_modules" }, "dependencies": { + "feed": "^6", + "gray-matter": "^4", "next": "^14", "react": "^18", - "react-dom": "^18" + "react-dom": "^18", + "remark": "^15", + "remark-html": "^16" }, "devDependencies": { "@types/node": "^20", @@ -34,6 +38,7 @@ "eslint-config-next": "^14", "postcss": "^8", "prettier": "^3", + "sharp": "^0.33", "typescript": "^5" } } diff --git a/public/images/background.jpg b/public/images/background.jpg deleted file mode 100644 index 2c5a5f6..0000000 Binary files a/public/images/background.jpg and /dev/null differ diff --git a/specs/books/all/index.json b/specs/books/all/index.json new file mode 100644 index 0000000..8dfa3af --- /dev/null +++ b/specs/books/all/index.json @@ -0,0 +1,201 @@ +{ + "metadata": { + "title": "All Publications" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/all/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (priced)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "price": { + "currency": "USD", + "value": 4.99 + }, + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "https://theopenmachine.net/assets/pdf/invertedCity_digital.pdf", + "type": "application/pdf+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/tic", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tic.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + } + ] + } + ] +} diff --git a/specs/books/direct-examples/index.json b/specs/books/direct-examples/index.json new file mode 100644 index 0000000..fe01af1 --- /dev/null +++ b/specs/books/direct-examples/index.json @@ -0,0 +1,78 @@ +{ + "metadata": { + "title": "Direct Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/direct-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "https://theopenmachine.net/assets/pdf/invertedCity_digital.pdf", + "type": "application/pdf+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + ] +} diff --git a/specs/books/index.json b/specs/books/index.json new file mode 100644 index 0000000..31333c1 --- /dev/null +++ b/specs/books/index.json @@ -0,0 +1,244 @@ +{ + "metadata": { + "title": "Ryan's Books" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/index.json", + "type": "application/opds+json" + }, + { + "rel": "search", + "href": "search{?query,title,author}", + "type": "application/opds+json", + "templated": true + } + ], + "groups": [ + { + "metadata": { + "title": "Direct Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/direct-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "https://theopenmachine.net/assets/pdf/invertedCity_digital.pdf", + "type": "application/pdf+zip" + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (direct)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + ] + }, + { + "metadata": { + "title": "Indirect Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/indirect-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/tic", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tic.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + } + ] + } + ] + } + ], + "navigation": [ + { + "href": "http://localhost:3000/books/all/index.json", + "title": "All Publications", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (priced)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "price": { + "currency": "USD", + "value": 4.99 + }, + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + } + ] +} diff --git a/specs/books/indirect-examples/index.json b/specs/books/indirect-examples/index.json new file mode 100644 index 0000000..a4afd91 --- /dev/null +++ b/specs/books/indirect-examples/index.json @@ -0,0 +1,101 @@ +{ + "metadata": { + "title": "Indirect Examples" + }, + "links": [ + { + "rel": "self", + "href": "http://localhost:3000/books/indirect-examples/index.json", + "type": "application/opds+json" + } + ], + "publications": [ + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Friends of the Outside (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2023-07-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/foto", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/foto.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/foto.jpg", + "type": "image/jpeg", + "height": 2048, + "width": 1453 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "The Inverted City (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2024-02-28T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/tic", + "type": "text/html", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tic.epub", + "type": "application/epub+zip" + } + ] + } + } + ], + "images": [ + { + "href": "http://localhost:3000/books/tic.jpg", + "type": "image/jpeg", + "height": 2321, + "width": 1502 + } + ] + }, + { + "metadata": { + "@type": "http://schema.org/Book", + "title": "Toward a Nomad Web (indirect)", + "author": "Open Machine", + "language": "en", + "modified": "2026-07-07T00:00:00Z" + }, + "links": [ + { + "rel": "http://opds-spec.org/acquisition/open-access", + "href": "http://localhost:3000/books/tanw.epub", + "properties": { + "indirectAcquisition": [ + { + "href": "http://localhost:3000/books/tanw.epub", + "type": "application/epub+zip" + } + ] + } + } + ] + } + ] +} diff --git a/content/film/.gitkeep b/specs/rss/.gitkeep similarity index 100% rename from content/film/.gitkeep rename to specs/rss/.gitkeep diff --git a/styles/page.css b/styles/page.css index e0048da..c667ce3 100644 --- a/styles/page.css +++ b/styles/page.css @@ -1,97 +1,55 @@ /* container */ .container { - background: var(--background-primary-transparent); + align-items: center; + background: var(--background-primary); + display: flex; + justify-content: center; + min-height: calc(100vh - var(--header-height) - var(--footer-height)); padding-bottom: var(--footer-height); padding-top: var(--header-height); - width: 100dvw; +} + +/* banner */ + +.banner { + align-items: center; + display: flex; + font-size: 1em; + justify-content: center; + min-height: 10vh; + padding: 2em 0; + text-align: center; +} + +@media (max-width: 850px) { + .banner { + font-size: 1em; + } +} + +.banner p { + padding: 0.2em 0; +} + +@media (max-width: 850px) { + .banner p { + padding: 0.15em 0 !important; + } } /* content */ .content { - align-items: center; - background: var(--background-primary); - display: flex; font-size: 1.2em; - justify-content: center; + margin: 5vh 0; + width: 650px; } @media (max-width: 850px) { .content { - font-size: 1em; - } -} - -.content > div { - display: block; - margin-bottom: 5%; - max-width: 650px; - padding: 2em; -} - -@media (max-width: 850px) { - .content > div { - padding-top: 0; - } -} - -.content > div h1 { - font-size: 1.75em; - margin: 2em 0 1em 0; -} - -@media (max-width: 850px) { - .content > div h1 { - margin: 1em 0; - } -} - -.content > div p { - padding: 0.5em 0; -} - -.content > div ul { - list-style-position: inside; - margin: 0.5em 1em; -} - -.content > div li { - padding: 0.25em 0; -} - -/* item */ - -.item { - margin: 2em auto; -} - -.item h2 { - font-size: 1.25em; - margin: 2em 0 0.25em 0; - text-align: center; -} - -@media (max-width: 850px) { - .item h2 { - font-size: 1.25em; - } -} - -.item p { - text-align: center; -} - -.item img { - display: block; - filter: grayscale(0.5); - height: auto; - margin: 1em auto; - width: 400px; -} - -@media (max-width: 850px) { - .item img { - width: 200px; + margin: 2vh 5vw; + max-width: 650px; + width: auto; } } diff --git a/tsconfig.json b/tsconfig.json index f3c0970..ec4f671 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,7 +21,8 @@ ], "paths": { "@components/*": ["components/*"], - "@contexts": ["contexts"] + "@contexts": ["contexts"], + "@utils": ["utils"] } }, "include": [ diff --git a/utils/getArtifact.ts b/utils/getArtifact.ts new file mode 100644 index 0000000..8651cd2 --- /dev/null +++ b/utils/getArtifact.ts @@ -0,0 +1,27 @@ +import fs from "fs"; +import path from "path"; +import matter from "gray-matter"; +import { remark } from "remark"; +import html from "remark-html"; + +const root = path.join(process.cwd(), "artifacts"); + +export async function getArtifact(dir: string, id: string) { + const fullPath = path.join(root, dir, `${id}.md`); + + // read file contents + const fileContents = fs.readFileSync(fullPath, "utf8"); + + // parse file contents + const { content, data } = matter(fileContents); + + // convert markdown to html + const processedContent = await remark().use(html).process(content); + + // return id, content, and data + return { + id, + content: processedContent.toString(), + ...data, + } as any; +} diff --git a/utils/getArtifacts.ts b/utils/getArtifacts.ts new file mode 100644 index 0000000..21c9038 --- /dev/null +++ b/utils/getArtifacts.ts @@ -0,0 +1,31 @@ +import fs from "fs"; +import path from "path"; +import matter from "gray-matter"; + +const root = path.join(process.cwd(), "artifacts"); + +export const getArtifacts = (dir: string) => { + const fileNames = fs.readdirSync(root + "/" + dir); + + const filtered = fileNames.filter((fileName) => fileName.includes(`.md`)); + + return filtered.map((fileName) => { + // set id + const id = fileName.replace(/\.md$/, ""); + + // set full path + const fullPath = path.join(root, dir, fileName); + + // read file contents + const fileContents = fs.readFileSync(fullPath, "utf8"); + + // parse file contents + const { data } = matter(fileContents); + + // return id and data + return { + id, + ...data, + }; + }) as any[]; +}; diff --git a/utils/index.ts b/utils/index.ts new file mode 100644 index 0000000..5441782 --- /dev/null +++ b/utils/index.ts @@ -0,0 +1,2 @@ +export { getArtifact } from "./getArtifact"; +export { getArtifacts } from "./getArtifacts";