hzdg / hz-core

HZ's internal library of React Components 🚧
https://hz-core.netlify.com
0 stars 0 forks source link

Create reusable sticky navigation bar #41

Open elainen opened 4 years ago

elainen commented 4 years ago

Is your feature request related to a problem? Please describe.

We have a sticky nav that we have been recreating for a lot our sites that have the same kind of behaviors:

Describe the solution you'd like

Let's turn this into a HZ Core component! Retrieve all the current navs that have the same basic behavior from recent projects and create a functional (not design heavy, but design flexible) nav component.

Describe alternatives you've considered

We have so far just copy pasta'd other components from other projects or we've just built it from scratch all over again.

Additional context

Some recent-ish sites that have this kind of nav: http://2u.com/ https://www.45rockefellerpenthouse.com/ https://open.maryland.gov/ https://organicvalleyingredients.coop/

lettertwo commented 4 years ago

Other examples: https://bcw-global.com/ https://www.rockefellercenter.com/

lettertwo commented 4 years ago

There's also a 'scroll up bar' example on the hzcore useScrollDirection hook: https://hz-core.netlify.com/use-scroll-direction#examples

lettertwo commented 4 years ago

42 could be useful for this