diff --git a/public/assets/js/progress-charts.js b/public/assets/js/progress-charts.js index 9751236..a85ec22 100644 --- a/public/assets/js/progress-charts.js +++ b/public/assets/js/progress-charts.js @@ -22,6 +22,8 @@ document.querySelectorAll('.feature-list-wrapper').forEach(progressListElement = enabled: false }; + const isInBrightCard = !!progressListElement.closest('.right.sect'); + new Chart(progressListElement.querySelector('canvas'), { type: 'doughnut', data: { @@ -29,7 +31,7 @@ document.querySelectorAll('.feature-list-wrapper').forEach(progressListElement = datasets: [ { data, - backgroundColor: ['#9D6FF3', '#4C5174'] + backgroundColor: isInBrightCard ? ['white', 'rgba(195, 178, 227, 0.5)'] : ['#9D6FF3', '#4C5174'] } ] }, diff --git a/views/layouts/main.handlebars b/views/layouts/main.handlebars index fdd7c8d..0a75a4f 100644 --- a/views/layouts/main.handlebars +++ b/views/layouts/main.handlebars @@ -35,6 +35,10 @@ - {{{ body }}} +
+ {{{ body }}} +
+ + \ No newline at end of file diff --git a/views/progress.handlebars b/views/progress.handlebars index 8c1632d..7e7fff9 100644 --- a/views/progress.handlebars +++ b/views/progress.handlebars @@ -20,7 +20,4 @@ {{> footer }} - - - - \ No newline at end of file + \ No newline at end of file