-
-
Save Daltonic/45a2273d26648e8f01fdff9b02bf70f1 to your computer and use it in GitHub Desktop.
Game shop project, Treasury.jsx file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Treasury = ({ stats }) => { | |
return ( | |
<div className="flex flex-col sm:flex-row justify-center items-center p-5"> | |
<div className="flex flex-col justify-center items-center h-20 border border-gray-200 shadow-md w-full"> | |
<span className="text-lg font-bold text-black leading-5">{0} ETH</span> | |
<span>Paid</span> | |
</div> | |
<div className="flex flex-col justify-center items-center h-20 border border-gray-200 shadow-md w-full"> | |
<span className="text-lg font-bold text-black leading-5">{stats.balance} ETH</span> | |
<span>Balance</span> | |
</div> | |
<div className="flex justify-center items-center h-20 space-x-2 border border-gray-200 shadow-md w-full"> | |
<button | |
type="button" | |
className="inline-block px-6 py-2.5 bg-blue-600 | |
text-white font-medium text-xs leading-tight | |
uppercase rounded-full shadow-md hover:bg-blue-700 | |
hover:shadow-lg focus:bg-blue-700 focus:shadow-lg | |
focus:outline-none focus:ring-0 active:bg-blue-800 | |
active:shadow-lg transition duration-150 ease-in-out" | |
> | |
Withdraw Fund | |
</button> | |
<button | |
type="button" | |
className="inline-block px-6 py-2.5 bg-blue-600 | |
text-white font-medium text-xs leading-tight | |
uppercase rounded-full shadow-md hover:bg-blue-700 | |
hover:shadow-lg focus:bg-blue-700 focus:shadow-lg | |
focus:outline-none focus:ring-0 active:bg-blue-800 | |
active:shadow-lg transition duration-150 ease-in-out" | |
> | |
Fund Account | |
</button> | |
</div> | |
</div> | |
) | |
} | |
export default Treasury |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment