#77 coreos-download: add tab view for coreos download page
Merged by bcotton. Opened by abai.
fedora-web/ abai/websites coreos-download  into  master

Download 77.patch

The current view for coreos download page requires users scrolling a
lot in order to view cloud operators download because of the long list of
cloud launchable instances. To improve this, tab view is added.

Related to: https://pagure.io/fedora-websites/issue/964
Signed-off-by: Allen Bai abai@redhat.com

cc @rfairley @jlebon @dustymabe
Could you take a quick look to see if this looks reasonable? Thanks :smile:

LGTM. I'll merge if we don't get any objections.

Metadata Update from @bcotton:
- Request assigned

Metadata Update from @bcotton:
- Pull-request tagged with: content, design

Minor: the three tab inner text strings e.g. "For Cloud Operators" could be made constants (perhaps cloudTabInnerText, defined globally for this file) - and refer to the constant elsewhere (e.g. on https://pagure.io/fork/abai/fedora-web/websites/blob/826f0773a947171fe2d1b32483f6d2724c03c673/f/sites/static/js/coreos-download.js#_253). Not a major issue as it'd be clear the tab doesn't work if one of the inner text string definitions got changed without changing the place it's used - but thinking it'd be cleaner to define it once, if the two definitions are expected to match.

One minor comment, otherwise LGTM! Ran it locally and the page looks good.

Screenshots for reference:
https://rfairley.fedorapeople.org/Screenshot_2019-12-17%20Get%20Fedora.png
https://rfairley.fedorapeople.org/Screenshot_2019-12-17%20Get%20Fedora(1).png
https://rfairley.fedorapeople.org/Screenshot_2019-12-17%20Get%20Fedora(2).png

1 new commit added

  • coreos-download: use global constant for innertext of tabs

@rfairley Thanks for the review! Updated with global constants for tab inner text.

the screenshots from @rfairley LGTM!

Pull-Request has been merged by bcotton

Metadata