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

feat(schedule): update 2023 schedule layout #433

Merged
merged 1 commit into from
Aug 6, 2023
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
6 changes: 0 additions & 6 deletions components/events/SpeechCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,8 @@ export default {
},
locationMapping: {
'4-r0': 'R0',
'4-r0-1': 'R0',
'4-r0-2': 'R0',
'5-r1': 'R1',
'5-r1-1': 'R1',
'5-r1-2': 'R1',
'6-r2': 'R2',
'6-r2-1': 'R2',
'6-r2-2': 'R2',
'1-r3': 'R3',
},
levelBgColorMapping: {
Expand Down
9 changes: 6 additions & 3 deletions components/schedule/ScheduleEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ export default {
event_id: eventId,
speakers,
} = this.value
if (eventType === 'keynote' && speakers[0].en_us) {
if (
eventType === 'keynote' &&
speakers.length > 0 &&
speakers[0].en_us
) {
const keynoteSpeakerId = speakers[0].en_us
.replaceAll(' ', '_')
.replaceAll('.', '')
Expand Down Expand Up @@ -163,8 +167,7 @@ export default {

<style lang="postcss" scoped>
.scheduleEvent__context {
@apply sticky top-28;
/* top: 75px; */
@apply sticky top-36;
}

.scheduleEvent__title {
Expand Down
11 changes: 3 additions & 8 deletions components/schedule/ScheduleRoom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,9 @@ export default {
computed: {
name() {
return {
'4-r0': 'R0-0',
'4-r0-1': 'R0-1',
'4-r0-2': 'R0-2',
'5-r1': 'R1-0',
'5-r1-1': 'R1-1',
'5-r1-2': 'R1-2',
'6-r2': 'R2-0',
'6-r2-1': 'R2-1',
'4-r0': 'R0',
'5-r1': 'R1',
'6-r2': 'R2',
'1-r3': 'R3',
'2-all': 'All',
'3-r012': 'R0, R1, R2',
Expand Down
10 changes: 2 additions & 8 deletions components/schedule/ScheduleRooms.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,10 @@ export default {

<style lang="postcss" scoped>
.scheduleRooms {
top: 64px;
z-index: 900;
grid-template-columns: 1fr 2fr 2fr 2fr 2fr;
grid-gap: 12px;
background-color: rgba(18, 16, 35, 0.6);
}
.scheduleRooms.day1 {
grid-template-columns: 1fr 2fr 2fr 2fr 2fr 2fr 2fr 2fr 2fr 2fr;
width: 140%;
}
.scheduleRooms.day2 {
grid-template-columns: 1fr 2fr 2fr 2fr 2fr 2fr 2fr 2fr;
width: 110.5%;
}
</style>
66 changes: 6 additions & 60 deletions components/schedule/ScheduleTable.vue
Original file line number Diff line number Diff line change
@@ -1,55 +1,25 @@
<template>
<div
class="scheduleTable hidden w-full"
:class="{
day1: dateIndex === 0,
day2: dateIndex === 1,
}"
>
<div class="scheduleTable hidden w-full">
<slot></slot>
</div>
</template>

<script>
export default {
name: 'ScheduleTable',
props: {
dateIndex: { type: Number, default: null },
},
}
</script>

<style lang="postcss" scoped>
.scheduleTable {
grid-gap: 12px;
}
.scheduleTable.day1 {
grid-template-columns:
[timeline] 1fr
[room-4-r0-start] 2fr
[room-4-r0-end room-4-r0-1-start] 2fr
[room-4-r0-1-end room-4-r0-2-start] 2fr
[room-4-r0-2-end room-5-r1-start] 2fr
[room-5-r1-end room-5-r1-1-start] 2fr
[room-5-r1-1-end room-5-r1-2-start] 2fr
[room-5-r1-2-end room-6-r2-start] 2fr
[room-6-r2-end room-6-r2-1-start] 2fr
[room-6-r2-1-end room-1-r3-start] 2fr
[room-4-r0-end room-5-r1-start] 2fr
[room-5-r1-end room-6-r2-start] 2fr
[room-6-r2-end room-1-r3-start] 2fr
[room-1-r3-end];
width: 140%;
}
.scheduleTable.day2 {
grid-template-columns:
[timeline] 1fr
[room-4-r0-start] 2fr
[room-4-r0-end room-4-r0-1-start] 2fr
[room-4-r0-1-end room-5-r1-start] 2fr
[room-5-r1-end room-5-r1-1-start] 2fr
[room-5-r1-1-end room-6-r2-start] 2fr
[room-6-r2-end room-6-r2-1-start] 2fr
[room-6-r2-1-end room-1-r3-start] 2fr
[room-1-r3-end];
width: 110.5%;
grid-gap: 10px;
}

.scheduleTable .scheduleTick {
Expand All @@ -58,45 +28,21 @@ export default {
}

.scheduleTable .scheduleEvent.room-3-r012 {
grid-column: room-4-r0-start / room-6-r2-1-end;
grid-column: room-4-r0-start / room-6-r2-end;
}

.scheduleTable .scheduleEvent.room-4-r0 {
grid-column: room-4-r0-start / room-4-r0-end;
}

.scheduleTable .scheduleEvent.room-4-r0-1 {
grid-column: room-4-r0-1-start / room-4-r0-1-end;
}

.scheduleTable .scheduleEvent.room-4-r0-2 {
grid-column: room-4-r0-2-start / room-4-r0-2-end;
}

.scheduleTable .scheduleEvent.room-5-r1 {
grid-column: room-5-r1-start / room-5-r1-end;
}

.scheduleTable .scheduleEvent.room-5-r1-1 {
grid-column: room-5-r1-1-start / room-5-r1-1-end;
}

.scheduleTable .scheduleEvent.room-5-r1-2 {
grid-column: room-5-r1-2-start / room-5-r1-2-end;
}

.scheduleTable .scheduleEvent.room-6-r2 {
grid-column: room-6-r2-start / room-6-r2-end;
}

.scheduleTable .scheduleEvent.room-6-r2-1 {
grid-column: room-6-r2-1-start / room-6-r2-1-end;
}

.scheduleTable .scheduleEvent.room-6-r2-2 {
grid-column: room-6-r2-2-start / room-6-r2-2-end;
}

.scheduleTable .scheduleEvent.room-1-r3 {
grid-column: room-1-r3-start / room-1-r3-end;
}
Expand Down
6 changes: 0 additions & 6 deletions pages/conference/_eventType/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,8 @@ export default {
},
locationMapping: {
'4-r0': 'R0',
'4-r0-1': 'R0',
'4-r0-2': 'R0',
'5-r1': 'R1',
'5-r1-1': 'R1',
'5-r1-2': 'R1',
'6-r2': 'R2',
'6-r2-1': 'R2',
'6-r2-2': 'R2',
'1-r3': 'R3',
},
}
Expand Down
32 changes: 7 additions & 25 deletions pages/conference/schedule.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</schedule-day-tab>
</schedule-day-tabs>
<schedule>
<schedule-rooms :date-index="selectedDayIndex">
<schedule-rooms class="lg:grid" :date-index="selectedDayIndex">
<schedule-block></schedule-block>
<schedule-room
v-for="(room, i) in rooms"
Expand Down Expand Up @@ -168,29 +168,7 @@ export default {
})
},
makeRooms() {
if (this.selectedDayIndex === 0) {
this.rooms = [
'4-r0',
'4-r0-1',
'4-r0-2',
'5-r1',
'5-r1-1',
'5-r1-2',
'6-r2',
'6-r2-1',
'1-r3',
]
} else {
this.rooms = [
'4-r0',
'4-r0-1',
'5-r1',
'5-r1-1',
'6-r2',
'6-r2-1',
'1-r3',
]
}
this.rooms = ['4-r0', '5-r1', '6-r2', '1-r3']
},
makeTables() {
this.tables = this.schedulesData.map((schedule) => ({
Expand Down Expand Up @@ -286,4 +264,8 @@ export default {
}
</script>

<style lang="postcss" scoped></style>
<style lang="postcss" scoped>
.pageWrapper {
@apply md:px-24;
}
</style>
2 changes: 1 addition & 1 deletion store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const state = () => ({
conferenceDate: '2023-09-02',
showSpeakingPage: false,
showAboutStaffPage: false,
showSchedulePage: false,
showSchedulePage: true,
showSponsorPage: false,
showRegistrationPage: true,
showEventOverviewPage: false,
Expand Down
Loading