1import { useRouter } from "next/router";
2import { formatDate } from "../lib/lib";
3import Link from "next/link";
4import Head from "next/head";
5import Meta from "../components/Meta";
6import ErrorPage from "../pages/404";
7import Container from "./Container";
8import Header from "./Header";
9import Footer from "./Footer";
10import SingleColumn from "./SingleColumn";
11import Section from "./Section";
12import { decode } from "html-entities";
13import { DateTime } from "luxon";
15export default function GrantProgramOverview({
23 const router = useRouter();
24 if (!router.isFallback && !post?.slug) {
28 const title = program.charAt(0).toUpperCase() + program.slice(1);
32 <title>{title} • Grants • urbit.org</title>
36 <Header search={search} />
37 <Section narrow short>
39 <div className="type-ui text-wall-500 mt-4 md:mt-8 lg:mt-10">
40 Last Revision: {formatDate(DateTime.fromISO(post.date))}
42 <Link href={actionLink}>
43 <button className="button-sm bg-green-400 text-white mt-8">
48 <Section narrow short className="markdown">
50 dangerouslySetInnerHTML={{ __html: decode(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