-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Conversation
… with footer-layout
…to avoid the repeatation
…to avoid the repeatation
…to avoid the repeatation
…ains relative to component's content height
…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
…ext with top blogs
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this 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" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done everything.
There was a problem hiding this comment.
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
Declining as #124 duplicate |
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