This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Web/navbar hide #41
Merged
Merged
Web/navbar hide #41
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
22303c8
Redesign navbar css, update logo
bobheadxi 58d4ba5
Simplify navbar logic further
bobheadxi 7db28cc
Use bold font for links
bobheadxi 3c1fd03
Animate navbar based on scroll
bobheadxi 91164a8
Update demo for scroll animation
bobheadxi e6e6a3b
Remove redundant leading 0
bobheadxi b11641b
Increase animation time
bobheadxi 4765501
Only show navbar at top or on scrollup - switch between opacity levels
bobheadxi f141789
Remove console statement
bobheadxi e542304
Remove transparent-white style
bobheadxi 6e61284
Update tests for new number of links
bobheadxi a0112fe
Merge branch 'master' of https://github.com/nwhacks/nwhacks2019 into …
bobheadxi f66d3b0
Assign displayType, buttonType directly from props
bobheadxi 898adda
Merge branch 'master' of https://github.com/nwhacks/nwhacks2019 into …
bobheadxi 0e4f69d
Refactor fonts, add documentation
bobheadxi 34b6748
Tweak navbar styles and animations
bobheadxi 2283f6b
Adjust image margin, make NAVBAR_HEIGHT a const
bobheadxi ce1ab1e
Rename links variables
bobheadxi 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
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import React from 'react'; | ||
|
||
const Main = () => (<div>HOME PAGE</div>); | ||
const Main = () => (<div className="pad-nav">HOME PAGE</div>); | ||
|
||
export default Main; |
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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
div#demo | ||
width: 50% | ||
margin-left: 25% | ||
height: 90000000px |
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
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 |
---|---|---|
@@ -1,43 +1,21 @@ | ||
nav | ||
display: flex | ||
z-index: 500 | ||
background: $white | ||
box-shadow: 0px 4px 6px $shadow | ||
height: 64px | ||
position: fixed | ||
width: 100% | ||
transition: background $transition-time-long, shadow $transition-time-long, opacity $transition-time | ||
|
||
> div | ||
display: inline-flex | ||
> div:last-of-type | ||
width: 80% | ||
justify-content: flex-end | ||
> div:first-of-type | ||
width: 20% | ||
justify-content: flex-start | ||
> div > div | ||
display: flex | ||
margin-top: 12px | ||
margin-bottom: 12px | ||
align-items: center | ||
margin-right: 7.5% | ||
> div > div:first-of-type | ||
margin-left: 24px | ||
> div > div:last-of-type | ||
margin-right: 24px | ||
a | ||
display: flex | ||
align-items: center | ||
text-decoration: none | ||
font-family: Apercu Pro | ||
font-size: 18px | ||
color: $primary | ||
a:visited | ||
color: $primary | ||
|
||
a:hover | ||
color: #00D5D5 | ||
img | ||
margin-top: 4px | ||
width: 32px | ||
|
||
.below-nav | ||
padding-top: 64px | ||
&.transparent | ||
background: transparent | ||
|
||
&.hide | ||
opacity: 0 |
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
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
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
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
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
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
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
Oops, something went wrong.
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.
curious, why is this needed?
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.
This keeps the navbar above all other elements, so long as we avoid using z-index elsewhere