From 6059ead3f87b614a9ed3c7d48a1a749bb15826f5 Mon Sep 17 00:00:00 2001 From: Ewan Lyon Date: Sun, 5 May 2024 16:10:04 +1000 Subject: [PATCH] final tweaks --- apps/nextjs/pages/[event]/schedule.tsx | 26 ++++++++++++++++--- apps/nextjs/styles/Schedule.event.module.scss | 7 ++--- 2 files changed, 27 insertions(+), 6 deletions(-) diff --git a/apps/nextjs/pages/[event]/schedule.tsx b/apps/nextjs/pages/[event]/schedule.tsx index 2f0640b..af8fab3 100644 --- a/apps/nextjs/pages/[event]/schedule.tsx +++ b/apps/nextjs/pages/[event]/schedule.tsx @@ -717,8 +717,28 @@ const RunItem: React.FC = (props: RunItemProps) => { } let categoryExtras = <>; - if (run.race) categoryExtras = RACE; - if (run.coop) categoryExtras = CO-OP; + if (run.race) + categoryExtras = ( + + RACE + + ); + if (run.coop) + categoryExtras = ( + + CO-OP + + ); const runClassNames = [styles.run]; if (props.isLive) runClassNames.push(styles.liveRun); @@ -831,7 +851,7 @@ export const getServerSideProps: GetServerSideProps = async (ctx) => { url: process.env.NODE_ENV === "production" ? "https://keystone.ausspeedruns.com/api/graphql" - : "http://localhost:8000/api/graphql", + : "https://keystone.ausspeedruns.com/api/graphql", exchanges: [cacheExchange, ssrCache, fetchExchange], }, false, diff --git a/apps/nextjs/styles/Schedule.event.module.scss b/apps/nextjs/styles/Schedule.event.module.scss index 33622f3..f882ce5 100644 --- a/apps/nextjs/styles/Schedule.event.module.scss +++ b/apps/nextjs/styles/Schedule.event.module.scss @@ -191,7 +191,7 @@ $normalWidth: 800px; } .run { - padding: 8px; + padding: 16px; margin-top: 4px; display: flex; flex-direction: column; @@ -203,6 +203,7 @@ $normalWidth: 800px; @include breakpoint($sm-zero-only) { border-radius: 16px; + padding: 8px; } @@ -230,7 +231,7 @@ $normalWidth: 800px; font-family: Russo One; font-size: 170%; margin-bottom: -0.25rem; - max-width: 70%; + max-width: 65%; @include breakpoint($sm-zero-only) { max-width: 100%; @@ -324,7 +325,7 @@ $normalWidth: 800px; } .donationIncentives { - margin-top: 0.5rem; + margin-top: 1rem; display: flex; flex-direction: column; align-items: center;