V-Squared / V-Squared.github.io

Initiative for Modular and Upgradable Mini and All-In-One PC. Standards — Know How — Blueprints — Trailblazer Products
http://v-squared.github.io/
Other
2 stars 1 forks source link

Navigation Bar System v2 #42

Closed VillageHubertChen closed 8 years ago

VillageHubertChen commented 8 years ago
VillageHubertChen commented 8 years ago

Features Navigation Bar

Table of Contents

Introduction

Features can be adjusted to fit a Template

If we find a Template we like very much, we should try to adjust features to fit template, so that we minimize customization of the Template Navigation Bar.

Modern Look

We pick the look from one of the Heroes → Heroes Navigation Bar

Based on a Google Material Design Template

This hopefully saves us lots of time in development, testing and debugging → Google Design Site build using Google Material Design

Navigation

2 Level Navigation with two Nav Bars

Simple Way of 4 Level Navigation

Luxury Way of 4 Level Navigation

On Big Screen

On Small Screen

Library Metaphor for Navigation

Library Metaphor Explained

Finding Articles of your interest on the V² Site is the same problem you are faced with when entering a library. You already know how to do that in a Library. So we modeled the V²Site Navigation after the Library Metaphor.

For more information → Library Metaphor for Navigation

Tooltips

We are using tooltips for two distinct functions:

  1. Give preview of what is the content behind the Menu Button in Level 1 & 2 (We already implemented it, check the working V²Site)
  2. Teach the Library Metaphor → #44►Tooltips teach Library Metaphor

Library Metaphor Tooltips

Each Navigation Bar is equipped with in Info Icon that invokes a tooltip. For more information → Tooltips teach Library Metaphor

Integration with Jumbotron

Considerations for Jekyll and Repositories

Behaviors

Sticky for 2nd level Nav Bar

Hiding for 2nd level Nav Bar (Bonus)

Toggle Menu Button

Mobile Support

Layout of Nav Bars

Hero

Chapter Nav Bar

Jumbotron

Section Nav Bar

Mobile Support

Two Nav Systems

The Navigation is made with two Nav Bar Systems

  1. Chapter & Section Nav Bars
  2. Sub Section Nav Bar

On Small Screen

Terms

Level Metaphor Nav Bar Nav Bar Placement
0 Shelf Shelf Bar Drop Down Menu from top
1 Board Board Bar Horizontal Navigation Bar above Jumbotron. Boards are color coded
2 Book Book Bar Horizontal Navigation Bar under Jumbotron
3 Article Collection Article Bar Vertical Navigation Bar left to body
4 Article Article Bar Vertical Navigation Bar left to body
5 ToC ToC Bar Vertical Navigation Bar right to body

For more Terms regarding the Library Metaphor that we use for the V² Site Nav Bar System check out → Library Metaphor

Reference

VillageHubertChen commented 8 years ago

Heroes Navigation Bar

VillageHubertChen commented 8 years ago

Coding Complex Nav Bar System in Jekyll

Table of Contents

Features of V² Site Nav Bar from Coding Perspective

Technologies

How it Works

  1. Each Nav-Bar is described in a YML file
  2. At Jekyll compile time the YML file of each Nav Bar is read and the corresponding Nav bar is generated as HTML file.
    • Note: The CSS and JS to bring the Nav Bar to live has been written by hand beforehand.
  3. Pushing the gh-pages branch publishes the Jekyll Site of that repository
    • Note: You can use the GitHub Web Interface to manipulate markdown and yml pages and once you commit it will trigger automatically a Jekyll compile process on the GitHub server. Pretty cool!
  4. When adding a new page, you also need to add it into the corresponding YML file.

Coding

References

VillageHubertChen commented 8 years ago

YAML for Book-Bar

File Name and Location

Content of book-bar.yml

- menu: Target
  url: /target/
- menu: Road Map
  url: /road-map/
  subitems:
    - menu: Strategy
      url: /road-map/strategy/
    - menu: Campaign 1
      url: /road-map/campaign01/
    - menu: Campaign 2
      url: /road-map/campaign02/
    - menu: Campaign 3
      url: /road-map/campaign03/
- menu: Dashboard
  url: /dashboard/
- menu: Contributing
  url: /contributing/
- menu: System
  url: /system/
  subitems:
    - menu: Agile Philosophy
      url: /system/agile-philosophy/
    - menu: Agile Workflow
      url: /system/agile-workflow/
    - menu: Reference
      url: /system/plan-reference/
    - menu: Problems
      url: /system/problems/
    - menu: Sprint Workflow
      url: /system/sprint-workflow/
VillageHubertChen commented 8 years ago

All done. Closed.