Skip to content

Add content to new router navigation

Cee Nell requested to merge add-content into main

This takes the router structure set up in Use router (!13) · Merge requests · Water Mission Area / VizLab / trout_and_climate · GitLab (usgs.gov) and completes the "choose your own adventure" navigation. It:

  • uses named nested arrays in content.json to define different routes of navigation
  • each route has a sequence of chapters the uses clicks through in sequence to 'order'
  • after the intro route is completed, the user selects from 3 options for the next route and is taken to the first chapter in the route
  • after all the chapters in the first route have been navigated, the user returns to the chapter with the choices but can only choose from the routes not yet selected. this repeats until all 3 routes have been navigated
  • after the last chapter on the 3rd route the user is taken to the outro
  • there are previous and next navigation buttons on the screen most of the time. it is always possible to go to previous or the outro from any chapter

Merge request reports

Loading