Precourse: 6 Projects in 6 Days
What you'll learn: HTML, CSS, JS
“I can build 6 small projects with HTML, CSS, and JavaScript, then bring those foundations together in a final PeakFit gym member dashboard.”
The brief
Gym members often use a dashboard to view important information in one place. In this project you'll build PeakFit, a gym member dashboard using HTML, CSS, and JavaScript. The page prompts the user for their name when it loads and shows a personalised greeting, plus the member's active membership status, personal trainers, and today's fitness classes. This project focuses on structuring pages with HTML, styling with CSS, and adding simple interactivity with JavaScript.
What you'll build
An example only, not a specification, yours can look different. Click to enlarge.
Tools & skills
What you'll learn
- Build a multi-section page with HTML, the skeleton of every website
- Style cards, images, and layout with CSS until it looks like a real product
- Ask for the user's name with prompt() and greet them personally
- Drop live values into sentences with template literals
- Change what is on the page from code with querySelector() and textContent
- What you are building2 min
- Your tool: StackBlitz2 min
- Create your Resume project3 min
- Clear the extra files2 min
- Put your name on the page3 min
- See your site live2 min
- What is HTML?3 min
- How HTML tags work3 min
- The page skeleton (boilerplate)3 min
- Add headings3 min
- Add sections with lines3 min
- Add lists3 min
- How to use code parts3 min
- Paragraphs, bold, and links4 min
- Add your contact details3 min
- Publish your resume3 min
- What you are building2 min
- Set up your Links in Bio project3 min
- Add your name3 min
- Style your first text3 min
- What is CSS?2 min
- How CSS connects to HTML3 min
- Read a CSS rule3 min
- Add your profile photo3 min
- The image tag3 min
- Make the photo a circle3 min
- Add a tagline2 min
- Center everything with Flexbox3 min
- Create a link3 min
- Turn the link into a button4 min
- One font for the whole page3 min
- Add more buttons and publish3 min
- What you are building2 min
- Set up your Simple BMI project3 min
- Build the page3 min
- Two new tags: button and script3 min
- What is JavaScript?3 min
- Variables: storing data3 min
- The console and console.log()3 min
- Functions are recipes2 min
- Ask the user with prompt()3 min
- Collect name, weight, and height3 min
- Calculate the BMI3 min
- Show the result with alert()3 min
- Connect the button to a function4 min
- The anatomy of a function3 min
- Ship your BMI calculator2 min
- What you are building2 min
- Set up your Better BMI project3 min
- The design: a form3 min
- Build the form3 min
- The form and label tags3 min
- Text and number inputs3 min
- Line breaks and styling3 min
- From popups to on-page results3 min
- The DOM: getElementById3 min
- Reading input values3 min
- Update the page with innerHTML3 min
- Template literals3 min
- Round with toFixed()2 min
- Ship your Better BMI2 min
- What you are building2 min
- Set up your project2 min
- Build the quote card3 min
- Style each part by id3 min
- Grab the elements and split a quote3 min
- Arrays: lists of values3 min
- Index: reading a value from an array3 min
- Store a list of quotes3 min
- Math.random() and length3 min
- Math.floor() for a whole index3 min
- Put it all together3 min
- Ship it, and an optional challenge3 min