web: don't start loading pig pattern until user starts to approach it

This commit is contained in:
2026-05-19 22:50:33 +02:00
parent 6d712d31be
commit cb9b108526
3 changed files with 33 additions and 12 deletions
+2 -6
View File
@@ -1,7 +1,7 @@
import Link from "next/link";
import styles from "./footer.module.scss";
import { NeonChillPig } from "../general/pigs/fun/NeonChillPig";
import { ToTop } from "./ToTop";
import { PigPattern } from "./PigPattern";
import { Icon } from "../general/Icon";
import {
getOpeningHours,
@@ -145,11 +145,7 @@ export const Footer = () => {
<NeonChillPig />
</div>
</footer>
<div className={styles.pigPattern}>
<div className={styles.toTop}>
<ToTop />
</div>
</div>
<PigPattern />
</>
);
};