move some pigs around and add a glowing neon friend
This commit is contained in:
@ -1,16 +1,16 @@
|
|||||||
"use client";
|
"use client";
|
||||||
import styles from "./pig.module.scss";
|
import styles from "./pig.module.scss";
|
||||||
import { ChillPig } from "./pigs/ChillPig";
|
import { ChillPig } from "./pigs/simple/ChillPig";
|
||||||
import { DancePig } from "./pigs/DancePig";
|
import { DancePig } from "./pigs/simple/DancePig";
|
||||||
import { DrinkPig } from "./pigs/DrinkPig";
|
import { DrinkPig } from "./pigs/simple/DrinkPig";
|
||||||
import { GuardPig } from "./pigs/GuardPig";
|
import { GuardPig } from "./pigs/simple/GuardPig";
|
||||||
import { KeyPig } from "./pigs/KeyPig";
|
import { KeyPig } from "./pigs/simple/KeyPig";
|
||||||
import { ListenPig } from "./pigs/ListenPig";
|
import { ListenPig } from "./pigs/simple/ListenPig";
|
||||||
import { LogoPig } from "./pigs/LogoPig";
|
import { LogoPig } from "./pigs/simple/LogoPig";
|
||||||
import { MusicPig } from "./pigs/MusicPig";
|
import { MusicPig } from "./pigs/simple/MusicPig";
|
||||||
import { PeekPig } from "./pigs/PeekPig";
|
import { PeekPig } from "./pigs/simple/PeekPig";
|
||||||
import { PointPig } from "./pigs/PointPig";
|
import { PointPig } from "./pigs/simple/PointPig";
|
||||||
import { StudentPig } from "./pigs/StudentPig";
|
import { StudentPig } from "./pigs/simple/StudentPig";
|
||||||
import { useInView } from "react-intersection-observer";
|
import { useInView } from "react-intersection-observer";
|
||||||
|
|
||||||
export const BgPig = ({
|
export const BgPig = ({
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
import styles from "./pig.module.scss";
|
import styles from "./pig.module.scss";
|
||||||
import { ChillPig } from "./pigs/ChillPig";
|
import { ChillPig } from "./pigs/simple/ChillPig";
|
||||||
import { DancePig } from "./pigs/DancePig";
|
import { DancePig } from "./pigs/simple/DancePig";
|
||||||
import { DrinkPig } from "./pigs/DrinkPig";
|
import { DrinkPig } from "./pigs/simple/DrinkPig";
|
||||||
import { GuardPig } from "./pigs/GuardPig";
|
import { GuardPig } from "./pigs/simple/GuardPig";
|
||||||
import { KeyPig } from "./pigs/KeyPig";
|
import { KeyPig } from "./pigs/simple/KeyPig";
|
||||||
import { ListenPig } from "./pigs/ListenPig";
|
import { ListenPig } from "./pigs/simple/ListenPig";
|
||||||
import { LogoPig } from "./pigs/LogoPig";
|
import { LogoPig } from "./pigs/simple/LogoPig";
|
||||||
import { MusicPig } from "./pigs/MusicPig";
|
import { MusicPig } from "./pigs/simple/MusicPig";
|
||||||
import { PeekPig } from "./pigs/PeekPig";
|
import { PeekPig } from "./pigs/simple/PeekPig";
|
||||||
import { PointPig } from "./pigs/PointPig";
|
import { PointPig } from "./pigs/simple/PointPig";
|
||||||
import { StudentPig } from "./pigs/StudentPig";
|
import { StudentPig } from "./pigs/simple/StudentPig";
|
||||||
|
|
||||||
export const Pig = ({
|
export const Pig = ({
|
||||||
type,
|
type,
|
||||||
|
523
web/src/components/general/pigs/fun/NeonChillPig.tsx
Normal file
523
web/src/components/general/pigs/fun/NeonChillPig.tsx
Normal file
File diff suppressed because one or more lines are too long
27
web/src/components/general/pigs/fun/neonChillPig.module.scss
Normal file
27
web/src/components/general/pigs/fun/neonChillPig.module.scss
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
.neonChillPig {
|
||||||
|
position: relative;
|
||||||
|
width: 20rem;
|
||||||
|
height: 8rem;
|
||||||
|
|
||||||
|
.static,
|
||||||
|
.animate {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.animate {
|
||||||
|
animation: glow 1s infinite alternate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes glow {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
@ -1,15 +1,9 @@
|
|||||||
"use client";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import styles from "./footer.module.scss";
|
import styles from "./footer.module.scss";
|
||||||
|
import { NeonChillPig } from "../general/pigs/fun/NeonChillPig";
|
||||||
|
import { ToTop } from "./ToTop";
|
||||||
|
|
||||||
export const Footer = () => {
|
export const Footer = () => {
|
||||||
const scrollToTop = () => {
|
|
||||||
window.scrollTo({
|
|
||||||
top: 0,
|
|
||||||
behavior: "smooth",
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer className={styles.footer}>
|
<footer className={styles.footer}>
|
||||||
<div className={styles.contact}>
|
<div className={styles.contact}>
|
||||||
@ -79,7 +73,8 @@ export const Footer = () => {
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<button onClick={scrollToTop}>Til toppen</button>
|
<NeonChillPig />
|
||||||
|
<ToTop />
|
||||||
</footer>
|
</footer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
12
web/src/components/layout/ToTop.tsx
Normal file
12
web/src/components/layout/ToTop.tsx
Normal 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>;
|
||||||
|
};
|
Reference in New Issue
Block a user