From f867699b9280f1c71837bc9aaf919584f33f2a74 Mon Sep 17 00:00:00 2001 From: John Nguyen <69529980+ImJunny@users.noreply.github.com> Date: Tue, 10 Dec 2024 01:23:08 +0000 Subject: [PATCH 1/6] Change padding --- .../(pages)/challenge-archive/page.tsx | 2 +- .../(protected)/(pages)/dashboard/page.tsx | 8 ++- .../announcement/mini-announcements.tsx | 5 +- .../challenges/archived-challenges.tsx | 15 ++-- .../_components/challenges/challenge-card.tsx | 69 +++++-------------- src/app/_components/challenges/challenges.tsx | 2 + 6 files changed, 39 insertions(+), 62 deletions(-) diff --git a/src/app/(main)/(routes)/(protected)/(pages)/challenge-archive/page.tsx b/src/app/(main)/(routes)/(protected)/(pages)/challenge-archive/page.tsx index 02250319..bfdadc26 100644 --- a/src/app/(main)/(routes)/(protected)/(pages)/challenge-archive/page.tsx +++ b/src/app/(main)/(routes)/(protected)/(pages)/challenge-archive/page.tsx @@ -16,7 +16,7 @@ export default async function ChallengesPage() {
These are challenges that have been used in past events and are currently not being used. You can still run and test them, but they will not give you any points. It is possible for some of these challenges to appear in the next event. diff --git a/src/app/(main)/(routes)/(protected)/(pages)/dashboard/page.tsx b/src/app/(main)/(routes)/(protected)/(pages)/dashboard/page.tsx index e47ca799..eac5c3c5 100644 --- a/src/app/(main)/(routes)/(protected)/(pages)/dashboard/page.tsx +++ b/src/app/(main)/(routes)/(protected)/(pages)/dashboard/page.tsx @@ -2,6 +2,7 @@ import { MiniAnnouncements } from "@/app/_components/announcement/mini-announcem import { Challenges } from "@/app/_components/challenges/challenges"; import ChallengesProgress from "@/app/_components/challenges/challenges-progress"; import DashboardTeamInfo from "@/app/_components/dashboard/dashboard-team-info"; +import { cn } from "@/app/_lib/client-utils"; import { serverTRPC } from "@/app/_trpc/server"; import { type TUserRole } from "@/db/drizzle/startup_seed"; import { composeServerComponentClient } from "@/server/lib/supabase/server"; @@ -27,20 +28,21 @@ export default async function ChallengesPage() { user_uuid: user.id, }); + const challengeCount = challenges.solvedChallenges.length + challenges.unsolvedChallenges.length + return ( -
- You must be on a team to participate in challenges. + You must be on a team to participate in live challenges.