-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathadminRSO.html
More file actions
272 lines (243 loc) · 8.28 KB
/
adminRSO.html
File metadata and controls
272 lines (243 loc) · 8.28 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="description" content="RSO Management Page - College Event Website" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Tailwind CSS -->
<link rel="stylesheet" href="/src/output.css" />
<!-- Collegiate Fonts (Google Fonts) -->
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Lato:wght@400;700&display=swap"
rel="stylesheet" />
<script type="text/javascript" src="js/functions.js"></script>
<title>RSO Management - College Events</title>
<style>
/* Base color palette */
:root {
--color-light-bg: #e7eed0;
--color-card-bg: #cad1c3;
--color-border: #948e99;
--color-button: #51425f;
--color-header: #2e1437;
}
body {
font-family: 'Lato', sans-serif;
background-color: var(--color-light-bg);
color: var(--color-header);
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Cinzel', serif;
color: var(--color-header);
text-align: center;
margin: 0;
padding: 0;
}
/* Header styling */
header {
background-color: var(--color-header);
padding: 1.5rem 0;
}
.header-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1rem;
text-align: center;
}
.header-title {
font-size: 3rem;
color: #fff;
}
.header-subtitle {
font-size: 1.5rem;
color: #fff;
margin-top: 0.5rem;
}
/* Main container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
}
/* Card styling */
.card {
background-color: var(--color-card-bg);
border: 1px solid var(--color-border);
border-radius: 0.5rem;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
padding: 1.5rem;
margin-bottom: 2rem;
}
.card h3 {
text-align: center;
margin-top: 0;
margin-bottom: 1rem;
}
/* Form elements */
.form-input,
.form-select,
.form-textarea {
background-color: #fff;
border: 1px solid var(--color-border);
color: var(--color-header);
padding: 0.5rem;
border-radius: 0.25rem;
width: 90%;
display: block;
margin: 0 auto 1rem auto;
}
.btn {
background-color: var(--color-button);
color: #fff;
padding: 0.75rem;
border: none;
border-radius: 0.25rem;
cursor: pointer;
transition: background-color 0.3s ease;
width: 66.67%;
margin: 0 auto;
display: block;
}
.btn:hover {
background-color: var(--color-border);
}
/* Grid layout for cards */
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 2rem;
}
/* Card buttons styling */
.card-buttons {
text-align: center;
margin-top: 1rem;
}
.card-buttons .btn {
margin: 0 0.25rem;
width: auto;
padding: 0.5rem 1rem;
display: inline-block;
}
/* Filter dropdown */
.filter-dropdown {
max-width: 300px;
margin: 0 auto 2rem auto;
display: block;
}
/* Logout Button CSS */
.logout-btn {
background-color: #51425f;
/* Primary button color */
color: #fff;
/* White text */
padding: 0.5rem 1rem;
/* Vertical & horizontal padding */
border: none;
/* No border */
border-radius: 0.25rem;
/* Slightly rounded corners */
cursor: pointer;
/* Pointer cursor on hover */
transition: background-color 0.3s ease;
/* Smooth color transition */
}
.logout-btn:hover {
background-color: #948e99;
/* Hover state color */
}
</style>
</head>
<body>
<!-- Header / Navbar -->
<header>
<button class="logout-btn" onclick="logout()">Logout</button>
<div class="header-container">
<h1 class="header-title">College Events</h1>
<h2 class="header-subtitle">RSO Management</h2>
</div>
</header>
<!-- Main Content -->
<main class="container">
<!-- Hero Section -->
<section style="text-align: center; margin-bottom: 2rem;">
<h2 class="text-3xl">Manage Your RSOs</h2>
<p class="text-lg" style="max-width: 600px; margin: 0 auto;">
Create new RSOs, manage existing ones, and filter by university affiliation.
</p>
</section>
<!-- Create New User -->
<section class="card" style="max-width: 600px; margin: 0 auto 2rem auto;">
<h3 class="text-2xl mb-6 text-center">Create User</h3>
<form id="newUser-form">
<div class="form-group">
<input type="text" id="signUpName" placeholder="Name" required class="form-input">
</div>
<div class="form-group">
<input type="email" id="signUpEmail" placeholder="Email" required class="form-input">
</div>
<div class="form-group">
<input type="password" id="signUpPassword" placeholder="Password" required class="form-input">
</div>
<div class="form-group">
<input type="text" id="signUpUni" placeholder="University" required class="form-input">
</div>
<div class="form-group">
<select id="signUpUserType" class="form-select">
<option value="Student">Student</option>
<option value="Admin">Admin</option>
<option value="SuperAdmin">Super Admin</option>
</select>
</div>
<div class="form-group text-center">
<button type="button" onclick="adminCreateUser()" class="btn font-semibold">Sign Up</button>
</div>
<p id="signupRes" class="mt-3 text-sm text-center"></p>
</form>
</section>
<!-- Create New Event Form -->
<section class="card" style="max-width: 600px; margin: 0 auto 2rem auto;">
<h3 class="text-2xl">Create New Event</h3>
<form id="event-form">
<input type="text" id="eventName" placeholder="Name" required class="form-input">
<input type="text" id="eventCatagory" placeholder="Catagory" required class="form-input">
<textarea id="eventDescription" placeholder="Description" required rows="3" class="form-textarea"></textarea>
<input type="time" id="eventTime" placeholder="Time" required class="form-input">
<input type="date" id="eventDate" placeholder="Date" required class="form-input">
<select id="eventType">
<option value="RSO">RSO</option>
<option value="Private">Private</option>
<option value="Public">Public</option>
</select>
<input type="text" id="eventRSOorUni" placeholder="RSOID or University Name" class="form-input">
<input type="text" id="eventLocation" placeholder="Location" required class="form-input">
<input type="tel" id="eventPhone" placeholder="Phone Number" required class="form-input">
<input type="email" id="eventEmail" placeholder="Email" required class="form-input">
<button type="button" onclick="createEventAdmin()" class="btn font-semibold">Create Event</button>
</form>
</section>
<!-- Create New RSO Form -->
<section class="card" style="max-width: 600px; margin: 0 auto 2rem auto;">
<h3 class="text-2xl">Create New RSO</h3>
<form>
<input type="text" id="rsoName" placeholder="RSO Name" required class="form-input">
<input type="text" id="uniID" placeholder="University ID" required class="form-input">
<textarea id="rsoDescription" placeholder="RSO Description" rows="3" required class="form-textarea"></textarea>
<p class="text-right">Need Five Additional Members With the Same Email Domain</p>
<textarea id="addMem1" placeholder="Additional Member One" class="form-input" required></textarea>
<textarea id="addMem2" placeholder="Additional Member Two" class="form-input" required></textarea>
<textarea id="addMem3" placeholder="Additional Member Three" class="form-input" required></textarea>
<textarea id="addMem4" placeholder="Additional Member Four" class="form-input" required></textarea>
<button type="button" onclick="createRSO()" class="btn font-semibold">Create RSO</button>
<p id="rsoRES" class="mt-3 text-sm text-center"></p>
</form>
</section>
</main>
</body>
</html>