1import Link from "next/link";
2import { useState } from "react";
7} from "@urbit/foundation-design-system";
8import { useInputChange } from "../../lib/hooks";
9import Head from "next/head";
10import Meta from "../../components/Meta";
12const SubmissionPage = () => {
13 const [form, handleFormChange] = useInputChange();
14 const [publicGroup, setPublicGroup] = useState(true);
16 const href = `https://github.com/urbit/urbit.org/new/master?filename=/content/groups/${
18 }.md&value=${encodeURIComponent(
20title = "${form?.groupName}"
21shortcode = "${form?.shortcode}"
22type = "${publicGroup ? "Public" : "Private"}"
23tile = "${form?.tile || ""}"
24participant_range = "${form?.members || ""}"
27${form?.description || ""}`
33 <title>Submit a group • Urbit.org</title>
37 <Section narrow className="space-y-12">
38 <div className="flex flex-col space-y-4">
39 <h2>Submit your group</h2>
41 Groups submissions are accomplished through a GitHub pull request.
44 You’ll need <a href="https://github.com">a GitHub account</a>{" "}
45 before you get started to submit your group.
48 First, enter your information and then click “Submit with GitHub.”
49 You’ll be directed to a GitHub pull request page with a
50 pre-populated markdown file. Click “Propose new file,” and then
51 “Create pull request” on the following page.
54 Then, to validate that you operate this group, send a DM to{" "}
55 <Link href="/ids/~haddef-sigwen" passHref>
58 from your group host <code>@p</code> with a link to the pull
59 request on GitHub. We’ll approve the pull request and your page
60 will be online shortly.
63 <div className="flex flex-col space-y-4">
64 <h3>Enter your group information</h3>
65 <div className="flex flex-col">
66 <p>Group name (required)</p>
68 className="bg-wall-100 p-2"
70 placeholder="Urbit Community"
71 onChange={handleFormChange}
74 <div className="flex flex-col">
76 <div className="flex space-x-4">
78 className="flex items-center space-x-2 cursor-pointer"
79 onClick={() => setPublicGroup(true)}
89 className="flex items-center space-x-2 cursor-pointer"
90 onClick={() => setPublicGroup(false)}
95 checked={!publicGroup}
101 <div className="flex flex-col">
102 <p>Shortcode (required)</p>
104 className="bg-wall-100 p-2"
106 placeholder="~bitbet-bolbel/urbit-community"
107 onChange={handleFormChange}
110 <div className="flex flex-col">
111 <p>Group image URL or color</p>
113 className="bg-wall-100 p-2"
115 placeholder="https://... or #FFCDE0"
116 onChange={handleFormChange}
119 <div className="flex flex-col">
122 className="bg-wall-100 p-2"
125 onChange={handleFormChange}
128 <div className="flex flex-col">
131 className="resize-none bg-wall-100 p-2 h-60"
133 onChange={handleFormChange}
138 className="button-lg bg-wall-600 text-wall-100"
139 onClick={() => window.open(href)}
143 <Link href="/" passHref>
144 <a className="text-xl pt-8 block font-semibold">Urbit.org</a>
152export default SubmissionPage;
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