Skip to content
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 new feature: Secret description is now dinamic #532

Merged
merged 3 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/components/SecretContent.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
<script setup lang="ts">
interface Props {
secretText?: string
}
defineProps<Props>()
</script>

<template>
<div class="secret">
<div class="secret__title">Secret</div>
<div class="secret__text">Come back after the opening cerimony</div>
<div class="secret__text">
{{ secretText ? secretText : 'Come back after the opening ceremony' }}
</div>
</div>
</template>

Expand Down
186 changes: 107 additions & 79 deletions src/data/talks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,118 +10,146 @@ export interface Talk {
readonly start: string
readonly end?: string
readonly streamLink?: string
readonly isSecret?: boolean
readonly isWorkshop?: boolean
}

export const talks: Talk[] = [
{
title: 'Making Markets to Make a Change',
//description: '',
title: '',
description: '',
location: 'A5001',
company: 'Optiver',
videoUrl: 'https://youtu.be/-8G6BDClHws',
start: '12/5/2023 22:30',
end: '12/5/2023 23:00',
//streamLink: 'https://www.twitch.tv/hackersupc',
company: 'InterSystems',
// videoUrl: '',
start: '3/5/2024 22:30',
end: '3/5/2024 23:00',
streamLink: 'https://www.twitch.tv/hackersupc',
isSecret: true,
},
{
title: 'HP Inventory & Sales Forecasting',
//description: 'https://youtu.be/0PzS-Hrddf4?si=SgBcDSHGo1DfkHo1',
location: 'A5001',
company: 'HP',
videoUrl: 'https://youtu.be/0PzS-Hrddf4',
start: '12/5/2023 23:00',
end: '12/5/2023 23:30',
//streamLink: 'https://www.twitch.tv/hackersupc',
},
{
title: 'Mission to Improve the Agribusiness Markets',
//description: '',
title: '',
description: '',
location: 'A5002',
company: 'Bunge',
videoUrl: 'https://youtu.be/L2ed8pfWQpo',
start: '12/5/2023 22:30',
end: '12/5/2023 23:00',
//streamLink: 'https://www.youtube.com/c/HackersUPC',
company: 'ESA',
// videoUrl: '',
start: '3/5/2024 22:30',
end: '3/5/2024 23:00',
streamLink: 'https://www.youtube.com/c/HackersUPC',
isSecret: true,
},
{
title: 'Fine-tuning Computer Vision models for edge AI applications',
//description: '',
title: '',
description: '',
location: 'A5001',
company: 'Midokura',
videoUrl: 'https://youtu.be/oWR10wBTA3Y',
start: '12/5/2023 23:30',
end: '13/5/2023 00:00',
//streamLink: 'https://www.twitch.tv/hackersupc',
company: 'GitHub',
// videoUrl: '',
start: '3/5/2024 23:00',
end: '3/5/2024 23:30',
streamLink: 'https://www.twitch.tv/hackersupc',
isWorkshop: true,
isSecret: true,
},
{
title: 'Build the bank experience you need.',
title: '',
//description: '',
location: 'A5002',
company: 'Strands',
videoUrl: 'https://youtu.be/emrshDwqDbM',
start: '12/5/2023 23:00',
end: '12/5/2023 23:15',
//streamLink: 'https://www.youtube.com/c/HackersUPC',
company: 'Grafana',
// videoUrl: '',
start: '3/5/2024 22:30',
end: '3/5/2024 23:00',
streamLink: 'https://www.youtube.com/c/HackersUPC',
isSecret: true,
},
{
title: 'Deep Learning: breaking the ice',
title: '',
description: '',
location: 'A5001',
company: 'BlueTab',
// videoUrl: '',
start: '3/5/2024 23:30',
end: '4/5/2024 00:00',
streamLink: 'https://www.twitch.tv/hackersupc',
isWorkshop: true,
isSecret: true,
},
{
title: '',
//description: '',
location: 'A5002',
company: 'Restb.ai',
videoUrl: 'https://youtu.be/yQOf4gBzcAA',
start: '13/5/2023 00:00',
end: '13/5/2023 00:30',
//streamLink: 'https://www.youtube.com/c/HackersUPC',
company: 'TravelPerk',
// videoUrl: '',
start: '3/5/2024 23:30',
end: '4/5/2024 00:00',
streamLink: 'https://www.youtube.com/c/HackersUPC',
isSecret: true,
},
{
title: 'How does technology impact trading?',
//description: '',
title: '',
description: '',
location: 'A5001',
company: 'Optiver',
videoUrl: 'https://youtu.be/DOR0LPysiXg',
start: '13/5/2023 10:00',
end: '13/5/2023 11:00',
//streamLink: 'https://www.twitch.tv/hackersupc',
company: 'Seidor',
// videoUrl: '',
start: '4/5/2024 00:00',
end: '4/5/2024 00:30',
streamLink: 'https://www.twitch.tv/hackersupc',
isSecret: true,
},
{
title: 'Digital revolution in Agribusiness',
title: '',
//description: '',
location: 'A5002',
company: 'Bunge',
videoUrl: 'https://youtu.be/3WjGcy2Drmo',
start: '12/5/2023 10:30',
end: '12/5/2023 11:00',
//streamLink: 'https://www.youtube.com/c/HackersUPC',
company: 'InditexTech',
// videoUrl: '',
start: '4/5/2024 00:00',
end: '4/5/2024 00:30',
isSecret: true,
},
{
title: 'The Quanting Framework',
//description: '',
title: '',
description: '',
location: 'A5001',
company: 'Flanks',
// videoUrl: '',
start: '4/5/2024 10:00',
end: '4/5/2024 10:30',
streamLink: 'https://www.twitch.tv/hackersupc',
isWorkshop: true,
isSecret: true,
},
{
title: '',
description: '',
location: 'A5001',
company: 'Vueling',
videoUrl: 'https://youtu.be/u9YVD7m6pVs',
start: '12/5/2023 11:00',
end: '12/5/2023 11:30',
//streamLink: 'https://www.twitch.tv/hackersupc',
// videoUrl: '',
start: '4/5/2024 10:30',
end: '4/5/2024 11:00',
streamLink: 'https://www.twitch.tv/hackersupc',
isWorkshop: true,
isSecret: true,
},
{
title: 'Build and AI powered APP',
//description: '',
location: 'A5002',
company: 'IThinkUPC',
videoUrl: 'https://youtu.be/KN9U6aQ9FoM',
start: '12/5/2023 11:00',
end: '12/5/2023 11:30',
//streamLink: 'https://www.youtube.com/c/HackersUPC',
title: '',
description: '',
location: 'A5001',
company: 'Midu.dev',
// videoUrl: '',
start: '4/5/2024 11:00',
end: '4/5/2024 11:30',
streamLink: 'https://www.twitch.tv/hackersupc',
isWorkshop: true,
isSecret: true,
},
{
title:
'Artificial Intelligence Project Portfolio at HP Large Format Printing',
//description: '',
location: 'A5002',
company: 'HP',
videoUrl: 'https://youtu.be/QJuqyNemkKU',
start: '13/5/2023 10:00',
end: '13/5/2023 10:30',
//streamLink: 'https://www.youtube.com/c/HackersUPC',
title: '',
description: '',
location: 'A5001',
company: 'InterSystems',
// videoUrl: '',
start: '4/5/2024 11:30',
end: '4/5/2024 12:00',
streamLink: 'https://www.twitch.tv/hackersupc',
isWorkshop: true,
isSecret: true,
},
]
5 changes: 4 additions & 1 deletion src/views/Mission.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ const hideMission = ref(config.hideMission)
>
<img :src="mission.picture" style="width: 75%" />
</div>-->
<SecretContent v-if="hideMission" />
<SecretContent
v-if="hideMission"
secret-text="Stay tunned to discover more"
/>
<VueMarkdownIt v-else :source="mission.description" />
</Panel>
</PanelContainer>
Expand Down
11 changes: 9 additions & 2 deletions src/views/Talks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ const hideChallengesAndPrizes = ref(config.hideChallengesAndPrizes)
<template>
<PanelContainer v-if="hideChallengesAndPrizes" id="talks">
<template v-for="talk in talks" :key="talk.title">
<Panel>
<SecretContent />
<Panel
v-if="talk.isSecret"
:title="talk.isWorkshop ? 'Workshop' : 'Challenge talk'"
>
<SecretContent
:secret-text="talk.isWorkshop ? 'Comming soon' : undefined"
/>
</Panel>

<PanelTalk v-else :talk="talk" />
</template>
</PanelContainer>
<PanelContainer v-else id="talks">
Expand Down
Loading