Refactor hero animation, flatten footer, update projects page#15
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the site’s homepage hero animation (moving the “mGEM” wordmark animation to Framer Motion and delaying hero video playback), refreshes content/copy for projects and recruitment, and tightens up some layout and code hygiene (footer spacing + React import cleanup).
Changes:
- Refactor the Home hero wordmark animation to Framer Motion and gate video playback behind a timed “ready” state.
- Update static copy/data for Projects and site content (current project title, recruitment messaging, intros).
- Reduce footer vertical spacing and remove unnecessary
Reactdefault imports / stray blank lines.
Reviewed changes
Copilot reviewed 17 out of 18 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pages/Projects.tsx | Updates Projects page header copy and section spacing/labeling. |
| src/pages/OurTeam.tsx | Moves JSON typing note to a file-level comment for clarity. |
| src/lib/content.ts | Updates/rewraps static copy, current project title, and recruitment text. |
| src/globals.css | Removes an older reduced-motion override block (leaving the generic reduced-motion rule). |
| src/components/ui/VideoPlayer.tsx | Removes default React import; keeps hooks import only. |
| src/components/ui/SplitChars.tsx | Removes unused default React import. |
| src/components/ui/SectionHeading.tsx | Removes unused default React import. |
| src/components/ui/Reveal.tsx | Removes stray leading blank line in file header. |
| src/components/ui/Parallax.tsx | Removes stray leading blank line in file header. |
| src/components/ui/PageHeader.tsx | Removes stray leading blank line in file header. |
| src/components/ui/LinkedInIcon.tsx | Removes unused default React import and an outdated comment. |
| src/components/ui/ContainerScroll.tsx | Removes stray leading blank line in file header. |
| src/components/ui/ClientOnly.tsx | Removes stray leading blank line in file header. |
| src/components/layout/Footer.tsx | Flattens footer spacing (padding/gaps) to reduce vertical height. |
| src/components/home/Hero.tsx | Refactors hero wordmark animation with Framer Motion; delays hero video playback; removes GSAP wordmark animation. |
| README.md | Replaces Next.js template README with repo-specific docs (stack, commands, structure). |
| package.json | Adds framer-motion dependency. |
| package-lock.json | Locks framer-motion and related packages; updates tslib entry metadata. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+15
to
+20
| export const missionIntro = | ||
| "mGEM is McMaster University's award-winning synthetic biology research and design team. Each year, with the involvement of students, professors, stakeholders, and the surrounding community, we design and build a synthetic biology project to tackle real-world problems."; | ||
| "mGEM is McMaster University's award-winning synthetic \ | ||
| biology research and design team. \ | ||
| Each year, with the involvement of students, professors, stakeholders, and the surrounding community, \ | ||
| biology research and design team. Each year, with the involvement of students, professors, stakeholders, \ | ||
| and the surrounding community, we design and build a synthetic biology project to tackle real-world problems."; |
Comment on lines
+128
to
+131
| // Delay video autoplay until the wordmark animation finishes (~1.75 s total) | ||
| const [videoReady, setVideoReady] = useState(false); | ||
| useEffect(() => { | ||
| const t = setTimeout(() => setVideoReady(true), 900); |
Comment on lines
40
to
+44
| src="/Videos/what_is_igemf.mp4" | ||
| autoPlay | ||
| loop | ||
| muted | ||
| playsInline | ||
| preload="metadata" | ||
| preload="auto" |
Comment on lines
11
to
+15
| const [muted, setMuted] = useState(true); | ||
| const [paused, setPaused] = useState(false); | ||
|
|
||
| // Start playback only after the wordmark animation completes (~1.8 s) | ||
| useEffect(() => { |
|
|
||
| // Three stacked copies of "mGEM": maroon italic / stroke+mirrored / maroon italic. | ||
| // The middle row uses .stroke (outlined text) and .reverse-italic (scaleX(-1)) to create a reflected shadow. | ||
| // Three stacked "mGEM" rows that flipravel on load. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.