I appreciate any helpful feedback
Latest solutions
Latest comments
- P@danmlarsenWhat specific areas of your project would you like help with?@crimson3d
GOOD JOB!
- @roobiwebdevWhat are you most proud of, and what would you do differently next time?
working with the footer section mean the table
What challenges did you encounter, and how did you overcome them?working with table and making it similar to design and i did it by using
- @JokerSent31@crimson3d
Cool
- @praisevictor@crimson3d
Good job.
- @guanjunming@crimson3d
Cool!
- P@AcharaChisomSolomonWhat are you most proud of, and what would you do differently next time?
proud of how I utilized the 'data-' attribute
in CSS =>
#main .daily, #main .weekly, #main .monthly { display: none; } #main[data-theme='daily'] .daily, #main[data-theme='weekly'] .weekly, #main[data-theme='monthly'] .monthly{ display: flex; }
in javascript =>
function changeToTheme(btn) { const btns = [dayBtn, weekBtn, monthBtn]; for (const btn of btns) { btn.classList.remove('active'); } btn.classList.add('active'); main.dataset.theme = btn.id; } dayBtn.addEventListener('click', () => { changeToTheme(dayBtn); }); weekBtn.addEventListener('click', () => { changeToTheme(weekBtn); }); monthBtn.addEventListener('click', () => { changeToTheme(monthBtn); });
in HTML
What challenges did you encounter, and how did you overcome them?${item.timeframes.weekly.current}hrs Last Week - ${item.timeframes.weekly.previous}hrs ${item.timeframes.daily.current}hrs Yesterday - ${item.timeframes.daily.previous}hrs ${item.timeframes.monthly.current}hrs Last Month - ${item.timeframes.monthly.previous}hrs
working with the 'data-' attributes was a little confusing, loads of googling helped
What specific areas of your project would you like help with?None for now. But any feedback is welcome, Thanks!!!!
@crimson3dgood job whit that code!