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

Add github and docs links to Explorer nav #180

Merged
merged 4 commits into from
Dec 13, 2024
Merged

Conversation

charliemcgrady
Copy link
Collaborator

@charliemcgrady charliemcgrady commented Dec 13, 2024

Overview

Updating Explorer site to add links as requested in https://github.com/OvertureMaps/tf-developer-advocacy/issues/223. Styling has been kept consistent with navbar at docs.overturemaps.org.

Changes:

  • Add github link to navbar
  • Add docs link to navbar
  • Add one sentence intro to tool in startup box
  • Minor CSS improvements to startup box and navigator

Link to changes: https://explore.overturemaps.org/nav-improvements

Example screenshot of startup box and nav links after this change:
Screenshot 2024-12-12 at 4 11 01 PM

@charliemcgrady charliemcgrady marked this pull request as ready for review December 13, 2024 01:25
Copy link
Collaborator

@Bonkles Bonkles left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Veni, Vidi, Misi

Just one astonishingly minor change requested. Other than that, ship when ready!


export default function Header({ zoom, mode, setMode, setZoom }) {
return (
<nav aria-label="Main" className="navbar navbar--fixed-top">
<div className="navbar__inner">
<div className="navbar__items">
<OvertureWordmark />
<a
aria-current="page"
class="navbar__item navbar__link"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh man, this is the most minor issue but class should be className. The react code still renders with the proper classes applied, but this quiets a warning from react.

Suggested change
class="navbar__item navbar__link"
className="navbar__item navbar__link"

@charliemcgrady charliemcgrady merged commit f74e776 into main Dec 13, 2024
2 checks passed
@charliemcgrady charliemcgrady deleted the nav-improvements branch December 13, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants