Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zun-liang/fem-intro-component-with-signup-form

Frontend Mentor Challenge Solution Intro Component with Sign-up Form
https://github.com/zun-liang/fem-intro-component-with-signup-form

css html javascript

Last synced: 9 days ago
JSON representation

Frontend Mentor Challenge Solution Intro Component with Sign-up Form

Awesome Lists containing this project

README

        

# Frontend Mentor - Intro component with sign up form solution

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.

## Table of contents

- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Continued development](#continued-development)
- [Author](#author)

## Overview

### The challenge

Users should be able to:

- View the optimal layout for the site depending on their device's screen size
- See hover states for all interactive elements on the page
- Receive an error message when the `form` is submitted if:
- Any `input` field is empty. The message for this error should say _"[Field Name] cannot be empty"_
- The email address is not formatted correctly (i.e. a correct email address should have this structure: `[email protected]`). The message for this error should say _"Looks like this is not an email"_

### Screenshot

- Mobile screenshot 1: [here](./screenshots/screenshot-mobile-1.png)
- Mobile screenshot 2: [here](./screenshots/screenshot-mobile-2.png)
- Desktop screenshot 1: [here](./screenshots/screenshot-desktop-1.png)
- Desktop screenshot 2: [here](./screenshots/screenshot-desktop-2.png)
- Desktop screenshot 3: [here](./screenshots/screenshot-desktop-3.png)

### Links

- Solution URL: [here](https://www.frontendmentor.io/solutions/intro-component-with-signup-form-using-html-css-and-js-C-LQg2R3Kn)
- Live Site URL: [here](https://zun-liang.github.io/fem-intro-component-with-signup-form/)

## My process

### Built with

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- Javascript

### What I learned

- how to style chrome autofill: -webkit-autofill
- input focus
- how to style placeholder (Firefox default opacity is 0.45)
- style.setProperty
- input outline

### Continued development

- React
- DOM

## Author

- Website - [Zun Liang](https://zunldev.com/)
- GitHub - [@zun-liang](https://github.com/zun-liang)
- Frontend Mentor - [@zun-liang](https://www.frontendmentor.io/profile/zun-liang)
- freeCodeCamp - [@zun-liang](https://www.freecodecamp.org/zun-liang)