move some pigs around and add a glowing neon friend

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

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