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(fe): redesign client contest table #2007

Merged
merged 2 commits into from
Aug 26, 2024
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client'

import { dateFormatter } from '@/lib/utils'
import CheckIcon from '@/public/check_blue.svg'
import CheckIcon from '@/public/check-gray-icon.svg'
import type { Contest } from '@/types/type'
import type { ColumnDef } from '@tanstack/react-table'
import Image from 'next/image'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function TableSwitchButton({
<Link
href="/contest"
className={cn(
'w-fit p-6 text-xl font-medium text-[#333333]/30 hover:text-[#333333]/50 md:text-2xl',
'w-fit p-6 text-xl font-medium text-[#333333]/30 hover:text-[#333333]/50',
!registered
? 'text-primary-light hover:text-primary-light border-primary-light border-b-2 font-bold'
: ''
Expand All @@ -23,7 +23,7 @@ export default function TableSwitchButton({
<Link
href="/contest?registered=true"
className={cn(
'w-fit p-6 text-xl font-medium text-[#333333]/30 hover:text-[#333333]/50 md:text-2xl',
'w-fit p-6 text-xl font-medium text-[#333333]/30 hover:text-[#333333]/50',
registered
? 'text-primary-light hover:text-primary-light border-primary-light border-b-2 font-bold'
: ''
Expand Down
4 changes: 2 additions & 2 deletions apps/frontend/app/(main)/contest/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ export default async function Contest({ searchParams }: ContestProps) {
{session ? (
<TableSwitchButton registered={registered} />
) : (
<p className="text-primary-light border-primary-light w-fit border-b-2 p-6 text-2xl font-bold md:text-2xl">
<p className="text-primary-light border-primary-light w-fit border-b-2 p-6 text-xl font-bold md:text-2xl">
Finished
</p>
)}
<Separator className="mb-3" />
<div className="flex justify-end">
<div className="flex justify-end py-8">
<SearchBar className="w-60" />
</div>
{session && registered ? (
Expand Down
3 changes: 3 additions & 0 deletions apps/frontend/public/check-gray-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.