-
Notifications
You must be signed in to change notification settings - Fork 157
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
web, banner: Add dynamic messages for mobile version #369
base: master
Are you sure you want to change the base?
Conversation
Not a fan of the design. Two proposals. First one takes inspiration from your mobile but reduces font size and uses bold. Second one reuses the desktop banner and moves it around. On the second I also reworked the nav links for them to have fluid padding inbetween them. That way they only take a single line, avoiding spending vertical space for nothing. I'll submit that in a separate PR. I did it in devtools but I could recreate them properly if that works out. |
304b3e8
to
6fd3672
Compare
@tleb Updated |
6fd3672
to
e1a12ba
Compare
I know this isn't related to you changes, but while we are at it:
Basically a complete overhaul of the banners JS and CSS. I am pretty sure we can drop 100 lines of CSS and 50 lines of JS by doing so. I was initially reviewing your changes and then noticed all of those oddities.
function addBannerContents(el, msg) {
el.querySelector('a').href = msg.link
el.querySelector('.title').textContent = msg.title
el.querySelector('.subtitle').innerHTML = msg.title.replace('\n', '<br>')
if (msg.action) {
el.querySelector('.action').textContent = msg.action
el.querySelector('.action').classList.add('hidden')
} else {
el.querySelector('.action').classList.remove('hidden')
}
} |
d00d9c1
to
15df115
Compare
15df115
to
19a71db
Compare
@tleb Done |
New design:
