-
Notifications
You must be signed in to change notification settings - Fork 20
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
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e628b47
Desktop CTAs
plin-stytch 53aeb45
Fix responsiveness
plin-stytch 2e981a8
Move window size to useEffect
plin-stytch cd2e1b9
PR comments
plin-stytch 2d33ed4
Change button styling to ghost
plin-stytch e88e206
Fix button bg on initial render
plin-stytch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Desktop CTAs
- Loading branch information
commit e628b477c4376985821235c0a35ce351298477be
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,23 +6,63 @@ import Link from 'next/link'; | |
function NavBar() { | ||
return ( | ||
<div style={styles.container}> | ||
<div style={styles.logoContainer}> | ||
<Link href={'/'}> | ||
<Image alt="Stytch logo" height={30} src={stytchLogo} width={152} /> | ||
</Link> | ||
<div style={styles.leftNav}> | ||
<div style={styles.logoContainer}> | ||
<Link href={'/'}> | ||
<Image alt="Stytch logo" height={30} src={stytchLogo} width={152} /> | ||
</Link> | ||
</div> | ||
<div style={styles.leftLinks}> | ||
<a className="no-underline" href="https://stytch.com" rel="noopener noreferrer" target="_blank"> | ||
Stytch.com | ||
</a> | ||
<a className="no-underline" href="https://stytch.com/docs" rel="noopener noreferrer" target="_blank"> | ||
Documentation | ||
</a> | ||
<a | ||
className="no-underline" | ||
href="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/stytchauth/stytch-nextjs-integration" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
Github | ||
</a> | ||
<a | ||
className="no-underline" | ||
href="https://stytch.com/docs/api/postman" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
> | ||
Postman | ||
</a> | ||
</div> | ||
</div> | ||
|
||
<div style={styles.linkContainer}> | ||
<div style={styles.rightLinks}> | ||
<a className="no-underline" href="https://stytch.com/contact" rel="noopener noreferrer" target="_blank"> | ||
Contact Us | ||
</a> | ||
<a | ||
className="no-underline" | ||
href="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/stytchauth/stytch-nextjs-integration" | ||
style={styles.secondaryButton} | ||
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 | ||
> | ||
View on Github | ||
See pricing | ||
</a> | ||
<a className="no-underline" href="https://stytch.com/docs" rel="noopener noreferrer" target="_blank"> | ||
Stytch Docs | ||
<a | ||
className="no-underline" | ||
style={styles.primaryButton} | ||
href="https://stytch.com/dashboard" | ||
rel="noopener noreferrer" | ||
target="_blank" | ||
onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = '#5C727D')} // slate | ||
onMouseLeave={(e) => (e.currentTarget.style.backgroundColor = '#19303D')} // charcoal | ||
> | ||
Get API keys | ||
</a> | ||
</div> | ||
</div> | ||
|
@@ -33,22 +73,44 @@ const styles: Record<string, React.CSSProperties> = { | |
container: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
backgroundColor: '#c7f1ff', | ||
backgroundColor: 'white', | ||
top: 0, | ||
justifyContent: 'space-between', | ||
padding: '16px 16px', | ||
}, | ||
leftNav: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
}, | ||
logoContainer: { | ||
display: 'flex', | ||
alignItems: 'center', | ||
paddingRight: '32px', | ||
}, | ||
logoFont: { | ||
padding: '0px 0px 10px 20px', | ||
fontSize: '30px', | ||
}, | ||
linkContainer: { | ||
leftLinks: { | ||
display: 'flex', | ||
gap: '16px', | ||
}, | ||
rightLinks: { | ||
display: 'flex', | ||
gap: '16px', | ||
alignItems: 'center', | ||
}, | ||
primaryButton: { | ||
backgroundColor: '#19303D', // charcoal | ||
color: 'white', | ||
padding: '8px 22px', | ||
borderRadius: '3px', | ||
}, | ||
secondaryButton: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like in mocks this should be a ghost button There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Was a text button. Not sure why I didn't style this one after I did the other two 😂 |
||
backgroundColor: '#E5E8EB', // fog | ||
color: '#19303D', // charcoal | ||
padding: '8px 22px', | ||
borderRadius: '3px', | ||
}, | ||
link: { | ||
fontSize: '20px', | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nit: I would do cursor: pointer for this