mooore pigs
This commit is contained in:
@ -27,7 +27,7 @@ export const EventHeader = ({ event }: { event: EventFragment }) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<div className={styles.pig}>
|
<div className={styles.pig}>
|
||||||
<Pig type="logo" />
|
<Pig type="student" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,7 +26,12 @@
|
|||||||
|
|
||||||
.pig {
|
.pig {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -30%;
|
bottom: 0;
|
||||||
right: -2.5rem;
|
right: -2.5rem;
|
||||||
|
transform: translateY(50%);
|
||||||
color: var(--color-white);
|
color: var(--color-white);
|
||||||
|
|
||||||
|
>div {
|
||||||
|
width: 30vw;
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,5 +1,15 @@
|
|||||||
import styles from "./pig.module.scss";
|
import styles from "./pig.module.scss";
|
||||||
|
import { ChillPig } from "./pigs/ChillPig";
|
||||||
|
import { DancePig } from "./pigs/DancePig";
|
||||||
|
import { DrinkPig } from "./pigs/DrinkPig";
|
||||||
|
import { GuardPig } from "./pigs/GuardPig";
|
||||||
|
import { KeyPig } from "./pigs/KeyPig";
|
||||||
|
import { ListenPig } from "./pigs/ListenPig";
|
||||||
import { LogoPig } from "./pigs/LogoPig";
|
import { LogoPig } from "./pigs/LogoPig";
|
||||||
|
import { MusicPig } from "./pigs/MusicPig";
|
||||||
|
import { PeekPig } from "./pigs/PeekPig";
|
||||||
|
import { PointPig } from "./pigs/PointPig";
|
||||||
|
import { StudentPig } from "./pigs/StudentPig";
|
||||||
|
|
||||||
export const Pig = ({
|
export const Pig = ({
|
||||||
type,
|
type,
|
||||||
@ -7,13 +17,29 @@ export const Pig = ({
|
|||||||
type:
|
type:
|
||||||
| "logo"
|
| "logo"
|
||||||
| "music"
|
| "music"
|
||||||
|
| "drink"
|
||||||
|
| "dance"
|
||||||
| "point"
|
| "point"
|
||||||
| "student"
|
| "student"
|
||||||
| "dance"
|
|
||||||
| "listen"
|
| "listen"
|
||||||
| "drink"
|
|
||||||
| "guard"
|
| "guard"
|
||||||
|
| "key"
|
||||||
|
| "chill"
|
||||||
| "peek";
|
| "peek";
|
||||||
}) => {
|
}) => {
|
||||||
return <div className={styles.pig}>{type === "logo" && <LogoPig />}</div>;
|
return (
|
||||||
|
<div className={styles.pig}>
|
||||||
|
{type === "logo" && <LogoPig />}
|
||||||
|
{type === "music" && <MusicPig />}
|
||||||
|
{type === "drink" && <DrinkPig />}
|
||||||
|
{type === "dance" && <DancePig />}
|
||||||
|
{type === "point" && <PointPig />}
|
||||||
|
{type === "student" && <StudentPig />}
|
||||||
|
{type === "listen" && <ListenPig />}
|
||||||
|
{type === "guard" && <GuardPig />}
|
||||||
|
{type === "key" && <KeyPig />}
|
||||||
|
{type === "chill" && <ChillPig />}
|
||||||
|
{type === "peek" && <PeekPig />}
|
||||||
|
</div>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
62
web/src/components/general/pigs/ChillPig.tsx
Normal file
62
web/src/components/general/pigs/ChillPig.tsx
Normal file
File diff suppressed because one or more lines are too long
46
web/src/components/general/pigs/DancePig.tsx
Normal file
46
web/src/components/general/pigs/DancePig.tsx
Normal file
File diff suppressed because one or more lines are too long
50
web/src/components/general/pigs/DrinkPig.tsx
Normal file
50
web/src/components/general/pigs/DrinkPig.tsx
Normal file
File diff suppressed because one or more lines are too long
82
web/src/components/general/pigs/GuardPig.tsx
Normal file
82
web/src/components/general/pigs/GuardPig.tsx
Normal file
File diff suppressed because one or more lines are too long
50
web/src/components/general/pigs/KeyPig.tsx
Normal file
50
web/src/components/general/pigs/KeyPig.tsx
Normal file
File diff suppressed because one or more lines are too long
50
web/src/components/general/pigs/ListenPig.tsx
Normal file
50
web/src/components/general/pigs/ListenPig.tsx
Normal file
File diff suppressed because one or more lines are too long
62
web/src/components/general/pigs/MusicPig.tsx
Normal file
62
web/src/components/general/pigs/MusicPig.tsx
Normal file
File diff suppressed because one or more lines are too long
42
web/src/components/general/pigs/PeekPig.tsx
Normal file
42
web/src/components/general/pigs/PeekPig.tsx
Normal file
File diff suppressed because one or more lines are too long
62
web/src/components/general/pigs/PointPig.tsx
Normal file
62
web/src/components/general/pigs/PointPig.tsx
Normal file
File diff suppressed because one or more lines are too long
54
web/src/components/general/pigs/StudentPig.tsx
Normal file
54
web/src/components/general/pigs/StudentPig.tsx
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user