Student starter code (30% baseline)
index.html- Main HTML pagescript.js- JavaScript logicstyles.css- Styling and layoutpackage.json- Dependenciessetup.sh- Setup scriptREADME.md- Instructions (below)💡 Download the ZIP, extract it, and follow the instructions below to get started!
Create a learning progress dashboard with Bootstrap cards and progress indicators.
By completing this activity, you will:
Time: 20-25 minutes | Difficulty: Medium
Open index.html in your browser to see:
Try this now:
index.html in your browser✅ Bootstrap Setup: All CSS and JS dependencies loaded ✅ Page Layout: Responsive container with centered content ✅ Profile Card: Complete card with image, title, description, and button ✅ Progress Bar 1 (HTML/CSS): Green solid bar at 75% ✅ Progress Bar 2 (JavaScript): Blue striped bar at 45% ✅ Progress Bar 3 (React): Orange animated striped bar at 30% ✅ Each Progress Bar Has: Heading, badge, progress visualization, description ✅ Stacked Progress Bar: Multi-segment bar showing course breakdown (3 colors) ✅ Legend: Explains what each color segment represents ✅ Info Section: Tips and documentation for progress bar usage
Location: After the React progress bar, before the <hr> divider
Success Criteria:
bg-primary (blue), bg-danger (red), bg-secondary (gray)Hints:
bg-primary, bg-secondary, bg-success, bg-danger, bg-warning, bg-infoprogress-bar-stripedprogress-bar-striped and progress-bar-animatedExample Structure:
<div class="mb-4">
<div class="d-flex justify-content-between align-items-center mb-2">
<h5 class="mb-0">Your Skill Name</h5>
<span class="badge badge-primary">XX%</span>
</div>
<div class="progress" style="height: 25px;">
<div class="progress-bar bg-primary" role="progressbar" style="width: XX%">
XX% Complete
</div>
</div>
<small class="text-muted">Description here</small>
</div>
Location: After the existing stacked progress bar's legend
Success Criteria:
bg-success, bg-warning, bg-danger, etc.)Hints:
<div class="progress-bar bg-COLOR"> inside one <div class="progress">Example Context Ideas:
Expected Result: You should see a new multi-colored progress bar below the course progress, with a clear legend explaining each segment.
Basic Structure:
<div class="progress">
<div class="progress-bar" role="progressbar" style="width: 50%">50%</div>
</div>
Color Classes (Semantic):
bg-primary - Blue (default Bootstrap color)bg-success - Green (positive/completed)bg-info - Light blue (informational)bg-warning - Orange (caution/in-progress)bg-danger - Red (error/critical)bg-secondary - Gray (neutral/inactive)Style Variations:
progress-bar bg-COLORprogress-bar-striped for diagonal linesprogress-bar-animated to make stripes move (requires striped)style="height: 25px;" to .progress containerStacked Bars:
Place multiple progress-bar divs inside one progress container:
<div class="progress">
<div class="progress-bar bg-success" style="width: 40%">40%</div>
<div class="progress-bar bg-warning" style="width: 30%">30%</div>
<div class="progress-bar bg-danger" style="width: 30%">30%</div>
</div>
Accessibility Attributes:
role="progressbar" - ARIA role for screen readersaria-valuenow="75" - Current valuearia-valuemin="0" - Minimum valuearia-valuemax="100" - Maximum valueOnce you've completed the required tasks, try these:
style="height: 40px;" for dramatic effectbg-primary, bg-success, bg-info, bg-warning, bg-dangermb-4 (margin-bottom), mt-5 (margin-top)Before submitting, verify:
Activity 14 | W1 Front-end Design & User Experience | 20-25 min