-
Notifications
You must be signed in to change notification settings - Fork 283
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
Fixes : #480 Added Dark mode logo in Hero #486
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@siddharth9300 Can't we do all of it with the fill property, what do you think? |
fill property of svg
@origranot Yes we can ,please check the latest changes. I have made changes and done it with the fill property. |
I checked it, well done! |
@origranot Instead of using fill property I have used filter property. I have committed the changes. We don't need to duplicate svg code we can use img tag. |
@siddharth9300 Hey, can you please run the formatter to fix the prettier issues? |
@origranot Done 👍 |
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.
@siddharth9300 Great job!
I added few comments, what do you think?
apps/frontend/src/routes/index.tsx
Outdated
const logoStyle = { | ||
filter: globalStore.theme === 'light' ? 'invert(0)' : 'invert(1)', | ||
}; |
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.
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.
@siddharth9300 Just move the condition to the <img>
tag below.
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.
@origranot done👍
Fixes : #480 Added Dark mode logo in hero section by creating different logo for dark mode and light mode.
Dark Mode :
Light mode :