forked from Techtonica/curriculum
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstarter-jsx.js
118 lines (106 loc) · 3.28 KB
/
starter-jsx.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import calendar from "./calendar.png";
import "./App.css";
function App() {
return (
<div className="App">
<header>
<img src={calendar} alt="Calendar Star Logo" />
<h1>Eventonica</h1>
</header>
<main>
<div className="user-and-events">
<section className="user-management">
<h2>User Management</h2>
<ul id="users-list">
{/* display all existing Users here */}
<li>...</li>
</ul>
<div>
<h3>Add User</h3>
<form id="add-user" action="#">
<fieldset>
<label>Name</label>
<input type="text" id="add-user-name" />
</fieldset>
{/* Add more form fields here */}
<input type="submit" value="Add" />
</form>
</div>
<div>
<h3>Delete User</h3>
<form id="delete-user" action="#">
<fieldset>
<label>User ID</label>
<input type="text" id="delete-user-id" />
</fieldset>
<input type="submit" />
</form>
</div>
</section>
<section className="event-management">
<h2>Event Management</h2>
<div>
<h3>All Events</h3>
<ul id="events-list">
{/* Display all Events here */}
<li>...</li>
</ul>
<h3>Add Event</h3>
<form id="add-event" action="#">
<fieldset>
<label>Name</label>
<input
type="text"
id="add-event-name"
placeholder="Virtual corgi meetup"
/>
</fieldset>
{/* Add more form fields here */}
<input type="submit" />
</form>
</div>
</section>
</div>
<div>
<h3>Delete Event</h3>
<form id="delete-event" action="#">
<fieldset>
<label>Event ID</label>
<input type="number" min="1" id="delete-event-id" />
</fieldset>
<input type="submit" />
</form>
</div>
<aside className="search-toolbar">
<div>
<h3>Find Events</h3>
<form id="search" action="#">
<fieldset>
<label htmlFor="date-search">Date</label>
<input type="text" id="date-search" placeholder="YYYY-MM-DD" />
</fieldset>
<fieldset>
<label htmlFor="category-search">Category</label>
<input type="text" id="category-search" />
</fieldset>
<input type="submit" value="Search" />
</form>
</div>
</aside>
</main>
<footer>
<div>
Star Calendar favicon made by
<a href="https://www.flaticon.com/authors/freepik" title="Freepik">
Freepik
</a>
Find your own on
<a href="https://www.flaticon.com/" title="Flaticon">
FlatIcon.com
</a>
</div>
</footer>
</div>
);
}
export default App;