mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-11 16:00:12 -04:00
feat(client): module based progress (#63966)
This commit is contained in:
@@ -117,6 +117,7 @@ button .block-header-button-text {
|
||||
|
||||
.super-block-accordion .module-steps {
|
||||
font-size: 0.75em;
|
||||
color: var(--quaternary-color);
|
||||
}
|
||||
|
||||
.super-block-accordion .chapter-button:hover,
|
||||
|
||||
@@ -189,6 +189,16 @@ const Module = ({
|
||||
</span>
|
||||
{t(`intro:${superBlock}.modules.${dashedName}`)}
|
||||
</div>
|
||||
<div className='module-button-right'>
|
||||
{!comingSoon && !!totalSteps && (
|
||||
<span className='module-steps'>
|
||||
{t('learn.steps-completed', {
|
||||
totalSteps,
|
||||
completedSteps
|
||||
})}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</Disclosure.Button>
|
||||
<Disclosure.Panel as='ul' className='module-panel'>
|
||||
{comingSoon && (
|
||||
|
||||
Reference in New Issue
Block a user