move some pigs around and add a glowing neon friend

This commit is contained in:
2024-05-23 00:44:07 +02:00
parent c3021e0b8b
commit c640104183
17 changed files with 588 additions and 31 deletions

View File

@@ -1,15 +1,9 @@
"use client";
import Link from "next/link";
import styles from "./footer.module.scss";
import { NeonChillPig } from "../general/pigs/fun/NeonChillPig";
import { ToTop } from "./ToTop";
export const Footer = () => {
const scrollToTop = () => {
window.scrollTo({
top: 0,
behavior: "smooth",
});
};
return (
<footer className={styles.footer}>
<div className={styles.contact}>
@@ -79,7 +73,8 @@ export const Footer = () => {
</li>
</ul>
</div>
<button onClick={scrollToTop}>Til toppen</button>
<NeonChillPig />
<ToTop />
</footer>
);
};

View File

@@ -0,0 +1,12 @@
"use client";
import { useInView } from "react-intersection-observer";
export const ToTop = () => {
const scrollToTop = () => {
window.scrollTo({
top: 0,
behavior: "smooth",
});
};
return <button onClick={scrollToTop}>Til toppen</button>;
};