kevreth / SpoonFeeder

GNU General Public License v3.0
0 stars 0 forks source link

Course Selector #155

Closed kevreth closed 1 year ago

kevreth commented 1 year ago

Add the ability for users to select from available courses: 1) Create a list of courses from the directory names under src/courses containing a course.yml file 2) Add an option "Courses" to the hamburger dropdown 3) When "Courses" is pressed, a pop-up appears containing a scrolling single selection list with an OK button at the bottom that does not scroll. 4) The selected course is saved to localStorage with the key "course".

kevreth commented 1 year ago

The course listing can be obtained this way:

import { getCourseListing } from './utilities';
const courses = getCourseListing();

It will return a sorted array of strings of the course titles.