KanoComputing / make-art

App to learn programming using a basic CoffeeScript drawing API
GNU General Public License v2.0
47 stars 37 forks source link

Add kano-nav-bar for Pixelhack challenges #349

Closed abridger closed 7 years ago

abridger commented 7 years ago

Adds the revised kano-nav-bar components to Make Art, and allows these to be toggled per challenge, by adding the "display_menu": true flag in lib/challenges/index.json. This toggles the existing menu off in views/partial/header.jade and toggles the kano-nav-bar on in views/partial/kano-nav-bar.jade. Existing parts of the Angular app from the current header are inserted into the slots in the nav-bar to maintain the Log In, Challenge and Playground links, and to display the user avatar and username when logged in.

The kano-nav-bar components are currently being loaded from my personal account, but should be moved to Kano repos if we are happy to go ahead and merge this in.