-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
446 lines (435 loc) · 16.4 KB
/
index.html
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
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<meta name="theme-color" content="#71a598" />
<meta
name="description"
content="The Official Website for the Japanese Language and Culture Club at the University of Houston"
/>
<meta property="og:title" content="UH Japanese Language and Culture Club" />
<meta property="og:type" content="website" />
<meta
property="og:image"
content="https://www.jlcc-uh.org/img/JLCC-Landing-Banner-2023.png"
/>
<meta property="og:url" content="https://www.jlcc-uh.org" />
<meta
property="og:description"
content="The Official Website for the Japanese Language and Culture Club at the University of Houston"
/>
<title>UH Japanese Language and Culture Club</title>
<link rel="icon" href="./public/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="./public/logo192.png" />
<link rel="manifest" href="./public/manifest.json" />
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="officerList.js"></script>
<!-- Google tag (gtag.js) -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-NHFFQ4KL74"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());
gtag("config", "G-NHFFQ4KL74");
</script>
</head>
<body>
<!-- Header -->
<secion id="header">
<div class="header container">
<div class="nav-bar">
<div class="brand">
<a href="/">
<img src="./public/logo192.png" />
</a>
<a href="/">
<img
class="banner-text"
src="./img/JLCC-UH-Banner-Text-2023-v2.png"
/>
</a>
</div>
<div class="nav-list">
<div class="hamburger">
<div class="bar"></div>
</div>
<ul>
<li><a href="#about" data-after="About">About</a></li>
<li><a href="#events" data-after="Events">Events</a></li>
<li><a href="#officers" data-after="Officers">Officers</a></li>
<li>
<a href="#membership" data-after="Membership">Membership</a>
</li>
<li><a href="#community" data-after="Community">Community</a></li>
</ul>
</div>
</div>
</div>
</secion>
<!-- End of Header -->
<!-- Hero Section -->
<section id="hero">
<div class="hero container"></div>
</section>
<!-- End of Hero Section -->
<!-- About Section -->
<section id="about">
<div class="about container">
<div class="about-top">
<h1 class="section-title">About Us</h1>
</div>
<div class="about-bottom">
<div class="about-left">
<div class="about-blurb">
<p>
Founded in Fall 2021, the Japanese Language and Culture Club at
the University of Houston is a place for those interested in
Japanese culture and the Japanese language to congregate and
discuss those topics. From academic assistance for those who are
taking Japanese classes at UH, to general help & practice
sessions, UH's JLCC has plenty of resources for those looking
for help on their Japanese-learning journey. We're an active
community full of passionate Japanese enthusiasts eager to share
our experiences with others.
</p>
<p>
We're open for anyone to join, so if you're interested in taking
part in our activities & joining our community, feel free to
join our discord server and see what we're all about!
</p>
</div>
</div>
<div class="about-right">
<!-- <div class="about-img"> <img src="./img/placeholder.png"> </div> -->
</div>
</div>
</div>
</section>
<!-- End of About Section -->
<!-- Events Section -->
<section id="events">
<div class="events container">
<div class="events-top">
<h1 class="section-title">Upcoming Events</h1>
</div>
<div class="events-bottom">
<script>
var eventsBot = document.getElementsByClassName("events-bottom");
eventsBot[0].innerHTML = `<h1 class="events-loading">LOADING EVENTS...</h1>`;
const SHEET_ID = "1FtZ30gm7E50faLSdECNBO8aVx3k6sRV-RVlRwHi_vbE";
const API_KEY = "AIzaSyB--kBZheOdXiaXSmRaLzLDZ_nXQRs1crY";
fetch(
`https://sheets.googleapis.com/v4/spreadsheets/${SHEET_ID}/values/Upcoming!A1:H3?key=${API_KEY}`
)
.then(function (response) {
return response.json();
})
.then(function (data) {
result = ``;
for (var i = 0; i < 2; i++) {
//console.log(data);
//console.log(data.values.length);
if (
data.values.length > i + 1 &&
data.values[i + 1][0] != ""
) {
//if title isn't blank
let eventLink = ``;
if (data.values[i + 1][7] != undefined) {
//Event link
if (
data.values[i + 1][6] != undefined &&
data.values[i + 1][6] != ""
) {
// if theres a label, use it
eventLink = `<a target="_blank" href=${
data.values[i + 1][7]
}>${data.values[i + 1][6]}</a>`;
} else {
//else just put the link there
eventLink = `<a target="_blank" href=${
data.values[i + 1][7]
}">Event Details or RSVP</a>`;
}
}
let eventImg = `<img src="./img/placeholder3.png" alt="${
data.values[i + 1][0]
} Event Image" >`;
if (
data.values[i + 1][5] != undefined &&
data.values[i + 1][5] != ""
) {
eventImg = `<img src=${data.values[i + 1][5]} alt="${
data.values[i + 1][0]
} Event Image" >`;
}
var item = `
<div class="events-item" tabindex="0" alt="View event details">
<div class="events-img"> ${eventImg} </div>
<div class="events-info">
<h1>${data.values[i + 1][0]}</h1>
<p>Location: ${data.values[i + 1][2]}</p>
<p>${data.values[i + 1][3]}, ${data.values[i + 1][4]}</p>
<div class="events-info more">
<p><i>${data.values[i + 1][1]}</i></p>
${eventLink}
</div>
<div class="events-info-expand">
<img class="expand-button" src="./img/expand.png"/>
</div>
</div>
</div>
`;
//eventsBot[0].innerHTML += item;
result += item;
} else if (i == 0) {
//default when no events loaded
var item = `
<div class="events-item">
<div class="events-img"> <img src="./img/placeholder3.png"> </div>
<div class="events-info">
<h1>More events coming soon!</h1>
<h2>Check back later for more events...</h2>
<p> </p>
<p> </p>
</div>
</div>
`;
//eventsBot[0].innerHTML += item;
result += item;
}
}
if (result == ``) {
//Alternative style for no events loaded
result = `<div class="box1 sb7">No Upcoming Events! <br> Check our previous events below!</div>`;
}
eventsBot[0].innerHTML = result;
})
.catch(function (error) {
console.log(error);
var item = `
<div class="events-item">
<div class="events-img"> <img src="./img/placeholder3.png"> </div>
<div class="events-info">
<h1>Error loading event data</h1>
<h2>Try refreshing the page...</h2>
<p> Please contact JLCC admins via discord if the problem persists </p>
<p> </p>
</div>
</div>
`;
//eventsBot[0].innerHTML += item;
eventsBot[0].innerHTML += item;
});
</script>
</div>
<div class="events-all">
<a href="./events.html" type="button" class="cta">View all Events</a>
</div>
</div>
</section>
<!-- End of Events Section -->
<!-- Officers Section -->
<section id="officers">
<div class="officers container">
<div class="officers-top">
<h1 class="section-title">JLCC Officers</h1>
</div>
<div class="officers-bottom">
<script>
var officersBot =
document.getElementsByClassName("officers-bottom");
officersBot[0].innerHTML = `<h1 class="events-loading">LOADING OFFICERS...</h1>`;
const OFFICER_SHEET_ID =
"1jb5jnUxogVqEqsCCdd0AQQwhgCaiF-LV_vY-9Krm_dk";
fetch(
`https://sheets.googleapis.com/v4/spreadsheets/${OFFICER_SHEET_ID}/values/'Officers'!A2:I20?key=${API_KEY}`
)
.then(function (response) {
return response.json();
})
.then(function (data) {
result = ``;
console.log(data);
console.log(data.values);
console.log(data.values[0]);
data.values.map((entry) => {
result += `
<div class="officers-item">
<div class="officers-img">
<div class="officers-img-top">
${
entry[5]
? `<a target="_blank" href=${entry[5]}><img src="./img/JLCC-Instagram-Green.png" alt="${entry[0]}'s Instagram" /></a>`
: ``
}
${
entry[7]
? `<a target="_blank" href="https://discord.com/users/${entry[7]}""><img src="./img/JLCC-Discord.png" alt="${entry[0]}'s Discord" /></a>`
: ``
}
${
entry[8]
? `<a target="_blank" href=${entry[8]}><img src="./img/JLCC-LinkedIn-Green.png" alt="${entry[0]}'s LinkedIn" /></a>`
: ``
}
</div>
<img class="officer-pic" src=${entry[4]} referrerPolicy="no-referrer" alt="${
entry[0]
}" onerror="this.src='./img/placeholderOfficer.png'">
</div>
<div class="officers-info">
<h1>${entry[0]}</h1>
<h2>${entry[2]}</h2>
</div>
</div>
`;
});
officersBot[0].innerHTML = result;
});
</script>
</div>
<div class="events-all">
<a href="./officers.html" type="button" class="cta"
>Meet the Officers</a
>
</div>
</div>
</section>
<!-- End of Officers Section -->
<!-- Membership Section -->
<section id="membership">
<div class="membership container">
<div class="membership-left">
<h1 class="section-title">About Membership</h1>
<p>
Membership grants access to member-only community events! These
include workshops, where JLCC teaches members how to make Japanese
food.
</p>
<p>
Additionally, paying for membership helps fund JLCC events, and
allows JLCC to increase community involvement. If you're a fan of
what JLCC does, purchasing membership is a great way to support us &
show your appreciation.
</p>
<p>
In order to receive memebrship & gain access to the above benefits,
please pay dues via <b>PayPal</b> & fill out the membership form.
Please contact
<b
><a
target="_blank"
href="https://discord.com/users/211670684479258624"
>@Josh - Treasurer</a
></b
>
via Discord to receive your Member benefits & Discord role.
</p>
</div>
<div class="membership-right">
<h1 class="section-title">Payment</h1>
<h2>Pricing: <span>$17</span>/Year</h2>
<h3>(<span>$10</span>/Semester)</h3>
<!--<a href="#" type="button" class="cta">Pay Dues via Venmo</a>-->
<!--<img src="./img/JLCC-Zelle.png" />-->
<a
target="_blank"
href="./img/JLCC-PayPal-QR-Code.jpg"
type="button"
class="cta"
>Pay Dues via PayPal</a
>
<br />
<a target="_blank" href="https://forms.gle/8mGDQWK5wrxV6wD47"
><span>Membership Form</span></a
>
</div>
</div>
</section>
<!-- End of Section -->
<!-- Community Section -->
<section id="community">
<div class="community container">
<h1 class="section-title">Community</h1>
<div class="community-list">
<div class="community-item">
<h1 class="section-title">Discord</h1>
<p>
Join our Discord server to gain access to a community of over 300
other Japanese learners from the University of Houston. Have your
burning Japanese questions answered by those who were once in your
shoes. Participate in events hosted on Discord like Japanese
Tables & impromptu gaming sessions.
</p>
<p>
The server is open to anyone studying at the University of
Houston, so feel free to join if you're interested!
</p>
<div class="icon">
<a target="_blank" href="https://discord.gg/AJNdDZwyrJ"
><img
src="./img/JLCC-Discord-Alt.png"
alt="JLCC UH Discord Server"
/></a>
</div>
</div>
<div class="community-item">
<h1 class="section-title">Instagram</h1>
<p>
Follow us on Instagram to keep up our with upcoming events & get
to know our officers!
</p>
<div class="icon">
<a target="_blank" href="https://www.instagram.com/jlccuh/"
><img src="./img/JLCC-Instagram.png" alt="JLCC UH Instagram"
/></a>
</div>
</div>
</div>
</div>
</section>
<!-- End of Community Section -->
<!-- Footer Section -->
<section id="footer">
<div class="footer container">
<div class="brand">
<a href="/">
<img src="./public/logo192.png" />
</a>
<a href="/">
<img
class="banner-text"
src="./img/JLCC-UH-Banner-Text-2023-v2.png"
/>
</a>
</div>
<h2>Japanese Language and Culture Club, University of Houston</h2>
<div class="social-icon">
<!-- <div class="social-item"> <a href="https://www.instagram.com/jlccuh/"> <img src="./img/JLCC-Instagram.png"
alt="JLCC UH Instagram"></a></div> -->
<div class="social-item">
<a href="mailto:[email protected]">
<img src="./img/JLCC-Mail.png" alt="Email JLCC UH"
/></a>
</div>
</div>
<p>
Created by
<a href="https://mitchellsharma.com/?utm_source=jlcc-uh"
>Mitchell Sharma</a
>
in 2023.
</p>
</div>
</section>
<!-- End of Footer Section -->
<script src="script.js"></script>
</body>
</html>