diff --git a/app/artifacts/essays/feed/route.ts b/app/artifacts/essays/feed/route.ts deleted file mode 100644 index 5663b7d..0000000 --- a/app/artifacts/essays/feed/route.ts +++ /dev/null @@ -1,41 +0,0 @@ -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 deleted file mode 100644 index b236463..0000000 --- a/app/artifacts/feed/route.ts +++ /dev/null @@ -1,44 +0,0 @@ -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 deleted file mode 100644 index 221855a..0000000 --- a/app/artifacts/film/feed/route.ts +++ /dev/null @@ -1,41 +0,0 @@ -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 deleted file mode 100644 index 2b5083e..0000000 --- a/app/artifacts/software/feed/route.ts +++ /dev/null @@ -1,41 +0,0 @@ -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 deleted file mode 100644 index 65b1dc6..0000000 --- a/app/artifacts/videos/feed/route.ts +++ /dev/null @@ -1,41 +0,0 @@ -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 new file mode 100644 index 0000000..b3cfd7d --- /dev/null +++ b/app/feed/atom/route.ts @@ -0,0 +1,12 @@ +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 new file mode 100644 index 0000000..fa08718 --- /dev/null +++ b/app/feed/json/route.ts @@ -0,0 +1,12 @@ +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 new file mode 100644 index 0000000..d19fb81 --- /dev/null +++ b/app/feed/rss/route.ts @@ -0,0 +1,12 @@ +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 b0d064a..7ccf028 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -7,6 +7,11 @@ import "./globals.css"; const Layout = ({ children }: any) => ( + + + + +
diff --git a/app/page.tsx b/app/page.tsx index 66eb09a..13cea88 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -1,5 +1,7 @@ import { Metadata } from "next"; +import Link from "next/link"; + import styles from "./page.module.css"; export const metadata: Metadata = { @@ -20,18 +22,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"} - + {"."}


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

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

+
+

{"additional links"}

+ ); diff --git a/components/Footer.module.css b/components/Footer.module.css index 4efdc4b..a5485a9 100644 --- a/components/Footer.module.css +++ b/components/Footer.module.css @@ -19,6 +19,7 @@ .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 acdfbaf..bba0c91 100644 --- a/components/Footer.tsx +++ b/components/Footer.tsx @@ -1,5 +1,7 @@ "use client"; +import Link from "next/link"; + import styles from "./Footer.module.css"; const Footer = () => { @@ -7,22 +9,13 @@ const Footer = () => {
diff --git a/components/Header.tsx b/components/Header.tsx index 73f1bd0..3c61752 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -35,10 +35,7 @@ const Header = () => { {"artifacts"}
  • - {"git"} -
  • -
  • - {"rss"} + {"rss"}