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

Fixes : #480 Added Dark mode logo in Hero #486

Merged
merged 14 commits into from
Oct 19, 2023
Merged

Fixes : #480 Added Dark mode logo in Hero #486

merged 14 commits into from
Oct 19, 2023

Conversation

siddharth9300
Copy link
Contributor

Fixes : #480 Added Dark mode logo in hero section by creating different logo for dark mode and light mode.

Dark Mode :
image

Light mode :
image

@vercel
Copy link

vercel bot commented Oct 4, 2023

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

Name Status Preview Comments Updated (UTC)
reduced-to ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 6:10pm

@origranot
Copy link
Owner

@siddharth9300 Can't we do all of it with the fill property, what do you think?

fill property of svg
@siddharth9300
Copy link
Contributor Author

siddharth9300 commented Oct 5, 2023

@siddharth9300 Can't we do all of it with the fill property, what do you think?

@origranot Yes we can ,please check the latest changes. I have made changes and done it with the fill property.

@origranot
Copy link
Owner

origranot commented Oct 7, 2023

@siddharth9300 Can't we do all of it with the fill property, what do you think?

@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!
Can't we use the same svg logo and just pass the fill property? (instead of duplicate the svg code)

@siddharth9300
Copy link
Contributor Author

siddharth9300 commented Oct 8, 2023

@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.

@origranot
Copy link
Owner

@siddharth9300 Hey, can you please run the formatter to fix the prettier issues?

@siddharth9300
Copy link
Contributor Author

@origranot Done 👍

Copy link
Owner

@origranot origranot left a 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?

Comment on lines 54 to 56
const logoStyle = {
filter: globalStore.theme === 'light' ? 'invert(0)' : 'invert(1)',
};
Copy link
Owner

Choose a reason for hiding this comment

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

I think this logic should move to the tag.

Copy link
Owner

@origranot origranot Oct 17, 2023

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@origranot done👍

apps/frontend/src/routes/index.tsx Outdated Show resolved Hide resolved
@origranot origranot merged commit 9970443 into origranot:master Oct 19, 2023
3 checks passed
@siddharth9300 siddharth9300 deleted the darkMode-logo branch October 20, 2023 15:14
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.

[BUG]:Font color of logo in navbar is not matched with the logo in hero in Dark Mode
2 participants