|
| 1 | +# Frontend Mentor - Intro component with sign up form solution |
| 2 | + |
| 3 | +This is a solution to the [Intro component with sign up form challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/intro-component-with-signup-form-5cf91bd49edda32581d28fd1). Frontend Mentor challenges help you improve your coding skills by building realistic projects. |
| 4 | + |
| 5 | +## Table of contents |
| 6 | + |
| 7 | +- [Overview](#overview) |
| 8 | + - [The challenge](#the-challenge) |
| 9 | + - [Screenshot](#screenshot) |
| 10 | + - [Links](#links) |
| 11 | +- [My process](#my-process) |
| 12 | + - [Built with](#built-with) |
| 13 | + - [What I learned](#what-i-learned) |
| 14 | + - [Useful resources](#useful-resources) |
| 15 | + |
| 16 | +**Note: Delete this note and update the table of contents based on what sections you keep.** |
| 17 | + |
| 18 | +## Overview |
| 19 | + |
| 20 | +### The challenge |
| 21 | + |
| 22 | +Users should be able to: |
| 23 | + |
| 24 | +- View the optimal layout for the site depending on their device's screen size (done) |
| 25 | +- See hover states for all interactive elements on the page (done) |
| 26 | +- Receive an error message when the `form` is submitted if: (done) |
| 27 | + - Any `input` field is empty. The message for this error should say _"[Field Name] cannot be empty"_ |
| 28 | + - The email address is not formatted correctly (i.e. a correct email address should have this structure: `name@host.tld`). The message for this error should say _"Looks like this is not an email"_ |
| 29 | + |
| 30 | +### Screenshot |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | +### Links |
| 35 | + |
| 36 | +- Solution URL: [Add solution URL here](https://your-solution-url.com) |
| 37 | +- Live Site URL: [Add live site URL here](https://your-live-site-url.com) |
| 38 | + |
| 39 | +## My process |
| 40 | + |
| 41 | +### Built with |
| 42 | + |
| 43 | +- Semantic HTML5 markup |
| 44 | +- CSS custom properties |
| 45 | +- Flexbox |
| 46 | + |
| 47 | +### What I learned |
| 48 | + |
| 49 | +This challenge was the first where I wrote any of JavaScript, and eventually after one hour of research I also learned how to change `placeholder` text of `input` elements using JS. |
| 50 | + |
| 51 | +Cheers! |
| 52 | + |
| 53 | +### Useful resources |
| 54 | + |
| 55 | +- [Resource 1](https://www.youtube.com/watch?v=bFOuUypjkSM) - This helped me in JavaScript, as I am a total beginner at it.I really liked it because it was simple and I learned how JS actually works. |
| 56 | + |
| 57 | +- [Resource 2](https://stackoverflow.com/questions/42415624/adding-placeholder-to-input-field-by-name) - This helped me in JavaScript, in replacing `placeholder` text when `email` input is empty. |
0 commit comments