add event header component and the first pig
This commit is contained in:
19
web/src/components/general/Pig.tsx
Normal file
19
web/src/components/general/Pig.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import styles from "./pig.module.scss";
|
||||
import { LogoPig } from "./pigs/LogoPig";
|
||||
|
||||
export const Pig = ({
|
||||
type,
|
||||
}: {
|
||||
type:
|
||||
| "logo"
|
||||
| "music"
|
||||
| "point"
|
||||
| "student"
|
||||
| "dance"
|
||||
| "listen"
|
||||
| "drink"
|
||||
| "guard"
|
||||
| "peek";
|
||||
}) => {
|
||||
return <div className={styles.pig}>{type === "logo" && <LogoPig />}</div>;
|
||||
};
|
8
web/src/components/general/pig.module.scss
Normal file
8
web/src/components/general/pig.module.scss
Normal file
@ -0,0 +1,8 @@
|
||||
.pig {
|
||||
color: var(--color-pig);
|
||||
width: 16rem;
|
||||
|
||||
svg {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
50
web/src/components/general/pigs/LogoPig.tsx
Normal file
50
web/src/components/general/pigs/LogoPig.tsx
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user