diff options
| author | realtradam <[email protected]> | 2024-05-15 20:35:42 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2024-05-15 20:35:42 -0400 |
| commit | 15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f (patch) | |
| tree | d5c9e7eb61de935e458f0af1d1e2b81d641e0277 /app/javascript/components/Button.jsx | |
| parent | d2ad5924bce17e3b07ee0af86a8739559dac3b35 (diff) | |
| download | gameHolster-15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f.tar.gz gameHolster-15bf3d5848aa1b7aeb5177f8b9ca84eb9ff5799f.zip | |
more styling improvements and gamecards added
Diffstat (limited to 'app/javascript/components/Button.jsx')
| -rw-r--r-- | app/javascript/components/Button.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/components/Button.jsx b/app/javascript/components/Button.jsx index f9505f8..de199d0 100644 --- a/app/javascript/components/Button.jsx +++ b/app/javascript/components/Button.jsx @@ -1,11 +1,11 @@ import React from "react"; import { Link } from "react-router-dom"; -export default function Button ({ link }) +export default function Button ({ link, width = 36, height = 16, spinner = 4 }) { return ( <> - <div className="animated_card w-36 h-16 relative grid rounded-[5px] cursor-pointer overflow-hidden place-items-center before:content-[''] before:absolute before:w-[15%] before:bg-amber-400 before:rotate-[32deg] before:h-[1%] before:transition-all before:duration-500 before:ease-linear before:animate-[buttonSpin_1.5s_linear_infinite] hover:before:h-[2800%] hover:before:transition-all hover:before:duration-0 hover:before:ease-linear after:absolute after:content-[''] after:bg-stone-800 after:rounded-[5px] after:inset-0 after:transition-all after:duration-200 after:ease-in-out hover:after:inset-[5px] hover:after:transition-all hover:after:duration-200 hover:after:ease-in-out"> + <div className={`w-${ width } h-${ height } relative grid rounded-[5px] cursor-pointer overflow-hidden place-items-center before:content-[''] before:absolute before:w-${ spinner } before:bg-amber-400 before:rotate-[32deg] before:h-[1%] before:transition-all before:duration-500 before:ease-linear before:animate-[buttonSpin_1.5s_linear_infinite] hover:before:h-[2800%] hover:before:transition-all hover:before:duration-0 hover:before:ease-linear after:absolute after:content-[''] after:bg-stone-800 after:rounded-[5px] after:inset-0 after:transition-all after:duration-200 after:ease-in-out hover:after:inset-[5px] hover:after:transition-all hover:after:duration-200 hover:after:ease-in-out`}> <div className="z-[3]"> { link } </div> |
