gbif / gbif-web

Apache License 2.0
6 stars 9 forks source link

GBIF.org menu #421

Open MortenHofft opened 10 months ago

MortenHofft commented 10 months ago

The site menu is build from contentful it is available in graphql as the gbifHome entry. But with a hardcoded id. We should probably search for the contenttype instead and choose first one. Since that will work in different environments without configuring an entry ID.

The nav menu components from shadcn seem like a promising components that will fit our use on laptop. The menu should also include

the current menu also includes login, feedback, system health, translations and search

As for styling I'm not entirely sure. Sticky menus supposedly perform well in the sense that users like them. Sites that sell products convert better when using sticky navigation. It gives a feeling of control. They are a pain to work with I find, because it cause issues with anchors and other sticky navigations (like sticky page nav). And secondly they take up space.

Despite that I tend towards having a sticky site nav. Perhaps less tall on scroll? simplified a fit to take less attention. I'm not sure. Perhaps like on Medium - where it appears when you scroll up. @javiesgm do you have any ideas/wishes and mockups for this?

javiesgm commented 10 months ago

I don't have any recent mockups, but I could prepare some sketches soon. +1 to the appear when scrolling up medium example.