From 3b380c7adb754e93868a038ace2d2e42ba439e03 Mon Sep 17 00:00:00 2001 From: log_K <36733349+K-Yoshizawa@users.noreply.github.com> Date: Fri, 25 Oct 2024 03:30:45 +0900 Subject: [PATCH 01/14] =?UTF-8?q?=E3=83=A9=E3=83=B3=E3=82=AD=E3=83=B3?= =?UTF-8?q?=E3=82=B0=E3=81=AE=E5=90=84=E3=82=A2=E3=82=A4=E3=83=86=E3=83=A0?= =?UTF-8?q?=E3=81=A8=E8=A1=A8=E7=A4=BA=E3=81=AE=E3=82=B3=E3=83=B3=E3=83=9D?= =?UTF-8?q?=E3=83=BC=E3=83=8D=E3=83=B3=E3=83=88=E4=BD=9C=E6=88=90=E3=83=BB?= =?UTF-8?q?Supabase=E3=81=8B=E3=82=89=E3=83=A9=E3=83=B3=E3=82=AD=E3=83=B3?= =?UTF-8?q?=E3=82=B0=E3=82=92=E5=8F=96=E5=BE=97=E3=81=99=E3=82=8B=E3=83=95?= =?UTF-8?q?=E3=83=83=E3=82=AF=E3=81=AE=E4=BD=9C=E6=88=90=E3=83=BB=E4=B8=80?= =?UTF-8?q?=E5=BA=A6=E3=81=AB=E5=8F=96=E5=BE=97=E3=81=99=E3=82=8B=E4=BB=B6?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E5=88=B6=E9=99=90=E3=83=BB=E3=81=95=E3=82=89?= =?UTF-8?q?=E3=81=AB=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=82=80=E6=A9=9F=E8=83=BD?= =?UTF-8?q?=20=E3=83=A9=E3=83=B3=E3=82=AD=E3=83=B3=E3=82=B0=E6=A9=9F?= =?UTF-8?q?=E8=83=BD=E3=81=AE=E4=BD=9C=E6=88=90=20#26?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Ranking.css | 12 +++++++ app/components/Ranking.tsx | 48 +++++++++++++++++++++++++ app/hooks/useFetchRanking.ts | 68 ++++++++++++++++++++++++++++++++++++ 3 files changed, 128 insertions(+) create mode 100644 app/Ranking.css create mode 100644 app/components/Ranking.tsx create mode 100644 app/hooks/useFetchRanking.ts diff --git a/app/Ranking.css b/app/Ranking.css new file mode 100644 index 0000000..787d8ec --- /dev/null +++ b/app/Ranking.css @@ -0,0 +1,12 @@ +.ranking-item{ + display: flex; + justify-content: space-between; + align-items: center; + padding: 10px; + margin: 5px 0; + border-radius: 10px; + background-color: #525252; + font-size: 24px; + border: 2px solid #333; + box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.2); +} \ No newline at end of file diff --git a/app/components/Ranking.tsx b/app/components/Ranking.tsx new file mode 100644 index 0000000..55dc74c --- /dev/null +++ b/app/components/Ranking.tsx @@ -0,0 +1,48 @@ +import React from 'react'; +import { useFetchRanking } from '~/hooks/useFetchRanking'; +import '../Ranking.css' + +interface RankingData{ + rank: number | null; + name: string; + score: number | null; +} + +export function RankingItem({ rank, name, score }: RankingData){ + return ( +
Loading...
+ ) : ( + + )} +Loading...
+ {/* {loading ? ( +Loading...
) : ( - )} + )} */} +Loading...
} +Loading...
- ) : ( - - )} */}Loading...
}Loading...
} -Loading...
} -Loading...
} +Loading...
} From 7ba40050a6c25e7932017857cca288983196bd0a Mon Sep 17 00:00:00 2001 From: log_K <36733349+K-Yoshizawa@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:25:31 +0900 Subject: [PATCH 10/14] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=20import=20?= =?UTF-8?q?=E3=81=AA=E3=81=A9=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/Ranking.tsx | 2 +- app/hooks/useFetchRanking.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/components/Ranking.tsx b/app/components/Ranking.tsx index d01a28a..977e5a6 100644 --- a/app/components/Ranking.tsx +++ b/app/components/Ranking.tsx @@ -59,7 +59,7 @@ export function RankingList(){ return (Loading...
} -Loading...
} +Loading...
} +