This is a solution to the Designo agency website challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for each page depending on their device's screen size
- See hover states for all interactive elements throughout the site
- Receive an error message when the contact form is submitted if:
- The
Name
,Email Address
orYour Message
fields are empty should show "Can't be empty" - The
Email Address
is not formatted correctly should show "Please use a valid email address"
- The
- Bonus: View actual locations on the locations page maps (we recommend Leaflet JS for this)
- Solution URL: Github repo
- Live Site URL: Live Demo
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- React - JS library
- Next.js - React framework
- Tailwind - For styles
The following code snippet allows you to style the autocompleted inputs.
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-input:-webkit-autofill:active {
-webkit-background-clip: text;
-webkit-text-fill-color: var(--color-white);
caret-color: var(--color-white);
}
- How to use react-leaflet in Nextjs with TypeScript (Surviving it) - This helped me add the maps for the locations page.
- Styling active links in next.js is tricker than you think - Style active links in server components.
- Frontend Mentor - @luAr26