From 2070ac4400d5f53e819322e40b0bdc42fe28e118 Mon Sep 17 00:00:00 2001 From: Tom Heaton Date: Wed, 19 Jun 2024 15:13:46 +0100 Subject: [PATCH] delete old code --- src/components/ButtonElement.jsx | 23 ----------------------- src/components/ScrollToTop.jsx | 12 ------------ src/pages/signin.jsx | 11 ----------- 3 files changed, 46 deletions(-) delete mode 100644 src/components/ButtonElement.jsx delete mode 100755 src/components/ScrollToTop.jsx delete mode 100644 src/pages/signin.jsx diff --git a/src/components/ButtonElement.jsx b/src/components/ButtonElement.jsx deleted file mode 100644 index 13293f1..0000000 --- a/src/components/ButtonElement.jsx +++ /dev/null @@ -1,23 +0,0 @@ -import { Link } from "react-scroll"; -import styled from "styled-components"; - -export const Button = styled(Link)` - border-radius: 50px; - background: ${({ primary }) => (primary ? "#01BF71" : "#010606")}; - white-space: nowrap; - padding: ${({ big }) => (big ? "14px 48px" : "12px 30px")}; - color: ${({ dark }) => (dark ? "#010106" : "#fff")}; - font-size: $ ${({ fontBig }) => (fontBig ? "20px" : "16px")}; - outline: none; - border: none; - cursor: pointer; - display: flex; - justify-content: center; - align-items: center; - transition: all 0.2s ease-in-out; - - &:hover { - transition: all 0.2s ease-in-out; - background: ${({ primary }) => (primary ? "#fff" : "#01BF71")}; - } -`; diff --git a/src/components/ScrollToTop.jsx b/src/components/ScrollToTop.jsx deleted file mode 100755 index ec78401..0000000 --- a/src/components/ScrollToTop.jsx +++ /dev/null @@ -1,12 +0,0 @@ -import { useEffect } from "react"; -import { useLocation } from "react-router-dom"; - -export default function ScrollToTop() { - const { pathname } = useLocation(); - - useEffect(() => { - window.scrollTo(0, 0, { behavior: "smooth" }); - }, [pathname]); - - return null; -} diff --git a/src/pages/signin.jsx b/src/pages/signin.jsx deleted file mode 100644 index 20d7fda..0000000 --- a/src/pages/signin.jsx +++ /dev/null @@ -1,11 +0,0 @@ -import ScrollToTop from "@/components/ScrollToTop"; -import SignIn from "@/components/SignIn"; - -export default function SigninPage() { - return ( - <> - - - - ); -}