Toast Notifications

Design and implement a responsive login component with fields for username and password, and basic form validation.

3-5 hours

About This Project


Toast notifications are small messages that appear on the surface of a web page’s main content. They are used to inform the user of the system’s processes, alerts, or actions in an unobtrusive manner. One example is confirming that a user-triggered action was successful.

Typically, toast notifications disappear automatically after a few seconds, but users also have the option to dismiss them.

Your assignment is to build a custom toast notification system using HTML, CSS, and JavaScript. This project aims to help you practice DOM manipulation, event handling, and dynamic CSS styling.

It’s possible to complete this project entirely using HTML, CSS, and vanilla JavaScript. If you wish, you may use a library or framework like React, Vue, or Angular if you want to practice any of those.

Try to make your finished product look as much like the provided designs as possible.

Aim for professional-grade code in your solution. Refactor your code so it's efficient and adheres to best practices. Practice test-driven development, write DRY code, choose clear variable names, ensure all comments are explicitly needed and are clear.

User Stories

Ensure your code delivers the following functionality to your users:

  1. Show Toast: When a user clicks the "Show Toast" button, a toast notification should appear at the top right of the page and then disappear after 3 seconds.
  2. Customizable Contents: To make the Toast Notification reusable for different contexts, the toast should accept an optional title field and display title text, as shown in the mockups.

Stretch Goals

To go above and beyond, consider adding one or more of the following features:

  • Task Modification: Enable users to edit task details directly from the detail page, including priority, due date, and assignees.
  • Collaboration Enhancement: Add a comment section where team members can discuss the task, update progress, or ask questions.
  • Activity Tracking: Incorporate a history or activity log showing changes made to the task over time.

Let's Start Building!

This project and many others like it are available with a Curricular account. Get started today.

Sign Up

Already have an account? Sign In


  • Detailed User Stories
  • Figma Design File
  • Image files of the target layout
  • Starter Code and README file

Skills Practiced

Core HTML, CSS, and JavaScript

  • Semantic HTML and Document Structure
  • CSS Styling
  • Responsive Design
  • DOM Manipulation
  • Event Handling
  • JavaScript Timing

Code Quality

  • Clean Code
  • DRY Principle
  • Accessibility


Why should I build this project instead of one from scratch?

In a professional context, you're rarely starting from scratch. Curricular Projects are designed to give you a constrained real world problem so you can focus on practicing the essential skills you'll use as a professional developer, and to surface specific areas to continue studying.

Can I get help if I'm stuck on a project?

Our projects are designed to be a real world assessment of your skills, like the take home assignment during a job interview. Getting yourself unstuck is part of the skills measured. As a result, we offer very little help and direction.

However, if you encounter issues with the setup, or if you find something isn't working right that should be working, you can contact us at and we'll help you out.

Do you provide official solutions to projects?

We do not provide official solutions to projects. There are many ways to solve each of our projects. Coding is a journey, so our goal isn't for you to get the "right answer." Instead, our projects are about you flexing your skills to arrive at a solution, practicing talking about your code, and giving you helpful feedback on ways to improve.

Can I get feedback on my work?

Currently, we only provide feedback on capstone projects, through our Code Review service.

The Code Review is a premium service available as an add-on purchase, combining an in-depth review of your code and a practice interview. If your project passes the review and meets all specifications, you'll receive a certificate of completion.

Where can I ask a question that isn't answered here?

Email us at or chat with us.

It's Time to Level Up

Start Building