Skip to content

haquanq-frontendmentor/intro-component-with-sign-up-form

Repository files navigation

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. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Solution post Live demo

Table of Contents

🌅 Project Overview

Challenge Requirements

  • 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: name@host.tld). The message for this error should say "Looks like this is not an email"

Status

Features

  • Text field component
    • Validate basic specifications (required, length) and can be provided with custom validators
    • Show every error when users blur input (from basic specifications to custom validators)
    • Aggregate all invalid fields and notify screen readers
    • Show/hide passowrd

Accessibility

  • Responsive accross different screen sizes
  • Interactive elements have clear focus indicator

🌠 Tech Stack and Approach

Built with

  • HTML5 – Semantic structure
  • Vanilla CSS – Flex layout
  • BrowserSync - Easy development server

Approach

🍃 Local Development

Prerequisites

Install the following:

  • Git (latest version)
  • Node.js (latest LTS recommended)
  • pnpm (latest version)

Setup

git clone https://github.com/haquanq-frontendmentor/intro-component-with-sign-up-form.git
cd intro-component-with-sign-up-form
pnpm install

Start Development Server

pnpm dev

🍁 Deployment

Deployed to Github Pages via Github Action.