mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
Cleaning
This commit is contained in:
@@ -1,22 +1,15 @@
|
||||
export function BlueButton({ children, ...props }) {
|
||||
return (
|
||||
<button {...props} className="bg-blue-600 hover:bg-blue-500 text-lg ease-out duration-200 text-white w-full h-full p-4 shadow-sm rounded">
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
export function CustomButton({ color, children, ...props }) {
|
||||
const colorClasses = {
|
||||
blue: 'bg-blue-600 hover:bg-blue-500',
|
||||
red: 'bg-red-600 hover:bg-red-500',
|
||||
green: 'bg-green-600 hover:bg-green-500',
|
||||
yellow: 'bg-yellow-600 hover:bg-yellow-500',
|
||||
purple: 'bg-purple-600 hover:bg-purple-500',
|
||||
gray: 'bg-gray-600 hover:bg-gray-500',
|
||||
};
|
||||
|
||||
export function RedButton({ children, ...props }) {
|
||||
return (
|
||||
<button {...props} className="bg-red-600 hover:bg-red-500 text-lg ease-out duration-200 text-white w-full h-full p-4 shadow-sm rounded">
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
}
|
||||
|
||||
export function GreenButton({ children, ...props }) {
|
||||
return (
|
||||
<button {...props} className="bg-green-600 hover:bg-green-500 text-lg ease-out duration-200 text-white w-full h-full p-4 shadow-sm rounded">
|
||||
<button {...props} className={`${colorClasses[color]} text-lg ease-out duration-200 text-white w-full h-full p-4 shadow-sm rounded`}>
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user