Skip to content

pgobin/adjust landing page animations#135

Merged
UWB-ACM-OFFICIAL merged 11 commits into
mainfrom
pgobin/adjust-landing-page-animations
Apr 18, 2025
Merged

pgobin/adjust landing page animations#135
UWB-ACM-OFFICIAL merged 11 commits into
mainfrom
pgobin/adjust-landing-page-animations

Conversation

@iteerP
Copy link
Copy Markdown
Collaborator

@iteerP iteerP commented Apr 14, 2025

No description provided.

Copy link
Copy Markdown
Collaborator

@uellenberg uellenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but IDs need to be unique. I've marked out some of the places where they conflict, but not all of them.

{/* UWBHacks About Container */}
<Panel
className={`${panelMargin} aboutSectionContainer`}
id="aboutPanel"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

>
{/* UWBHacks About Section Header */}
<PanelHeader
id="aboutPanel"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

{/* UWBHacks About Section Content */}
<PanelContent className="z-[5] flex flex-col md:flex-row justify-center items-center gap-x-8 gap-y-4 overflow-hidden">
<PanelContent
id="aboutPanel"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.


{/* UWB ACM Description Container */}
<Panel
id="uwbacmDescriptionPanel"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

{/* Previous UWBHacks Fun Statistics Container */}
<Panel className={`w-full border-none ${panelMargin}`}>
<Panel
id="funFactsPanel"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

<div className={`w-full grid md:grid-cols-2 gap-8 ${panelMargin}`}>
{/* Month of Hacking */}
<Panel
id="monthOfHackingPanel"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

>
<PanelHeader as="h2">Month of Hacking</PanelHeader>
<PanelContent>
<PanelHeader id="monthOfHackingPanel" as="h2">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

<PanelHeader id="monthOfHackingPanel" as="h2">
Month of Hacking
</PanelHeader>
<PanelContent id="monthOfHackingPanel">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

>
<PanelHeader as="h2">Last Year&apos;s Projects</PanelHeader>
<PanelContent className="h-full flex flex-col justify-around gap-y-4">
<PanelHeader id="lastYearsWinnersPanel" as="h2">
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

Last Year&apos;s Projects
</PanelHeader>
<PanelContent
id="lastYearsWinnersPanel"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Conflicting ID.

@iteerP
Copy link
Copy Markdown
Collaborator Author

iteerP commented Apr 18, 2025

Not sure if there was an easier way to go about doing this, but I passed in an "id" as a prop to several Panel Header and Panel Content components so they would have a reference to their Parent Panel component (of which the id is assigned to).

I use this parentPanelId in both of the components files as a trigger for their respective animations.
image
image

Doing this allows for more reliable animation timing as the animation triggers for both the Panel Header and Content are located in the same location.
Screenshot 2025-04-18 at 12 37 18 AM

As a reference, the animation code I pushed onto main, at times, resulted in the trigger for the Panel Content to be triggered before the trigger for the Panel Header (such as in the image below)
Screenshot 2025-04-18 at 12 31 33 AM

@uellenberg
Copy link
Copy Markdown
Collaborator

That makes a lot more sense, I misread the original code. Having them be parentPanelId is more clear though, so thank you for changing it.

@UWB-ACM-OFFICIAL UWB-ACM-OFFICIAL merged commit 0aa1807 into main Apr 18, 2025
2 of 3 checks passed
@UWB-ACM-OFFICIAL UWB-ACM-OFFICIAL deleted the pgobin/adjust-landing-page-animations branch April 18, 2025 15:52
uellenberg pushed a commit that referenced this pull request May 5, 2025
…tions

pgobin/adjust landing page animations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants