Week 2

Introduction to CSS

CSS Layouts

Responsive CSS

Accessible styling

Practice

Assignment

Back to Track

Week 2 Assignment: Styling the Profile Page

Focus: CSS layouts, responsive design, accessible styling, Flexbox, Grid

Description

Take the profile page you built in Week 1 and transform it into a polished, responsive, accessible interface. You won't write new HTML, because everything you build this week lives in CSS. By the end, your page should work on a phone, a tablet, and a desktop, and pass a basic accessibility audit.

Requirements

CSS Foundation

Layout

Responsive Design

Accessible Styling

Make sure your dark mode text still passes contrast requirements

```css
.dark-mode {  background-color: #1e293b;  color: #f1f5f9;}
```

Polish

DevTools Validation

Open your finished page and verify the following, then take two screenshots:

  1. Open DevTools → device toolbar → set viewport to 375px. Your page should be readable, nothing should overflow, and the layout should be single-column. Save as mobile-screenshot.png
  2. Run the axe DevTools extension on your page. Fix any issues it flags before submitting. Take a screenshot showing zero critical errors. Save as axe-screenshot.png

Deliverables

Hints


Submission

Follow the Assignment submission guide to learn how to submit the assignment


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0

CC BY-NC-SA 4.0 Icons

*https://hackyourfuture.net/*

Found a mistake or have a suggestion? Let us know in the feedback form.