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

[MRG] Add basic news header to the HTML templates #881

Merged
merged 4 commits into from
Jun 18, 2019

Conversation

betatim
Copy link
Member

@betatim betatim commented Jun 17, 2019

This PR adds the ability to have a basic "news" banner at the top of all pages. You can set the HTML to be displayed inside the banner via a config option.

Closes #877

When the message is not an empty string a banner with grey background (like the form) will appear at the top of each page (landing, loading, about, error, etc).

Screenshot_2019-06-17 Binder

@betatim betatim requested a review from choldgraf June 17, 2019 18:18
Copy link
Member

@choldgraf choldgraf left a comment

Choose a reason for hiding this comment

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

This looks good to me, and I think is quite helpful!

Two quick nits on the "id" name, but I can go either way on those.

One thought: should we by default make the banner more noticeable? I'm assuming that most folks will use the banner sparingly, and will want people to notice whatever is inside. So maybe a font-size: 2em and aligning in the center instead of the left side by default?

Either way, I don't think those points should block this one from being merged, I'll plan to merge it in tomorrow AM if nobody objects

@betatim
Copy link
Member Author

betatim commented Jun 17, 2019

Renamed the ID used.

I was wondering about bolder/bigger font or colours and though that because the banner can't be dismissed keeping it somewhat "not in your face" would be good. Speculating that the fact that it normally isn't there is enough to make people notice it.

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

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

Other than a documentation rephrasing, this LGTM!

Copy link
Member

@consideRatio consideRatio left a comment

Choose a reason for hiding this comment

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

LGTM!

@betatim
Copy link
Member Author

betatim commented Jun 18, 2019

As two people gave a positive review I am merging it now instead of waiting till California wakes up. This way we can start using it for the user survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Banner to display information/messages to users
3 participants