diff --git a/src/components/Low/Button.tsx b/src/components/Low/Button.tsx new file mode 100644 index 00000000..4b7b0db7 --- /dev/null +++ b/src/components/Low/Button.tsx @@ -0,0 +1,23 @@ +import clsx from "clsx"; +import {ReactNode} from "react"; + +interface Props { + children: ReactNode; + color?: "orange" | "green" | "blue"; + variant?: "outline" | "solid"; + onClick: () => void; +} + +export default function Button({color = "green", variant = "solid", children, onClick}: Props) { + const colorClassNames: {[key in typeof color]: string} = { + green: "bg-mti-green hover:bg-mti-green-dark disabled:text-mti-green disabled:bg-mti-green-ultralight", + blue: "bg-mti-blue hover:bg-mti-blue-dark disabled:text-mti-blue disabled:bg-mti-blue-ultralight", + orange: "bg-mti-orange hover:bg-mti-orange-dark disabled:text-mti-orange disabled:bg-mti-orange-ultralight", + }; + + return ( + + ); +} diff --git a/src/components/Low/ProgressBar.tsx b/src/components/Low/ProgressBar.tsx new file mode 100644 index 00000000..4e6d1886 --- /dev/null +++ b/src/components/Low/ProgressBar.tsx @@ -0,0 +1,17 @@ +import clsx from "clsx"; + +interface Props { + label: string; + percentage: number; + color: "blue" | "orange" | "green"; + className?: string; +} + +export default function ProgressBar({label, percentage, color, className}: Props) { + return ( +