-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MIXUP page #625
Add MIXUP page #625
Changes from 41 commits
c5cd03f
9e6b9c2
aa1290f
b5edcd0
b7fefd3
787abdc
bf737c3
e3f3c72
4340c75
0c90f41
d043d84
55a5258
b8bbbe7
5920231
d48224d
de7155c
990fd1f
ca57235
e0ed046
0581f9c
eab7163
cbf2e3f
51e54ce
8bd25b1
83dc116
3698448
98109a4
f97077b
2115509
9232d0f
99b6792
ce779e1
1c7819c
dacd842
dabb7bb
5180707
c6ff344
95c6a66
30a14bc
d9c076c
05d0099
dbaca84
a29c239
f80d7e3
e4c5641
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as with the drag, a photo would fit better |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't a great picture for a highlight, it looks like werklicht and pre-Owen-cleaning-floors |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A highlight also shouldn't be a poster I think |
thomcsmits marked this conversation as resolved.
Show resolved
Hide resolved
|
thomcsmits marked this conversation as resolved.
Show resolved
Hide resolved
|
thomcsmits marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it might be nice to have this use the format of the dance nights | parties | drag shows | events segment instead of the icons... and maybe have one or the other depending on whether the sheet is filled? With upcoming events, the general overview, the highlights and the Instagram we have a lot of event-like boxes summing up what we do. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see what you mean. I think it will a bit more tricky to import new images for new events every time, but I'll take a look to see what I can do. I also agree that it might be a bit much, though there isn't a whole lot of other content, so I'll discuss with MIXUP what they might want! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<i18n lang="yaml"> | ||
en: | ||
events: Our UPcoming events | ||
nl: | ||
events: Onze UPkomende evenementen | ||
</i18n> | ||
|
||
<script setup> | ||
const { t } = useT() | ||
import GSheetReader from 'g-sheets-api' | ||
|
||
const { image: imageIcons } = useDynamicImages( | ||
import.meta.glob('~/assets/images/photos/mixup/icons/*', { eager: true }) | ||
) | ||
|
||
const events = ref(null) | ||
|
||
const sheetOptions = { | ||
apiKey: useRuntimeConfig().public.googleKey, | ||
sheetId: '1_FqJ8RZHJr7duOvQpWudBiRUVjcE6DFSxjY-qAUypss', | ||
sheetName: 'Public', | ||
} | ||
|
||
onMounted(() => { | ||
GSheetReader(sheetOptions, (results) => { | ||
const filteredResults = results.filter((r) => r['Event name']) | ||
if (filteredResults.length === 0) { | ||
console.error('No events') | ||
} | ||
|
||
events.value = filteredResults | ||
.map((row) => ({ | ||
date: new Date(`${row[`Date`].split('-').reverse().join('/')} 23:59`), | ||
eventName: row[`Event name`], | ||
icon: imageIcons(row[`Icon`]) || imageIcons('bar'), | ||
})) | ||
.filter((event) => !isNaN(event.date) && event.date.getTime() > new Date().getTime()) | ||
.slice(0, 5) | ||
}) | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div v-if="events && events.length > 0" class="bg-gray-800 text-white"> | ||
<ElementsContainer> | ||
<h1 class="text-center font-medium text-5xl"> | ||
{{ t('events') }} | ||
</h1> | ||
<div class="flex flex-wrap justify-center text-center"> | ||
<div | ||
v-for="(event, index) in events" | ||
:key="index" | ||
class="w-48 p-4 m-4 bg-brand-900 rounded-lg shadow-lg space-y-2" | ||
> | ||
<div> | ||
{{ ''.concat(event.date.getDate(), ' ', $t(`month.${event.date.getMonth()}`)) }} | ||
thomcsmits marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</div> | ||
<div class="text-xl font-bold"> | ||
{{ event.eventName }} | ||
</div> | ||
<div class="flex justify-center"> | ||
<img :src="event.icon" alt="Event Icon" class="h-12" /> | ||
</div> | ||
</div> | ||
</div> | ||
</ElementsContainer> | ||
</div> | ||
</template> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a photo of the actual drag folks would be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree! I believe Colin & Musy were working on creating some new pictures that he will send at a certain point. I'll update it for v2!