From 563b1622908ff0235bc7576e64d824a2134cd659 Mon Sep 17 00:00:00 2001 From: koreacomp5 Date: Thu, 9 Oct 2025 15:26:03 +0900 Subject: [PATCH] =?UTF-8?q?5.2=20=EA=B3=B5=ED=86=B5=20=EC=BB=B4=ED=8F=AC?= =?UTF-8?q?=EB=84=8C=ED=8A=B8(=EB=B2=84=ED=8A=BC/=EC=9E=85=EB=A0=A5/?= =?UTF-8?q?=EB=AA=A8=EB=8B=AC/=ED=86=A0=EC=8A=A4=ED=8A=B8)=20=EC=A0=9C?= =?UTF-8?q?=EC=9E=91=20o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/components/ui/Button.tsx | 23 +++++++++++++++++ src/app/components/ui/Input.tsx | 23 +++++++++++++++++ src/app/components/ui/Modal.tsx | 27 ++++++++++++++++++++ src/app/components/ui/ToastProvider.tsx | 34 +++++++++++++++++++++++++ src/app/layout.tsx | 15 ++++++----- todolist.txt | 4 +-- 6 files changed, 118 insertions(+), 8 deletions(-) create mode 100644 src/app/components/ui/Button.tsx create mode 100644 src/app/components/ui/Input.tsx create mode 100644 src/app/components/ui/Modal.tsx create mode 100644 src/app/components/ui/ToastProvider.tsx diff --git a/src/app/components/ui/Button.tsx b/src/app/components/ui/Button.tsx new file mode 100644 index 0000000..713acd3 --- /dev/null +++ b/src/app/components/ui/Button.tsx @@ -0,0 +1,23 @@ +"use client"; +import React from "react"; + +type Props = React.ButtonHTMLAttributes & { + variant?: "primary" | "secondary" | "ghost"; +}; + +export function Button({ variant = "primary", style, ...props }: Props) { + const base: React.CSSProperties = { + padding: "8px 12px", + borderRadius: 6, + border: "1px solid transparent", + cursor: "pointer", + }; + const variants: Record, React.CSSProperties> = { + primary: { background: "#111", color: "#fff" }, + secondary: { background: "#eee", color: "#111" }, + ghost: { background: "transparent", borderColor: "#ddd", color: "#111" }, + }; + return