new ui begin

This commit is contained in:
2024-09-26 15:04:52 +05:30
parent c682d7727e
commit e61d4555de
6 changed files with 185 additions and 103 deletions

View File

@@ -0,0 +1,21 @@
import React from 'react';
interface ButtonProps {
onClick: () => void;
text: string;
}
const Button: React.FC<ButtonProps> = ({ onClick, text }) => {
return (
<button
className="m-0.5 bg-gradient-to-b from-purple-400 to-purple-950 py-3 px-8 text-black rounded-full text-lg font-extrabold flex items-center shadow-lg hover:shadow-xl active:shadow-md active:translate-y-0.5"
onClick={onClick}
>
<div className="mb-1">
{text}
</div>
</button>
);
};
export default Button;