Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/Blobbie.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ type BlobbieProps = {
};

const Blobbie = (props: BlobbieProps) => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const blobbies = {
const blobbies: { [key: string]: any } = {
blobLottie1: blobLottie1,
blobLottie2: blobLottie2,
blobLottie3: blobLottie3,
Expand All @@ -49,10 +48,11 @@ const Blobbie = (props: BlobbieProps) => {
const blobbieClass =
props.edge === true ? styles["Blobbie--edge"] : styles["Blobbie--middle"];

const animationData = blobbies[`blobLottie${props.id}`];

return (
<Lottie
// eslint-disable-next-line no-eval
animationData={eval(`blobbies.blobLottie${props.id}`)}
animationData={animationData}
className={"Blobbie " + blobbieClass}
style={{ width: props.width, transform: props.transform }}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/pageLayouts/GalleryPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface PhotoProps {
const GalleryPage = ({ picUrls }: PhotoProps) => {
return (
<div
className="relative box-border min-h-screen overflow-hidden scroll-smooth whitespace-normal bg-gradient-to-b from-dark-background to-dark-background-end p-0 font-[Inter]"
className="relative box-border min-h-screen overflow-hidden scroll-smooth whitespace-normal bg-gradient-to-b from-dark-background to-dark-background-end p-0"
id="galleryPageTop"
>
<Blobbie
Expand All @@ -26,7 +26,7 @@ const GalleryPage = ({ picUrls }: PhotoProps) => {
transform="translate(-10vw, 10vw)"
width={250}
/>
<div className="text-center text-title-size text-white">
<div className="text-center text-title-size font-bold text-white">
<motion.h1
animate={{ opacity: 1 }}
initial={{ opacity: 0 }}
Expand Down