-
- {index === 0 ? (
-
- ) : index === 1 ? (
-
- ) : index === 2 ? (
-
- ) : (
- ""
- )}
-
-
{nickname}
-
{index + 1}
+
+
+
+ {index === 0 ? (
+
+ ) : index === 1 ? (
+
+ ) : index === 2 ? (
+
+ ) : (
+ ""
+ )}
+
+
+ {nickname}
+
+ {index + 1}
+
+
);
}
diff --git a/src/components/ui/ranking/rankingListStyle.ts b/src/components/ui/ranking/rankingListStyle.ts
index 6b93fd6..9683391 100644
--- a/src/components/ui/ranking/rankingListStyle.ts
+++ b/src/components/ui/ranking/rankingListStyle.ts
@@ -1,5 +1,43 @@
import styled from "styled-components";
-export const GoldImage = styled.img``;
-export const SilverImage = styled.img``;
-export const BronzeImage = styled.img``;
+export const RankingBox = styled.div`
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin: 0px 44px 0px 61px;
+`;
+export const NickNameBox = styled.div`
+ display: flex;
+ gap: 20px;
+`;
+export const GoldImage = styled.img`
+ width: 30px;
+ height: 30px;
+`;
+export const SilverImage = styled.img`
+ width: 30px;
+ height: 30px;
+`;
+export const BronzeImage = styled.img`
+ width: 30px;
+ height: 30px;
+`;
+export const NicknameImage = styled.img`
+ width: 40px;
+ height: 40px;
+`;
+export const NickNameText = styled.div`
+ color: var(--gray-999);
+ font-size: 18px;
+ font-weight: 500;
+`;
+export const RankingNumber = styled.div`
+ color: var(--gray-999);
+ font-size: 24px;
+ font-weight: 600;
+`;
+export const Hr = styled.hr`
+ width: 400px;
+ height: 1px;
+ background: var(--gray-999);
+`;
diff --git a/src/pages/game/gameRoomList.tsx b/src/pages/game/gameRoomList.tsx
index 8025b58..e5df6f4 100644
--- a/src/pages/game/gameRoomList.tsx
+++ b/src/pages/game/gameRoomList.tsx
@@ -22,7 +22,7 @@ export default function GameRoomList() {
const onClickModalOpen = () => {
if (!accessToken || accessToken === null) {
- openModal("GamrRoomJoinConfirm", "white");
+ openModal("gameRoomJoinConfirm", "white");
} else {
openModal("makeRoom", "white");
}
diff --git a/src/pages/rank/RankingPage.tsx b/src/pages/rank/RankingPage.tsx
index fa6aa46..5c5d58c 100644
--- a/src/pages/rank/RankingPage.tsx
+++ b/src/pages/rank/RankingPage.tsx
@@ -5,25 +5,30 @@ import {
MainTextBox,
TrophyBox,
TrophyImage,
+ Wrapper,
} from "./rankingPageStyle";
import trophy from "../../assets/images/icon_trophy.svg";
+import RankingList from "../../components/ui/ranking/RankingList";
// import RankingList from "../../components/ui/ranking/RankingList";
export default function RangkingPage() {
return (
-