1import Link from "next/link";
2import Container from "../../components/Container";
3import Section from "../../components/Section";
4import SingleColumn from "../../components/SingleColumn";
5import { useInputChange } from "../../lib/hooks";
7const SubmissionPage = () => {
8 const [form, handleFormChange] = useInputChange();
10 const href = `https://github.com/urbit/urbit.org/new/master?filename=/content/application/${
12 }.md&value=${encodeURIComponent(
14title = "${form?.appName}"
15shortcode = "${form?.shortcode}"
16license = "${form?.license || ""}"
17image = "${form?.imageUrl || ""}"
18developer = "${form?.developer || ""}"
19website = "${form?.website || ""}"
22${form?.description || ""}`
28 <Section narrow className="space-y-12">
29 <div className="flex flex-col space-y-4">
30 <h2>Submit your application</h2>
32 Application submissions are accomplished through a GitHub pull
36 You’ll need <a href="https://github.com">a GitHub account</a>{" "}
37 before you get started to submit your group.
40 First, enter your information and then click “Submit with GitHub.”
41 You’ll be directed to a GitHub pull request page with a
42 pre-populated markdown file. Click “Propose new file,” and then
43 “Create pull request” on the following page.
46 <div className="flex flex-col space-y-4">
47 <h3>Enter your application information</h3>
48 <div className="flex flex-col">
49 <p>Application name (required)</p>
51 className="bg-wall-100 p-2"
53 onChange={handleFormChange}
56 <div className="flex flex-col">
58 Shortcode (e.g. <code>~paldev/pals</code>) (required)
61 className="bg-wall-100 p-2"
63 onChange={handleFormChange}
66 <div className="flex flex-col">
69 className="bg-wall-100 p-2"
71 onChange={handleFormChange}
74 <div className="flex flex-col">
75 <p>License (e.g. MIT)</p>
77 className="bg-wall-100 p-2"
79 onChange={handleFormChange}
82 <div className="flex flex-col">
85 className="bg-wall-100 p-2"
87 onChange={handleFormChange}
90 <div className="flex flex-col">
93 className="bg-wall-100 p-2"
95 onChange={handleFormChange}
98 <div className="flex flex-col">
101 className="resize-none bg-wall-100 p-2 h-60"
103 onChange={handleFormChange}
108 className="button-lg bg-wall-600 text-wall-100"
109 onClick={() => window.open(href)}
114 <a className="text-xl pt-8 block font-semibold">Urbit.org</a>
122export 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