Skip to content

Conversation

@arshxb
Copy link
Contributor

@arshxb arshxb commented Feb 1, 2025

Added a toggle feature to show or hide the Work/Projects preview sections on the homepage without affecting the main Work page functionality.

This improves flexibility in managing homepage content while keeping the main portfolio intact. There was a discussion about removing these sections, but I couldn't find the issue number. A toggle seemed like a better solution than modifying or removing the code entirely as suggested there.

Changes made:

  1. Added new showWorkPreviewOnHome flag to routes configuration
  2. Updated homepage to conditionally render Projects components based on this flag
  3. Projects preview sections will only show on homepage when showWorkPreviewOnHome is set to true
  4. the /work route and page remain unaffected by this change

@vercel
Copy link

vercel bot commented Feb 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
magic-portfolio-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 1, 2025 8:30pm

@lorant-one lorant-one closed this Sep 28, 2025
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