From 80d64e04441ced7caecd238ae232e749d8e0dddf Mon Sep 17 00:00:00 2001
From: realtradam <github@tradam.dev>
Date: Tue, 21 May 2024 23:32:53 -0400
Subject: initial setup of seperating frontend

---
 src/components/Button.jsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 src/components/Button.jsx

(limited to 'src/components/Button.jsx')

diff --git a/src/components/Button.jsx b/src/components/Button.jsx
new file mode 100644
index 0000000..de199d0
--- /dev/null
+++ b/src/components/Button.jsx
@@ -0,0 +1,15 @@
+import React from "react";
+import { Link } from "react-router-dom";
+
+export default function Button ({ link, width = 36, height = 16, spinner = 4 }) 
+{
+	return (
+		<>
+		<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>
+		</div>
+		</>
+	)
+};
-- 
cgit v1.2.3

