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
Binary file added public/images/Jacob Yackenovich.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/Kyle Brown.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
80 changes: 51 additions & 29 deletions src/components/speaker.js
Original file line number Diff line number Diff line change
@@ -1,62 +1,84 @@
import { Panel } from "./panel";
import { H1, P } from "./typography";
import { H1 } from "./typography";

export const Speaker = () => {
return (
<Panel>
<div className="absolute z-20 w-[40vw] right-[30vw] top-[20vw] text-center" /*className="absolute z-20 w-[40vw] right-[6vw] top-[7vw] text-center"*/>
<H1>Speaker</H1>
<P>
Coming soon!
</P>
</div>
<Panel className="flex flex-col items-center justify-center min-h-screen">
{/* Header */}
<H1 className="-mb-8 text-center">Speakers</H1>

{/*<div className="absolute w-[60vw] left-[-7vw] top-[-5vw]">
<SpeakerShark />
</div>*/}
{/* Sharks container, shifted left */}
<div className="w-full flex justify-center">
<div
className="flex justify-center items-start max-w-4xl"
style={{ transform: "translateX(-30%)" }} // shifts the sharks left
>
{/* First Shark (left, normal) scaled up with name below */}
<div className="flex flex-col items-center p-2 -mt-12" style={{ transform: "scale(1.3)" }}>
<SpeakerShark speaker_name="Kyle Brown.JPG" />
<h3 className="text-sm md:text-3xl text-white text-center">Kyle Brown</h3>
</div>
{/* Second Shark (right, flipped horizontally, lowered, and scaled up) with name below */}
<div className="flex flex-col items-center p-2 mt-20" style={{ transform: "scale(1.3) scaleX(-1)" }}>
<SpeakerShark speaker_name = "Jacob Yackenovich.png"/>
<h3 className="text-sm md:text-3xl text-white text-center" style={{ transform: "scaleX(-1)" }}>Jacob Yackenovich</h3>
</div>
</div>
</div>

{/* Decorative Fish image */}
<img
src="/images/fishy.png"
alt="fish"
className="absolute z-20 h-[15vw]"
className="z-20 h-[15vw] mt-8"
/>

</Panel>
);
};

export const SpeakerShark = () => {
export const SpeakerShark = ({ speaker_name }) => {
// Adjust specific styles for Kyle
const isKyle = speaker_name === "Kyle Brown.JPG";

return (
<div style={{ position: 'relative', width: '100%' }}>
<div style={{ position: "relative", width: "100%" }}>
{/* Shark Frame */}
<img
src="/images/SpeakerSharkFrame.png"
alt="Speaker Shark Frame"
style={{ width: '100%' }}
style={{ width: "100%" }}
/>

{/* Shark Teeth Overlay */}
<img
src="/images/SpeakerSharkTeethOverlay.png"
alt="Speaker Shark Teeth"
style={{
position: 'absolute',
top: '39%',
left: '48%',
transform: 'translateX(-50%)',
width: '49%',
position: "absolute",
top: "39%",
left: "48%",
transform: "translateX(-50%)",
width: "49%",
zIndex: 10,
}}
/>

{/* Speaker Image inside Shark */}
<img
src="/images/Speaker.png"
src={`/images/${speaker_name}`}
alt="Speaker"
style={{
position: 'absolute',
top: '43%',
left: '48%',
transform: 'translateX(-50%)',
width: '43%',
borderRadius: '50%',
position: "absolute",
top: isKyle ? "45%" : "43%",
left: "48%",
transform: "translateX(-50%)",
width: isKyle ? "40%" : "40%", // Reduce size for Kyle
height: isKyle ? "41%" : "auto", // Adjust height for Kyle
borderRadius: "50%",
objectFit: "cover", // Ensures the image fits properly inside the frame
objectPosition: isKyle ? "top" : "center", // Prioritize Kyle's head
}}
/>
</div>
);
}
};