conversionxl / aybolit

Lightweight web components library built with LitElement.
https://conversionxl.github.io/aybolit/
MIT License
7 stars 8 forks source link

Sidebar course progress widget #16

Open lkraav opened 5 years ago

lkraav commented 5 years ago

Analysis

Structure: (minidegree > track[foldable] >)? course[foldable] (> module)? > lesson

Live examples

Notes

Modules -> start with solving via mini-headings? (non-collapsible)

Track containers need to hold "track time" element, like Total Time: ~40 hrs (edited) 75fcff10-9dcf-418c-ba26-a96e8e2c3bc0

Iteration v1

/certificate/ url displays long minidegree sidebar widget

/course/, /lesson/ display shorter sidebar widget

lkraav commented 5 years ago

Sidebar + widget component markup proposal

<cxl-institute-layout>
  ...
  <div part="sidebar">
    <cxl-sidebar-widget>
      <h3><slot name="title"></slot></h3>
      <slot></slot>
    </cxl-sidebar-widget>
    <cxl-sidebar-widget>
      ...
    </cxl-sidebar-widget>
    ...
  </div>
</cxl-institute-layout>

I'm not 100% <vaadin-vertical-layout> is necessary?

@chanar