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

fix: Updated and corrected agenda and resources page #892

Merged
merged 2 commits into from
Nov 5, 2021
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
8 changes: 5 additions & 3 deletions packages/hackathon/src/scenes/HomeScene/HomeScene.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ interface HomeSceneProps {
hacker: IHackerProps
}

const MARKDOWN_LINEBREAK = ' '

export const HomeScene: FC<HomeSceneProps> = ({ hacker }) => {
const schedule = localAgenda(hacker.locale)

Expand All @@ -49,9 +51,9 @@ export const HomeScene: FC<HomeSceneProps> = ({ hacker }) => {
</Heading>
<Paragraph>
<ExtMarkdown
source={
'Please read the [Hackathon FAQ](https://community.looker.com/hackathome-2021-1026/hackathome-2021-attendee-faq-28429)!'
}
source={`### Our [Hackathon FAQ](https://community.looker.com/hackathome-2021-1026/hackathome-2021-attendee-faq-28429) contains all event details!
*Change your [account](https://hack.looker.com/account) timezone to display times in your timezone.*${MARKDOWN_LINEBREAK}
*Change your [account](https://hack.looker.com/account) locale to ${'`ja_JP`'} to display agenda in japanese.*`}
/>
</Paragraph>
</Span>
Expand Down
119 changes: 84 additions & 35 deletions packages/hackathon/src/scenes/HomeScene/agenda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ import { add } from 'date-fns'
import { zonedTimeToUtc } from 'date-fns-tz'
import type { AgendaItems } from './components'
const day1 = zonedTimeToUtc('2021-11-10 00:00:00', 'America/Los_Angeles')
// const day1 = zonedTimeToUtc(
// add(new Date(), { hours: -10 }),
// 'America/Los_Angeles'
// )
const day2 = add(day1, { days: 1 })
let current = day1

Expand All @@ -40,6 +36,8 @@ const later = (start: Date, hours: number) => {
return current
}

const MARKDOWN_LINEBREAK = ' '

/**
* from https://looker.com/events/join/agenda?agendaPath=session/616880
*/
Expand All @@ -49,35 +47,36 @@ export const agenda = [
// NOTE: if stop values are not defined, they default to the start of the next agenda item
stop: later(day1, -3.5), // Nov 9th
description: {
en: '## Welcome APAC',
en: `## **Welcome Session** (APAC)
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880)`,
ja_JP: '## 開会 APAC(ご案内・注意事項など)',
},
},
{
start: later(day1, 5), // Nov 10th
stop: later(day1, 5.5), // Nov 10th
start: later(day1, 1), // Nov 10th
stop: later(day1, 1.5), // Nov 10th
description: {
en: '## Welcome EMEA',
en: `## **Welcome Session** (EMEA)
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880)`,
ja_JP: '## 開会 EMEA(ご案内・注意事項など)',
},
},
{
start: later(day1, 10),
stop: later(day1, 10.5),
description: {
en: '## Welcome AMER',
en: `## **Welcome Session** (AMER)
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880)`,
ja_JP: '## 開会 AMER(ご案内・注意事項など)',
},
},
{
start: later(day1, -3.5), // Nov 9th
stop: later(day1, -2),
description: {
en: `_Supported hacking hours (ENG/JPN)_

Use [Slack](https://app.slack.com/client/T0A4R5X0F/C02ELGL644F) to ask Looker staff for assistance

See [looker-open-source](https://github.com/looker-open-source) for cool stuff!`,
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English and Japanese supported._`,
ja_JP: `_サポート時間 (対応言語:英・日)_

[Slack](https://app.slack.com/client/T0A4R5X0F/C02ELGL644F)にて日本語での技術サポートを実施しております
Expand All @@ -89,117 +88,167 @@ See [looker-open-source](https://github.com/looker-open-source) for cool stuff!`
start: later(day1, 1.5), // Nov 10th
stop: later(day1, 3.5),
description: {
en: '_Supported hacking hours (ENG/JPN)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English and Japanese supported._`,
ja_JP: '_サポート時間 (対応言語:英・日)_',
},
},
{
start: later(day1, 5), // Nov 10th
stop: later(day1, 7),
description: {
en: '_Supported hacking hours (ENG)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English supported._`,
ja_JP: '_サポート時間 (対応言語:英)_',
},
},
{
start: later(day1, 10.5),
stop: later(day1, 13),
description: {
en: '_Supported hacking hours (ENG)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English supported._`,
ja_JP: '_サポート時間 (対応言語:英)_',
},
},
{
start: later(day1, 14.5),
stop: later(day1, 16),
description: {
en: '_Supported hacking hours (ENG/JPN)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English and Japanese supported._`,
ja_JP: '_サポート時間 (対応言語:英・日)_',
},
},
{
start: later(day1, 17),
stop: later(day1, 19),
description: {
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English and Japanese supported._`,
ja_JP: '_サポート時間 (対応言語:英・日)_',
},
},
{
start: later(day1, 19),
description: {
en: '**Hack@Night session**',
en: `### **Hack@Night session**
Random fun little session!${MARKDOWN_LINEBREAK}
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880)`,
ja_JP: '**Hack@Night Session**', //
},
},
{
start: later(day2, -4),
stop: later(day2, -3.5),
description: {
en: '_Roundtable Check-In APAC_',
en: `## **Check-In Session** (APAC)
Day 2 check-in with important info.${MARKDOWN_LINEBREAK}
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880)`,
ja_JP: '_ラウンドテーブル Check-in APAC_',
},
},
{
start: later(day2, 5),
stop: later(day2, 5.5),
start: later(day2, 1),
stop: later(day2, 1.5),
description: {
en: '_Roundtable Check-In EMEA_',
en: `## **Check-In Session** (EMEA)
Day 2 check-in with important info.${MARKDOWN_LINEBREAK}
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880)`,
ja_JP: '_ラウンドテーブル Check-in EMEA_',
},
},
{
start: later(day2, 10),
stop: later(day2, 10.5),
description: {
en: '_Roundtable Check-In AMER_',
en: `## **Check-In Session** (AMER)
Day 2 check-in with important info.${MARKDOWN_LINEBREAK}
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880)`,
ja_JP: '_ラウンドテーブル Check-in AMER_',
},
},
{
start: later(day2, -3.5),
stop: later(day2, -2),
description: {
en: '_Supported hacking hours (ENG/JPN)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English and Japanese supported._`,
ja_JP: '_サポート時間 (対応言語:英・日)_',
},
},
{
start: later(day2, 1.5),
stop: later(day2, 3.5),
stop: later(day2, 3.0),
description: {
en: '_Supported hacking hours (ENG/JPN)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English and Japanese supported._`,
ja_JP: '_サポート時間 (対応言語:英・日)_',
},
},
{
start: later(day2, 5),
stop: later(day2, 7),
description: {
en: '_Supported hacking hours (ENG)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English supported._`,
ja_JP: '_サポート時間 (対応言語:英)_',
},
},
{
start: later(day2, 10.5),
stop: later(day2, 13),
stop: later(day2, 12),
description: {
en: '_Supported hacking hours (ENG)_',
en: `### Supported hacking hours
Ask questions in [#lookerhack-help slack channel](https://app.slack.com/client/T0A4R5X0F/C02HPKQKSFM).${MARKDOWN_LINEBREAK}
_English supported._`,
ja_JP: '_サポート時間 (対応言語:英・日)_',
},
},
{
start: later(day2, 13),
stop: later(day2, 15.5),
description: {
en: `**Final submissions due**`,
en: `## **Project Judging**
Projects will be locked.${MARKDOWN_LINEBREAK}
Please update your project description with your deliverables beforehand.`,
ja_JP: '**プロジェクトの提出締め切り**',
},
},
{
start: later(day2, 14),
stop: later(day2, 14),
description: {
en: `## **Finalists announced**`,
ja_JP: '## 優秀賞発表 & デモ',
},
},
{
start: later(day2, 15.5),
stop: later(day2, 16.5),
description: {
en: `## Winner announcements & Demos`,
en: `## **Closing Session**
Winners announced.${MARKDOWN_LINEBREAK}
[Live session link](https://looker.com/events/join/agenda?agendaPath=session/616880).`,
ja_JP: '## 優秀賞発表 & デモ',
},
},
// NOTE: All other stop values can default. The final stop value is required.
{
start: later(day2, 15),
stop: later(day2, 17),
start: later(day2, 16.5),
stop: later(day2, 17.5),
description: {
en: `## Hacky Hour (Social Event)`,
en: `## **~Happy~ Hacky Hour**
Congrats on making it to the end!${MARKDOWN_LINEBREAK}
Let's socialize and celebrate!`,
ja_JP: '## Hacky Hour (懇親会)',
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const ProjectForm: FC<ProjectFormProps> = () => {
<FieldToggleSwitch
disabled={!canUpdate}
name="contestant"
label="Submit this project for judging?"
label="Consent project to be judged?"
onChange={(e: BaseSyntheticEvent) => {
dispatch(
updateProjectData({
Expand Down
12 changes: 10 additions & 2 deletions packages/hackathon/src/scenes/ResourceScene/resource_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ export interface Resource {
}

export const resources: Array<Resource> = [
{
content: 'A JOIN 2021 tutorial video on creating actions.',
type: ResourceType.Tutorial,
tag: ResourceTag.Actions,
link: 'https://www.youtube.com/watch?v=DnIG0pD3UNA',
shortenedLink: 'https://bit.ly/3k4iEqw',
title: 'Actions Tutorial Video',
},
{
content:
'A JOIN 2021 intro and demo video of the new visualization components.',
Expand All @@ -77,8 +85,8 @@ export const resources: Array<Resource> = [
content: 'A JOIN 2021 tutorial video on using API Explorer and Looker API.',
type: ResourceType.Tutorial,
tag: ResourceTag.API,
link: 'https://www.youtube.com/watch?v=f1Wb4dYZxhM',
shortenedLink: 'https://bit.ly/2ZT71eS',
link: 'https://www.youtube.com/watch?v=plfF00T82-g',
shortenedLink: 'https://bit.ly/3q9e91K',
title: 'API Explorer & API Tutorial Video',
},
{
Expand Down