diff --git a/components/Button.tsx b/components/Button.tsx new file mode 100644 index 0000000..c036039 --- /dev/null +++ b/components/Button.tsx @@ -0,0 +1,43 @@ +import React, { ReactNode, ButtonHTMLAttributes } from "react"; + +interface ButtonProps extends ButtonHTMLAttributes { + children: ReactNode; + width?: string; + height?: string; + radius?: string; + color?: "positive" | "negative"; + size?: string; +} + +const Button = ({ + children, + width = "auto", + height = "53px", + radius = "8px", + color = "positive", + size = "18px", + ...props +}: ButtonProps) => { + const backgroundStyle = + color === "positive" + ? "linear-gradient(90.99deg, #6D6AFE 0.12%, #6AE3FE 101.84%)" + : "#FF5B56"; + + return ( + + ); +}; + +export default Button; diff --git a/styles/globals.css b/styles/globals.css index c1334b2..321bdc9 100644 --- a/styles/globals.css +++ b/styles/globals.css @@ -12,6 +12,7 @@ :root { --background: #ffffff; + --white200: #f5f5f5; --black100: #000; --black200: #111322; --black300: #373740; diff --git a/tailwind.config.ts b/tailwind.config.ts index f2c3a03..90da335 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -20,6 +20,7 @@ const config: Config = { gray400: "var(--gray400)", gray500: "var(--gray500)", purple100: "var(--purple100)", + white200: "var(--white200)", }, screens: { sm: "375px",