delete old code

This commit is contained in:
Tom Heaton
2024-06-19 15:13:46 +01:00
parent 393e4907dc
commit 2070ac4400
3 changed files with 0 additions and 46 deletions

View File

@@ -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")};
}
`;

View File

@@ -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;
}