Skip to content

Commit

Permalink
feat: 토너먼트 api를 연결합니다. (#210)
Browse files Browse the repository at this point in the history
* fix: api 변경 사항 반영

* feat: api 적용 완료

* fix

* chore: 주석 제거
  • Loading branch information
Yejin0O0 authored Nov 15, 2024
1 parent 5784392 commit 613a46a
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 423 deletions.
2 changes: 1 addition & 1 deletion app/test/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import TournamentBracket from "@/components/club/TournamentBracket";
import React from "react";

function Page() {
return <TournamentBracket />;
return <div>test</div>;
}

export default Page;
35 changes: 22 additions & 13 deletions components/club/TournamentBracket/MatchPlayerBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,32 @@ function MatchPlayerBlock({
tier,
participant_win_set_count,
}: MatchPlayerBlockProps) {
console.log(name);
return (
<div className="flex items-center justify-between gap-3 p-2 rounded-sm bg-gray-700 w-60 h-11">
<div className="flex items-center gap-3 ">
<img
src={image}
alt="profile"
className="w-8 h-8 rounded-full object-cover border border-gray-500"
/>
<div className="flex-1 flex justify-center items-center gap-2">
<span className="block text-sm font-semibold text-gray-200 truncate">
{name} {getTierWithEmoji(tier || "")}
{name ? (
<>
<div className="flex items-center gap-3 ">
<img
src={image}
alt="profile"
className="w-8 h-8 rounded-full object-cover border border-gray-500"
/>
<div className="flex-1 flex justify-center items-center gap-2">
<span className="block text-sm font-semibold text-gray-200 truncate">
{name} {getTierWithEmoji(tier || "")}
</span>
</div>
</div>
<span className="text-lg font-semibold text-blue-300">
{participant_win_set_count}
</span>
</>
) : (
<div className="w-full flex justify-center">
<span className="text-lg font-semibold text-blue-300">-</span>
</div>
</div>
<span className="text-lg font-semibold text-blue-300">
{participant_win_set_count}
</span>
)}
</div>
);
}
Expand Down
Loading

0 comments on commit 613a46a

Please sign in to comment.