Skip to content

Commit

Permalink
new schedule page
Browse files Browse the repository at this point in the history
  • Loading branch information
EwanLyon committed May 5, 2024
1 parent aaef148 commit c30a31e
Show file tree
Hide file tree
Showing 17 changed files with 706 additions and 243 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Event" ADD COLUMN "horaro" TEXT NOT NULL DEFAULT '',
ADD COLUMN "oengus" TEXT NOT NULL DEFAULT '';
10 changes: 10 additions & 0 deletions apps/keystone/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,8 @@ type Event {
submissionInstructions: Event_submissionInstructions_Document
eventPage: Event_eventPage_Document
scheduleBlocks: JSON
horaro: String
oengus: String
}

type Event_postEventPage_Document {
Expand Down Expand Up @@ -767,6 +769,8 @@ input EventWhereInput {
tickets: TicketManyRelationFilter
volunteer: VolunteerManyRelationFilter
donationIncentives: IncentiveManyRelationFilter
horaro: StringFilter
oengus: StringFilter
}

input FloatNullableFilter {
Expand Down Expand Up @@ -801,6 +805,8 @@ input EventOrderByInput {
startDate: OrderDirection
endDate: OrderDirection
raised: OrderDirection
horaro: OrderDirection
oengus: OrderDirection
}

input EventUpdateInput {
Expand Down Expand Up @@ -832,6 +838,8 @@ input EventUpdateInput {
submissionInstructions: JSON
eventPage: JSON
scheduleBlocks: JSON
horaro: String
oengus: String
}

input IncentiveRelateToManyForUpdateInput {
Expand Down Expand Up @@ -888,6 +896,8 @@ input EventCreateInput {
submissionInstructions: JSON
eventPage: JSON
scheduleBlocks: JSON
horaro: String
oengus: String
}

input IncentiveRelateToManyForCreateInput {
Expand Down
2 changes: 2 additions & 0 deletions apps/keystone/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ model Event {
submissionInstructions Json @default("[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]")
eventPage Json @default("[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]")
scheduleBlocks Json?
horaro String @default("")
oengus String @default("")
from_Post_event Post[] @relation("Post_event")
from_Role_event Role[] @relation("Role_event")
}
Expand Down
9 changes: 8 additions & 1 deletion apps/keystone/src/schema/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ export const Event: Lists.Event = list({
},
componentBlocks: liveEventComponentBlocks,
}),
scheduleBlocks: scheduleBlocks(),
...group({
label: "Schedule Metadata",
fields: {
scheduleBlocks: scheduleBlocks(),
horaro: text(),
oengus: text(),
}
}),
}
});
1 change: 1 addition & 0 deletions apps/nextjs/components/Footer/Footer.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

ul {
justify-content: center;
flex-wrap: wrap;

@include breakpoint($sm-zero-only) {
flex-direction: column;
Expand Down
4 changes: 4 additions & 0 deletions apps/nextjs/components/Heroblock/Heroblock.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
}
}

p {
text-wrap: balance;
}

.ctaBlock {
text-align: left;
padding: 25px;
Expand Down
3 changes: 1 addition & 2 deletions apps/nextjs/components/Heroblock/Heroblock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@ const HeroBlock = ({ event, tagLine, darkText, schedule, submitRuns, ticketLink
</h3>
<br />
<p>
{tagLine ??
"We will be at The Game Expo! The schedule has been released!"}
{tagLine}
</p>
<Button
actionText={event.preferredName}
Expand Down
2 changes: 1 addition & 1 deletion apps/nextjs/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const nextConfig = {
},
{
source: "/schedule",
destination: "/ASDH2024/schedule",
destination: "/ASM2024/schedule",
permanent: false,
},
{
Expand Down
Loading

0 comments on commit c30a31e

Please sign in to comment.