Project Context:
- Source Project:
icia-arvin-heartbeat - Target Project:
client(Next.js) - Component:
HeartCollage.tsx - Assets: Use images from
public/heartdirectory in the target project.
Updated Goals:
- Refactor
HeartCollage.tsxto remove all text or captions. - Integrate the component into the Hero Section of
client/pages/index.tsx. - Position the collage between the following two lines:
- "From childhood friends at AISD to forever partners"
- "Join us as we celebrate our love story across continents"
Task Breakdown:
-
Analyze Source:
- Review
icia-arvin-heartbeatfor tech stack, animation libraries (e.g. Framer Motion, CSS keyframes), and component structure. - Understand how
HeartCollage.tsxis styled and animated.
- Review
-
Refactor Component:
- Remove all text content from
HeartCollage.tsx. - Modularize for reuse in the target Next.js setup.
- Replace hardcoded image paths with dynamic imports from
public/heart.
- Remove all text content from
-
UI/UX Adaptation:
- Match the Hero Section’s typography, spacing, and color palette (soft neutrals, serif fonts, romantic tone).
- Ensure the collage is centered, responsive, and visually balanced.
- Adjust image size and padding to harmonize with the Hero layout.
- Apply subtle animation (e.g. fade-in, scale on hover) that complements existing transitions.
-
Hero Section Implementation:
- In
client/pages/index.tsx, insert the refactoredHeartCollagecomponent between the two narrative lines. - Ensure layout consistency and performance optimization.
- Use semantic HTML and accessible markup.
- In
-
Validation:
- Test across screen sizes and browsers.
- Confirm animation triggers and image loading behavior.
- Ensure SEO and accessibility best practices are followed.
Reference:
- Use Next.js Docs for routing, public asset handling, and animation best practices.
- Align with the visual and emotional tone of Incia & Arvin’s Wedding Site.