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 header component #17

Merged
merged 2 commits into from
May 18, 2020
Merged

Add header component #17

merged 2 commits into from
May 18, 2020

Conversation

peteryates
Copy link
Member

Add the header component along with examples.

For now, allow nav to be passed in as a block. The simpler way would be to allow the passing in of a hash with { name => url } but we also need to mark one as being active, so a more involved data structure would be needed.

The corresponding Nunjucks macro does this using an array of hashes, which isn't the nicest of solutions in my opinion.

Screenshot from 2020-05-18 11-26-51

Copy link
Contributor

@rjlynch rjlynch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@peteryates peteryates merged commit a23803b into master May 18, 2020
@peteryates peteryates deleted the header branch May 18, 2020 10:46
@peteryates peteryates mentioned this pull request May 18, 2020
21 tasks
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.

None yet

3 participants