Closed alanmoo closed 6 years ago
Here's some background, based on design in https://github.com/mozilla/foundation.mozilla.org/issues/1029
1) When I user lands on a subpage they have no way to orientate themselves (i.e. on a site about Aadhaar, Global Sprint, or Web Lit), particularly on mobile. 2) On mobile, the subpage title is doubled up.
1) Add a persistent "mini-site" title to every page. 2) On mobile, hide subpage title.
@gvn let me know if you have any questions!
So nice to see this! https://foundation.mofostaging.net/opportunity/web-literacy/
We will have to updated all the CMS pages on Production when this gets pushed. @alanmoo @gvn can you teach the designers what we will need to do?
opportunity/{main-page-url}
, so they will act as mini-site entry pointopportunity/{parent-page}/{sub-page-name}
This has been promoted to production and the database updated appropriately.
There are a couple differences between the design and the build that hamper usability.
Should we open a new ticket @kristinashu with a checklist to update? Related to this, we should look at how we are using this subnav on the fellowship pages, and decide on how it is similar / different. Is it above or below the header?
This is getting a little long, so if you want to open a QA ticket that'd be rad!
I have opened a new ticket https://github.com/mozilla/foundation.mozilla.org/issues/1090. I will add comps and context to that ticket then assign to engineering.
In order to make it clearer where a user is on the site, we want to do two things:
1.) On opportunity and campaign pages (if a page level is > 2) the parent's title should be visible at the top of the main content (as a heading). Below it, the page heading should appear (larger). 1b.) On mobile, the page heading is hidden because the navigation has it. 2.) In the side navigation menu, we should remove parent pages, so that only siblings of the current page show up. (This is accomplished by changing some logic in lines 4-6 of
side-menu-items.html
)With this change, we are going to need to copy the content of existing top-level opportunity and campaign pages into their own mini-site:
opportunity/{main-page-url}
, so they will act as mini-site entry pointopportunity/{parent-page}/{sub-page-name}