Skip to content

Get hands-on practice working with the DOM and event listeners to help users interact with forms, buttons, and other page elements

License

Notifications You must be signed in to change notification settings

RjayBrown/javascript-dom-intro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

project-name

The DOM & User Interactions

Get hands-on practice using forms and buttons with event listeners to add interactivity and improve the user experience

Screenshots

project-screenshot project-screenshot

project-screenshot project-screenshot

project-screenshot project-screenshot

Built With

HTML CSS JavaScript

Getting Started

To complete the challenges and build this project you'll need a basic understanding of JavaScript. You can start by completing the #100Devs JavaScript Basics: Classes 12-14 courses.

You can download the project or fork and run the project locally to get hands-on practice with the core concepts below. Start with reviewing the code and comments for each file in the practice folder.

Core Concepts

  • HTML: Ordered & Unordered Lists
  • CSS: Page Themes & Navigation
  • JavaScript: DOM Elements & Event Listeners
  • Forms: Validating User Inputs

Hands-On Practice

1. Try adding hover styles to the navigation links.

2. Since the navigation menu is too wide for mobile devices, you will need to build a working mobile menu.

3. Build an input field allowing the user to add items to each list. The input should only contain text. If the input is not valid, display an error message to the user.

4. For an extra challenge, try building a button that toggles the page theme from light to dark (as pictured in the screenshots). There is a hint in the comments to point you in the right direction, you'll need to use your resources and searching skills to figure it out!

Build a Mini-Project

Once you complete the courses and challenges you'll have the skills to build a basic landing page featuring a sign-up form offering free trials to your potential customers!!! Have fun, be creative, and think of any product or service you like! You can use any of the Canva designs here for inspiration. Your site can be a single page or multiple pages, but it should have at least a light/dark theme and display a helpful error message if the user's input is not valid. The starter files are in the practice folder.

If you run into trouble, you can reach out in the [🕒 catchup-crew] or [❓code-help] channels in the #100Devs Discord. It's an amazing community space filled with supportive developers happy to answer any questions you may have!

Fork & Run Locally

1. To get started, open this link in a new tab to fork or make a personal copy of this repository

  • NOTE: You may find it easier to keep the same name, but you can change it if you like!

2. Click the code button to open the dropdown and copy the URL (make sure HTTPS is selected).

3. Open the terminal in your editor, type 'git clone' and paste the URL (the command should follow one of the formats below).

 git clone https://github.com/YOUR-GITHUB-USERNAME/javascript-dom-intro
 git clone https://github.com/YOUR-GITHUB-USERNAME/YOUR-REPOSITORY-NAME

4. Run the command (Press Enter)

5. Navigate to the project folder

cd javascript-dom-intro
cd YOUR-REPOSITORY-NAME

Done! You are now able to run the project locally.

Acknowledgments

A big thanks to Leon Noel and the #100Devs community for the project inspiration.

If you found some value here and would like to support, feel free to give the project a ⭐️!

Practice Web Development Basics: More Mini-Projects

License

This project is distributed under the MIT License. Click here for more information.

[back to top]

About

Get hands-on practice working with the DOM and event listeners to help users interact with forms, buttons, and other page elements

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published