-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpage-submit-listing.js
73 lines (70 loc) · 4.09 KB
/
page-submit-listing.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
import React from "react"
import BodyClassName from "react-body-classname"
import {Helmet} from "react-helmet"
import HeaderPortal from "components/header-portal"
import "components/styles/page-submit-listing.scss"
import { useMainHeading } from "./main-heading-context"
const SubmitListingPage = () => {
useMainHeading('Submit your spot')
return (
<BodyClassName className="header-overlap page-submit-listing">
<>
<section aria-labelledby="heading-1">
<header className="page-header">
<div className="page-header-content layout">
<h2 className="primary-heading h1-style" id="heading-1">Submit Your Spot</h2>
</div>
</header>
<article className="form-wrap">
<div className="layout">
<h3>Got a camping spot our community would enjoy? Tell us about it!</h3>
<form>
<div className="two-parts-50-50">
<div className="form-field">
<label htmlFor="submittername">Your name <span className="asterisk" abbr="required">*</span></label>
<input type="text" id="submittername" />
</div>
<div className="form-field">
<label htmlFor="email">Your email address <span className="asterisk" abbr="required">*</span></label>
<input type="email" id="email" pattern="/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/" />
</div>
</div>
<div className="two-parts-50-50">
<div className="form-field">
<label htmlFor="sitename">Site Name <span className="asterisk" abbr="required">*</span></label>
<input type="text" id="sitename" />
</div>
<div className="form-field">
<label htmlFor="location">Location <span className="asterisk" abbr="required">*</span></label>
<input type="text" id="location" />
</div>
</div>
<div className="two-parts-50-50">
<div className="form-field">
<label htmlFor="fee">Nightly fee</label>
<input type="number" id="fee" placeholder="$" />
</div>
<div className="form-field">
<label htmlFor="ownership">
Can the public legally camp here? <span className="asterisk" abbr="required">*</span>
</label>
<input type="checkbox" id="ownership" name="ownership" value="Owned" />
</div>
</div>
<div className="form-field">
<label htmlFor="notes">Notes</label>
<textarea id="notes"></textarea>
</div>
<p id="key" className="asterisk">* Fields are required.</p>
<div className="form-submit">
<button className="btn-submit">Submit</button>
</div>
</form>
</div>
</article>
</section>
</>
</BodyClassName>
)
}
export default SubmitListingPage