Skip to content

Commit 2a04f42

Browse files
117 add temporary recrutment section (#118)
* remove commented old design * add event
1 parent a9b15b7 commit 2a04f42

File tree

4 files changed

+83
-88
lines changed

4 files changed

+83
-88
lines changed

src/assets/media/join/pizza.png

703 KB
Loading

src/plugins/i18n.ts

+32
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,10 @@ const rawMessages: Record<string, Record<Lang, string>> = {
320320
en: 'Our next competition',
321321
fr: 'Notre prochaine compétition',
322322
},
323+
our_next_event: {
324+
en: 'Our next event',
325+
fr: 'Notre prochain événement',
326+
},
323327
faq: {
324328
en: 'FAQ',
325329
fr: 'FAQ',
@@ -396,6 +400,34 @@ const rawMessages: Record<string, Record<Lang, string>> = {
396400
en: 'Our next competition (ENRICH 2025) will be held at the Zwentendorf nuclear power plant in Austria. We will be competing against teams from around the world to demonstrate the capabilities of our robots in a real-world emergency scenario.',
397401
fr: "Notre prochaine compétition (ENRICH 2025) se tiendra à la centrale nucléaire de Zwentendorf en Autriche. Nous affronterons des équipes du monde entier pour démontrer les capacités de nos robots dans un scénario d'urgence réel.",
398402
},
403+
i_will_be_there: {
404+
en: 'Regester',
405+
fr: "M'inscrire",
406+
},
407+
information_evening_title: {
408+
en: 'Information Evening',
409+
fr: 'Soirée d’information',
410+
},
411+
information_evening_content: {
412+
en: 'We will present our club and our various projects for each department. This session is intended for all students wanting to learn more about our club, regardless of their field of study or level of experience.',
413+
fr: "Nous allons présenter notre club et nos divers projets pour chaque département. Cette séance est destiné à tous les étudiants voulant en apprendre plus sur notre club, peu importe leur domaine d'étude ou leur degré d'expérience.",
414+
},
415+
treat_pizza: {
416+
en: "and we'll treat you with pizza!",
417+
fr: "et on t'offre la pizza!",
418+
},
419+
meet_us: {
420+
en: 'Come meet us on',
421+
fr: 'Viens nous rencontrer le',
422+
},
423+
at_time: {
424+
en: 'at',
425+
fr: 'à',
426+
},
427+
at_location: {
428+
en: 'at',
429+
fr: 'au',
430+
},
399431
custom_robot_title: {
400432
en: 'Custom Robot',
401433
fr: 'Robot sur mesure',

src/views/JoinView.vue

+48-88
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,26 @@ import newArm from '@clubcapra/assets/media/join/new_arm.jpg';
1414
import nuclearPlant from '@clubcapra/assets/media/join/nuclear_plant.jpg';
1515
import pcbWorking from '@clubcapra/assets/media/join/pcb_working.jpg';
1616
import poseDetection from '@clubcapra/assets/media/join/pose_detection.mp4';
17+
import pizza from '@clubcapra/assets/media/join/pizza.png';
1718
18-
const { t } = useI18n();
19+
const { t, locale } = useI18n();
1920
const route = useRoute();
2021
2122
const selectedTab = ref('MEC');
2223
24+
const nextPizzaParty = new Date('2024-09-26:17:00:00 gmt-0400');
25+
const nextPizzaPartyLink = 'https://forms.office.com/r/UjRvbafzMg';
26+
const nextPizzaPartyLocation = 'D-3014';
27+
28+
const dateStr = ref('');
29+
const timeStr = ref('');
30+
31+
updateDateTimeStr();
32+
2333
watch(() => route.hash, scrollToId);
2434
35+
watch(() => locale.value, updateDateTimeStr);
36+
2537
onMounted(() => {
2638
scrollToId();
2739
});
@@ -39,6 +51,21 @@ function scrollToId() {
3951
document.getElementById(id)?.scrollIntoView({ behavior: 'instant' });
4052
}
4153
}
54+
55+
/**
56+
* Update the date and time strings based on the locale
57+
*/
58+
function updateDateTimeStr() {
59+
dateStr.value = nextPizzaParty.toLocaleDateString(locale.value, {
60+
weekday: 'long',
61+
year: 'numeric',
62+
month: 'long',
63+
day: 'numeric',
64+
});
65+
timeStr.value = nextPizzaParty.toLocaleTimeString(locale.value, {
66+
hour: 'numeric',
67+
});
68+
}
4269
</script>
4370

4471
<template>
@@ -309,105 +336,38 @@ function scrollToId() {
309336
</DescriptiveContentComponent>
310337
</section>
311338

312-
<!-- <section id="MEC" class="container mx-auto px-4 pt-10">
313-
<h2 class="text-5xl md:text-6xl font-bold font-sans text-center pt-10">
314-
<a href="#MEC">{{ t('team_mechanical') }}</a>
315-
</h2>
316-
<DescriptiveContentComponent :image-right="false">
317-
<template #title>
318-
{{ $t('custom_robot_title') }}
319-
</template>
320-
<template #content1>
321-
{{ $t('custom_robot_content') }}
322-
</template>
323-
<template #image>
324-
<img
325-
:src="customDesign"
326-
alt="custom design"
327-
class="rounded-lg w-full"
328-
/>
329-
</template>
330-
</DescriptiveContentComponent>
331-
<DescriptiveContentComponent :image-right="true">
332-
<template #title>
333-
{{ $t('robot_optimisation_title') }}
334-
</template>
335-
<template #content1>
336-
{{ $t('robot_optimisation_content') }}
337-
</template>
338-
<template #image>
339-
<img :src="newArm" alt="new robotic arm" class="rounded-lg w-full" />
340-
</template>
341-
</DescriptiveContentComponent>
342-
</section>
343-
344-
<section id="ELE" class="container mx-auto px-4 pt-10">
339+
<section
340+
v-if="nextPizzaParty > new Date()"
341+
id="PIZZA"
342+
class="container mx-auto px-4 pt-10"
343+
>
345344
<h2 class="text-5xl md:text-6xl font-bold font-sans text-center pt-10">
346-
<a href="#ELE">{{ t('team_electrical') }}</a>
345+
<a href="#PIZZA">{{ t('our_next_event') }}</a>
347346
</h2>
348-
<DescriptiveContentComponent :image-right="false">
347+
<DescriptiveContentComponent
348+
:image-right="false"
349+
:button="$t('i_will_be_there')"
350+
:link="nextPizzaPartyLink"
351+
>
349352
<template #title>
350-
{{ $t('pcb_design_title') }}
353+
{{ $t('information_evening_title') }}
351354
</template>
352355
<template #content1>
353-
{{ $t('pcb_design_content') }}
354-
</template>
355-
<template #image>
356-
<img :src="pcbWorking" alt="PCB design" class="rounded-lg w-full" />
357-
</template>
358-
</DescriptiveContentComponent>
359-
<DescriptiveContentComponent :image-right="true">
360-
<template #title>
361-
{{ $t('electrical_stack_title') }}
356+
<b>
357+
{{ $t('meet_us') }} {{ dateStr }} {{ $t('at_time') }} {{ timeStr }}
358+
{{ $t('at_location') }} {{ nextPizzaPartyLocation }}
359+
{{ $t('treat_pizza') }}
360+
</b>
362361
</template>
363-
<template #content1>
364-
{{ $t('electrical_stack_content') }}
362+
<template #content2>
363+
{{ $t('information_evening_content') }}
365364
</template>
366365
<template #image>
367-
<img
368-
:src="eleWorking"
369-
alt="eletrical team working"
370-
class="rounded-lg w-full"
371-
/>
366+
<img :src="pizza" alt="pizza" class="animate-spin-slow w-full" />
372367
</template>
373368
</DescriptiveContentComponent>
374369
</section>
375370

376-
<section id="LOG" class="container mx-auto px-4 pt-10">
377-
<h2 class="text-5xl md:text-6xl font-bold font-sans text-center pt-10">
378-
<a href="#LOG">{{ t('team_software') }}</a>
379-
</h2>
380-
<DescriptiveContentComponent :image-right="false">
381-
<template #title>
382-
{{ $t('ai_title') }}
383-
</template>
384-
<template #content1>
385-
{{ $t('ai_content') }}
386-
</template>
387-
<template #image>
388-
<video
389-
:src="poseDetection"
390-
alt="AI pose detection"
391-
class="rounded-lg w-full"
392-
loop
393-
autoplay
394-
muted
395-
/>
396-
</template>
397-
</DescriptiveContentComponent>
398-
<DescriptiveContentComponent :image-right="true">
399-
<template #title>
400-
{{ $t('mapping_title') }}
401-
</template>
402-
<template #content1>
403-
{{ $t('mapping_content') }}
404-
</template>
405-
<template #image>
406-
<img :src="mapping" alt="mapping" class="rounded-lg w-full" />
407-
</template>
408-
</DescriptiveContentComponent>
409-
</section> -->
410-
411371
<section class="container px-4 mx-auto pb-20 flex flex-col items-center">
412372
<a
413373
class="bg-black hover:border-primary-50 border-2 border-black transition-colors text-white font-medium text-lg py-2 mt-10 px-4 rounded-lg w-fit"

tailwind.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ export default {
1919
},
2020
},
2121
},
22+
animation: {
23+
'spin-slow': 'spin 60s linear infinite',
24+
},
2225
},
2326
plugins: [tailwindAnimated],
2427
};

0 commit comments

Comments
 (0)