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

[WEB-2139] demo top nav #165

Merged
merged 6 commits into from
Jun 13, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change button styling to ghost
  • Loading branch information
plin-stytch committed Jun 13, 2024
commit 2d33ed4db13f8ccc0d67d1d5c9e5a8eb5dd2fa1d
6 changes: 3 additions & 3 deletions components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function NavBar() {
};
handleWindowResize();
window.addEventListener('resize', handleWindowResize);
// unsubscribe from the event on component unmount
return () => window.removeEventListener('resize', handleWindowResize);
}, []);

Expand Down Expand Up @@ -86,8 +85,8 @@ function NavBar() {
href="https://stytch.com/pricing"
rel="noopener noreferrer"
target="_blank"
onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = '#ADBCC5')} // cement
onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = '#E5E8EB')} // fog
onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = '#E5E8EB')} // fog
onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = 'white')}
>
See pricing
</a>
Expand Down Expand Up @@ -154,6 +153,7 @@ const styles: Record<string, React.CSSProperties> = {
color: '#19303D', // charcoal
padding: '8px 22px',
borderRadius: '3px',
border: '1px solid #19303D', // charcoal
},
tertiaryButton: {
color: '#19303D', // charcoal
Expand Down
Loading