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.
- 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
formis submitted if:- Any
inputfield 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"
- Any
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
- HTML5 – Semantic structure
- Vanilla CSS – Flex layout
- BrowserSync - Easy development server
- Mobile-first workflow for better performance on smaller devices
- Accessibility guided by ARIA Authoring Practices Guide (APG).
Install the following:
- Git (latest version)
- Node.js (latest LTS recommended)
- pnpm (latest version)
git clone https://github.com/haquanq-frontendmentor/intro-component-with-sign-up-form.git
cd intro-component-with-sign-up-form
pnpm install
pnpm dev
Deployed to Github Pages via Github Action.
