@@ -0,0 +1,101 @@
1+import Head from "next/head";
2+import Link from "next/link";
3+import { getPostBySlug } from "../../lib/lib";
4+import Meta from "../../components/Meta";
5+import Markdown from "../../components/Markdown";
6+import Container from "../../components/Container";
7+import SingleColumn from "../../components/SingleColumn";
8+import Section from "../../components/Section";
9+import { decode } from "html-entities";
10+
11+export default function GuidePage({ post, markdown }) {
12+ return (
13+ <Container>
14+ <Head>
15+ <title>Urbit • {post.title}</title>
16+ {Meta(post)}
17+ </Head>
18+ <SingleColumn>
19+ <Section narrow>
20+ <h2>{post.title}</h2>
21+ </Section>
22+ <Section narrow>
23+ <article
24+ className="markdown"
25+ dangerouslySetInnerHTML={{ __html: decode(markdown) }}
26+ ></article>
27+ <h2 className="text-3xl my-12">5. Add more applications</h2>
28+ <p className="my-2">Here's a few more applications to check out:</p>
29+ <Link href="/application/~paldev/pals">
30+ <div class="bg-wall-200 rounded-xl p-3 flex flex-col space-y-4 my-6 cursor-pointer">
31+ <div class="flex space-x-4 items-center">
32+ <div
33+ class="rounded-xl"
34+ style={{
35+ height: 100,
36+ width: 100,
37+ backgroundColor: "#A6D2BE",
38+ }}
39+ ></div>
40+ <h3>pals</h3>
41+ </div>
42+ <p>add people you know on the network</p>
43+ </div>
44+ </Link>
45+
46+ <Link href="/application/~fabnev-himnur/escape">
47+ <div class="bg-wall-200 rounded-xl p-3 flex flex-col space-y-4 my-6 cursor-pointer">
48+ <div class="flex space-x-4 items-center">
49+ <img
50+ src="https://media.urbit.org/site/application/escape.png"
51+ style={{ height: 100, width: 100 }}
52+ />
53+ <h3>EScape</h3>
54+ </div>
55+ <p>
56+ an alternative interface for the Groups application, with pals
57+ integration by{" "}
58+ <span className="text-green-400 font-mono">~fabnev-hinmur</span>
59+ </p>
60+ </div>
61+ </Link>
62+
63+ <Link href="/application/~paldev/rumors">
64+ <div class="bg-wall-200 rounded-xl p-3 flex flex-col space-y-4 cursor-pointer">
65+ <div class="flex space-x-4 items-center">
66+ <div
67+ class="rounded-xl"
68+ style={{
69+ backgroundColor: "#B17AD7",
70+ height: 100,
71+ width: 100,
72+ }}
73+ ></div>
74+ <h3>rumors</h3>
75+ </div>
76+ <p>the more people you know, the more rumors you’ll hear</p>
77+ </div>
78+ </Link>
79+ <Link href="/">
80+ <a className="text-xl pt-12 block font-semibold">Urbit.org</a>
81+ </Link>
82+ </Section>
83+ </SingleColumn>
84+ </Container>
85+ );
86+}
87+
88+//
89+export async function getStaticProps({ params }) {
90+ const post = getPostBySlug(
91+ "guide",
92+ ["title", "slug", "content"],
93+ "application"
94+ );
95+
96+ const markdown = await Markdown({ post });
97+
98+ return {
99+ props: { post, markdown },
100+ };
101+}