1import { useRouter } from "next/router";
2import Link from "next/link";
3import Head from "next/head";
4import Meta from "../Meta";
5import ErrorPage from "../../pages/404";
6import classnames from "classnames";
13} from "@urbit/foundation-design-system";
14import Header from "../Header";
15import Footer from "../Footer";
17export default function BasicPage({
24 const router = useRouter();
25 if (!router.isFallback && !post?.slug) {
32 {post.title} • {section} • Urbit
36 <IntraNav ourSite="https://urbit.org" search={search} />
39 <Section narrow className="space-y-12">
40 <div className="flex items-center space-x-4">
41 <img src={post.image} className="w-36" />
42 <div className="flex flex-col pl-2">
44 className={classnames({ "text-3xl": section === "Podcasts" })}
48 <p>{section.slice(0, -1)}</p>
51 {/* General purpose metadata bar -- podcast listen button is special-cased URL, flexed at the end of the row */}
52 <div className="flex justify-between">
53 <div className="flex space-x-12">
55 <div className="flex flex-col">
56 <p className="font-bold text-wall-400">Podcast</p>
61 <div className="flex flex-col">
62 <p className="font-bold text-wall-400">Date</p>
63 <p className="shrink-0">{post.date}</p>
66 {post?.URL && section !== "Podcasts" && (
67 <div className="flex flex-col">
68 <p className="font-bold text-wall-400">Website</p>
70 className="text-green-400 text-sm font-semibold font-mono"
73 {post.URL.slice(post.URL.indexOf("://") + 3)}
77 {post?.URL && section === "Marketplaces" && (
78 <div className="flex flex-col">
79 <p className="font-bold text-wall-400">Accepts</p>
80 <p className="text-sm font-semibold font-mono">
81 {post.payment.join(", ")}
86 {post?.URL && section === "Podcasts" && (
89 className="button-lg bg-green-400 text-white cursor-pointer flex space-x-2"
91 <img src="/images/sound.svg" />
96 <div className="flex">
97 <div className="markdown w-full">
98 <Markdown.render content={JSON.parse(markdown)} />
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list