1import Link from "next/link";
2import { useState } from "react";
3import Container from "../../components/Container";
4import Section from "../../components/Section";
5import SingleColumn from "../../components/SingleColumn";
6import { useInputChange } from "../../lib/hooks";
7import Head from "next/head";
8import Meta from "../../components/Meta";
10const SubmissionPage = () => {
11 const [form, handleFormChange] = useInputChange();
12 const [publicGroup, setPublicGroup] = useState(true);
14 const href = `https://github.com/urbit/urbit.org/new/master?filename=/content/groups/${
16 }.md&value=${encodeURIComponent(
18title = "${form?.groupName}"
19shortcode = "${form?.shortcode}"
20type = "${publicGroup ? "Public" : "Private"}"
21tile = "${form?.tile || ""}"
22participant_range = "${form?.members || ""}"
25${form?.description || ""}`
31 <title>Submit a group • Urbit.org</title>
35 <Section narrow className="space-y-12">
36 <div className="flex flex-col space-y-4">
37 <h2>Submit your group</h2>
39 Groups submissions are accomplished through a GitHub pull request.
42 You’ll need <a href="https://github.com">a GitHub account</a>{" "}
43 before you get started to submit your group.
46 First, enter your information and then click “Submit with GitHub.”
47 You’ll be directed to a GitHub pull request page with a
48 pre-populated markdown file. Click “Propose new file,” and then
49 “Create pull request” on the following page.
52 Then, to validate that you operate this group, send a DM to{" "}
53 <Link href="/ids/~haddef-sigwen">
56 from your group host <code>@p</code> with a link to the pull
57 request on GitHub. We’ll approve the pull request and your page
58 will be online shortly.
61 <div className="flex flex-col space-y-4">
62 <h3>Enter your group information</h3>
63 <div className="flex flex-col">
64 <p>Group name (required)</p>
66 className="bg-wall-100 p-2"
68 placeholder="Urbit Community"
69 onChange={handleFormChange}
72 <div className="flex flex-col">
74 <div className="flex space-x-4">
76 className="flex items-center space-x-2 cursor-pointer"
77 onClick={() => setPublicGroup(true)}
87 className="flex items-center space-x-2 cursor-pointer"
88 onClick={() => setPublicGroup(false)}
93 checked={!publicGroup}
99 <div className="flex flex-col">
100 <p>Shortcode (required)</p>
102 className="bg-wall-100 p-2"
104 placeholder="~bitbet-bolbel/urbit-community"
105 onChange={handleFormChange}
108 <div className="flex flex-col">
109 <p>Group image URL or color</p>
111 className="bg-wall-100 p-2"
113 placeholder="https://... or #FFCDE0"
114 onChange={handleFormChange}
117 <div className="flex flex-col">
120 className="bg-wall-100 p-2"
123 onChange={handleFormChange}
126 <div className="flex flex-col">
129 className="resize-none bg-wall-100 p-2 h-60"
131 onChange={handleFormChange}
136 className="button-lg bg-wall-600 text-wall-100"
137 onClick={() => window.open(href)}
142 <a className="text-xl pt-8 block font-semibold">Urbit.org</a>
150export 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