diff --git a/public/charts.js b/public/charts.js index ca36cef..75ab70b 100644 --- a/public/charts.js +++ b/public/charts.js @@ -18,6 +18,10 @@ function loadAllCharts() { Chart.defaults.plugins.legend = { display: false }; + Chart.defaults.plugins.tooltip = { + enabled: false + }; + new Chart(wrapper.querySelector('canvas'), { type: 'doughnut', data: { diff --git a/public/main.css b/public/main.css index 241a487..f4818ad 100644 --- a/public/main.css +++ b/public/main.css @@ -404,7 +404,6 @@ section.team { width: 1.5rem; height: 1.5rem; background: var(--background); - /* border: 1px solid var(--text-secondary); */ color: var(--text); border-radius: 4px; } diff --git a/views/home.handlebars b/views/home.handlebars index 270ab0c..78c4195 100644 --- a/views/home.handlebars +++ b/views/home.handlebars @@ -98,48 +98,7 @@

{{ locale.progress.title }}

-
-
-
- -

-
-
-

Miiverse (Juxt)

-
-
-
-
-
- {{> custom-checkbox checked=true }} - Feature A -
-
- {{> custom-checkbox }} - Feature A -
-
- {{> custom-checkbox checked=true }} - Feature A -
-
- {{> custom-checkbox }} - Feature A -
-
- {{> custom-checkbox checked=true }} - Feature A -
-
- {{> custom-checkbox }} - Feature A -
-
- {{> custom-checkbox }} - Feature A -
-
-
+ {{> progress-list data=featuredFeatureList }}
diff --git a/views/partials/progress-list.handlebars b/views/partials/progress-list.handlebars new file mode 100644 index 0000000..9819912 --- /dev/null +++ b/views/partials/progress-list.handlebars @@ -0,0 +1,20 @@ +
+
+
+

+ +
+
+

{{ data.title }}

+
+
+
+
+ {{#each data.features}} +
+ {{> custom-checkbox checked=checked }} + {{ name }} +
+ {{/each}} +
+
\ No newline at end of file diff --git a/web-server/routers/home.js b/web-server/routers/home.js index 5495db3..2326622 100644 --- a/web-server/routers/home.js +++ b/web-server/routers/home.js @@ -7,6 +7,19 @@ router.get('/', (req, res) => { res.render('home', { layout: 'main', locale: tmpLocale, + featuredFeatureList: { + title: 'Thing', + features: [ + { + name: 'Feature A', + checked: true + }, + { + name: 'Feature B', + checked: false + } + ] + } }); });