From b252d2a70698cfbab341f59cc61c9b3823a34b3a Mon Sep 17 00:00:00 2001 From: kimywann Date: Sat, 22 Nov 2025 21:44:00 +0900 Subject: [PATCH 1/3] =?UTF-8?q?refactor:=20findUserById=20=ED=95=A8?= =?UTF-8?q?=EC=88=98=20api=20=ED=8C=8C=EC=9D=BC=EB=A1=9C=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/api/user.ts diff --git a/src/api/user.ts b/src/api/user.ts new file mode 100644 index 0000000..9c42765 --- /dev/null +++ b/src/api/user.ts @@ -0,0 +1,16 @@ +import supabase from "@/lib/supabase"; + +export async function findUserById(id: string) { + const { data: user, error } = await supabase + .from("user") + .select("*") + .eq("id", id); + + if (error) throw new Error(error.message); + + if (user && user.length > 0) { + return user[0].email.split("@")[0] + "님"; + } + + return "알 수 없는 사용자"; +} From 9964c8b2142148e98d82055497ff2fd81646fc60 Mon Sep 17 00:00:00 2001 From: kimywann Date: Mon, 24 Nov 2025 16:18:15 +0900 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20aria-label=EB=A5=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=ED=95=98=EC=97=AC=20=EC=A0=91=EA=B7=BC=EC=84=B1=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Header 모바일 메뉴 버튼에 aria-label 추가 - Select 컴포넌트들에 aria-label 추가 (포지션, 직무, 경력, 지역) --- src/components/common/Header.tsx | 4 ++-- src/components/recruits/select/Experience.tsx | 1 + src/components/recruits/select/Job.tsx | 1 + src/components/recruits/select/PositionRole.tsx | 1 + src/components/recruits/select/Region.tsx | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/common/Header.tsx b/src/components/common/Header.tsx index d309de7..c3b3cab 100644 --- a/src/components/common/Header.tsx +++ b/src/components/common/Header.tsx @@ -108,7 +108,7 @@ function Header() { {user && ( diff --git a/src/components/recruits/select/Experience.tsx b/src/components/recruits/select/Experience.tsx index d7e2ee7..9134021 100644 --- a/src/components/recruits/select/Experience.tsx +++ b/src/components/recruits/select/Experience.tsx @@ -24,6 +24,7 @@ function SelectExperience({ value, onValueChange, className }: Props) { > diff --git a/src/components/recruits/select/Job.tsx b/src/components/recruits/select/Job.tsx index 0dada0f..516d3e0 100644 --- a/src/components/recruits/select/Job.tsx +++ b/src/components/recruits/select/Job.tsx @@ -24,6 +24,7 @@ function SelectJob({ value, onValueChange, className }: Props) { > diff --git a/src/components/recruits/select/PositionRole.tsx b/src/components/recruits/select/PositionRole.tsx index 60f4bfa..dc30ec7 100644 --- a/src/components/recruits/select/PositionRole.tsx +++ b/src/components/recruits/select/PositionRole.tsx @@ -24,6 +24,7 @@ function SelectPositionRole({ value, onValueChange, className }: Props) { > diff --git a/src/components/recruits/select/Region.tsx b/src/components/recruits/select/Region.tsx index 83c16c4..cb4ee4c 100644 --- a/src/components/recruits/select/Region.tsx +++ b/src/components/recruits/select/Region.tsx @@ -24,6 +24,7 @@ function SelectRegion({ value, onValueChange, className }: Props) { > From cfdd59765304d42139a0610e609a008e2e5ce02c Mon Sep 17 00:00:00 2001 From: kimywann Date: Mon, 24 Nov 2025 16:19:02 +0900 Subject: [PATCH 3/3] =?UTF-8?q?refactor:=20=EC=83=89=EC=83=81=20=EB=8C=80?= =?UTF-8?q?=EB=B9=84=EC=9C=A8=20=EC=A0=91=EA=B7=BC=EC=84=B1=20=EA=B0=9C?= =?UTF-8?q?=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - InfoBadge 색상 대비율 개선 (배경 투명도 및 텍스트 색상 조정) - 삭제 버튼 색상 대비율 개선 (red-400/300 → red-600)" --- src/components/common/Footer.tsx | 4 ++-- src/components/common/InfoBadge.tsx | 12 ++++++------ .../common/post/detail/PostDetailActions.tsx | 4 ++-- src/pages/find-teammates/index.tsx | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/common/Footer.tsx b/src/components/common/Footer.tsx index 48bb1ba..829c7e1 100644 --- a/src/components/common/Footer.tsx +++ b/src/components/common/Footer.tsx @@ -7,11 +7,11 @@ function Footer() {
-

+

WeCode

- 개발자를 잇다. + 팀원을 IT다.

diff --git a/src/components/common/InfoBadge.tsx b/src/components/common/InfoBadge.tsx index 104ed6d..55b6f39 100644 --- a/src/components/common/InfoBadge.tsx +++ b/src/components/common/InfoBadge.tsx @@ -9,12 +9,12 @@ interface Props { } const badgeThemes = { - default: "border-none bg-gray-200 text-gray-700", - green: "border-none bg-green-300/20 text-sm text-green-500", - blue: "border-none bg-blue-300/20 text-sm text-blue-500", - red: "border-none bg-red-300/20 text-sm text-red-500", - gray: "bg-gray-200 text-gray-700", - white: "bg-slate-50 text-sm font-bold text-slate-500", + default: "border-none bg-gray-200 text-gray-800", + green: "border-none bg-green-100 text-green-700 font-semibold", + blue: "border-none bg-blue-100 text-blue-700 font-semibold", + red: "border-none bg-red-100 text-red-700 font-semibold", + gray: "bg-gray-200 text-gray-800", + white: "bg-slate-100 text-slate-700 font-bold", }; /** diff --git a/src/components/common/post/detail/PostDetailActions.tsx b/src/components/common/post/detail/PostDetailActions.tsx index d796fd7..cb1383e 100644 --- a/src/components/common/post/detail/PostDetailActions.tsx +++ b/src/components/common/post/detail/PostDetailActions.tsx @@ -41,7 +41,7 @@ export default function PostDetailActions({ post, user }: Props) { @@ -58,7 +58,7 @@ export default function PostDetailActions({ post, user }: Props) { 닫기 삭제 diff --git a/src/pages/find-teammates/index.tsx b/src/pages/find-teammates/index.tsx index 9c9b815..0f31ad3 100644 --- a/src/pages/find-teammates/index.tsx +++ b/src/pages/find-teammates/index.tsx @@ -206,7 +206,7 @@ export default function FindTeammates() {