Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a toggle for the Work Preview on Homepage #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

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

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.

1 participant