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/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/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/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/feed/atom/route.ts b/app/feed/atom/route.ts deleted file mode 100644 index b3cfd7d..0000000 --- a/app/feed/atom/route.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { buildFeed } from "utils/buildFeed"; - -export const revalidate = false; - -export async function GET() { - return new Response(buildFeed().atom1(), { - headers: { - "Content-Type": "application/atom+xml; charset=utf-8", - "Cache-Control": "public, max-age=3600", - }, - }); -} diff --git a/app/feed/json/route.ts b/app/feed/json/route.ts deleted file mode 100644 index fa08718..0000000 --- a/app/feed/json/route.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { buildFeed } from "utils/buildFeed"; - -export const revalidate = false; - -export async function GET() { - return new Response(buildFeed().json1(), { - headers: { - "Content-Type": "application/feed+json; charset=utf-8", - "Cache-Control": "public, max-age=3600", - }, - }); -} diff --git a/app/feed/rss/route.ts b/app/feed/rss/route.ts deleted file mode 100644 index d19fb81..0000000 --- a/app/feed/rss/route.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { buildFeed } from "utils/buildFeed"; - -export const revalidate = false; - -export async function GET() { - return new Response(buildFeed().rss2(), { - headers: { - "Content-Type": "application/rss+xml; charset=utf-8", - "Cache-Control": "public, max-age=3600", - }, - }); -} diff --git a/app/layout.tsx b/app/layout.tsx index 7ccf028..b0d064a 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -7,11 +7,6 @@ import "./globals.css"; const Layout = ({ children }: any) => ( - - - - -
diff --git a/app/page.tsx b/app/page.tsx index 13cea88..66eb09a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,7 +1,5 @@ import { Metadata } from "next"; -import Link from "next/link"; - import styles from "./page.module.css"; export const metadata: Metadata = { @@ -22,18 +20,18 @@ const HomePage = () => { { "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"} - + {"."}


@@ -99,102 +97,113 @@ const HomePage = () => {

@@ -233,28 +242,6 @@ const HomePage = () => { }

-
-

{"additional links"}

- ); diff --git a/components/Footer.module.css b/components/Footer.module.css index a5485a9..4efdc4b 100644 --- a/components/Footer.module.css +++ b/components/Footer.module.css @@ -19,7 +19,6 @@ .footer li { align-items: center; display: flex; - font-weight: 400; height: inherit; justify-content: center; margin: 0 0.75em; diff --git a/components/Footer.tsx b/components/Footer.tsx index bba0c91..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 = () => { @@ -9,13 +7,22 @@ const Footer = () => {
diff --git a/components/Header.tsx b/components/Header.tsx index 3c61752..73f1bd0 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -35,7 +35,10 @@ const Header = () => { {"artifacts"}
  • - {"rss"} + {"git"} +
  • +
  • + {"rss"}