summaryrefslogtreecommitdiffhomepage
path: root/app/javascript/components/Button.jsx
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2024-05-15 00:44:53 -0400
committerrealtradam <[email protected]>2024-05-15 00:44:53 -0400
commitd2ad5924bce17e3b07ee0af86a8739559dac3b35 (patch)
tree4d7e4384d15e0617a4b380149c29ffaccbca69fa /app/javascript/components/Button.jsx
parenta97531e77e9e3f0e391b2504fcb278cabc2b901e (diff)
downloadgameHolster-d2ad5924bce17e3b07ee0af86a8739559dac3b35.tar.gz
gameHolster-d2ad5924bce17e3b07ee0af86a8739559dac3b35.zip
begin implementing game file upload and also styling
Diffstat (limited to 'app/javascript/components/Button.jsx')
-rw-r--r--app/javascript/components/Button.jsx15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/javascript/components/Button.jsx b/app/javascript/components/Button.jsx
new file mode 100644
index 0000000..f9505f8
--- /dev/null
+++ b/app/javascript/components/Button.jsx
@@ -0,0 +1,15 @@
+import React from "react";
+import { Link } from "react-router-dom";
+
+export default function Button ({ link })
+{
+ 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="z-[3]">
+ { link }
+ </div>
+ </div>
+ </>
+ )
+};