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

refactor: Created a new header-layout file to segregate out header code. #122

Closed
wants to merge 17 commits into from

Conversation

0xmohitsen
Copy link
Contributor

Summary

This PR introduces modular approach by separating header-code in a new 'header-layout' file rather than keeping into a single file (home-page).

Description

This PR isolates the header-related code from the home-page file and moves it into a new header-layout file, along with all imported modules. It then integrates this header-layout as a component within the home-page file.

Images

Include any relevant images or diagrams that can help reviewers visualize the changes, if applicable

Issue(s) Addressed

Enter the issue number of the bug(s) that this PR fixes

Prerequisites

…ntrol, relative with other components content height
…ntrol, relative with other components content height
…ntrol, relative with other components content height
…ntrol, relative with other components content height
Copy link

vercel bot commented Apr 1, 2024

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

Name Status Preview Comments Updated (UTC)
wanderlust ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:28pm
wanderlust-backend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 1, 2024 2:28pm

Copy link
Owner

@krishnaacharyaa krishnaacharyaa left a comment

Choose a reason for hiding this comment

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

Please create new branch and cherry-pick , because it is on top of the previous merged branch.
And can you just keep till the Add post in the header and the rest "Dive .. " part create a HeroComponent

return (
<div
style={{ backgroundImage: `url(${bg})` }}
className="relative -mt-2 h-[460px] bg-cover bg-fixed bg-center"
Copy link
Owner

Choose a reason for hiding this comment

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

Can you kindly refactor this to use bg-[url] kinda format, the tailwind supported one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done everything.

Copy link
Contributor Author

@0xmohitsen 0xmohitsen Apr 2, 2024

Choose a reason for hiding this comment

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

Created a PR with new branch.
PR:- #124

@krishnaacharyaa
Copy link
Owner

Declining as #124 duplicate

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.

Centralised Error Handling
2 participants