About

It's a home page for a high-end restaurant. It features a full-screen video with custom controls, image gallery slider made with pure CSS, and a newsletter subscription form made with react-hook-form library.

Tech

  • React
  • Framer Motion
  • React-hook-form
  • Vite
  • build and deployed to Netlify

Design

Design from ui8.net

Live

Live website deployed with Netlify: https://dining-gericht.netlify.app/

Netlify Status

Screenshots

Alt text Alt text

What I learned

How to use the form library react-hook-form to display form errors for client-side form validation and use uncontrolled input. It was also a great opportunity to practice implementing CSS-only slider (image gallery) and get a better feel for using Framer Motion for animations.

Thanks

I have used this great tutorial as the starting point for this project.

Optimization:

Desktop

From

Alt text

to

Alt text

Mobile

From

Alt text

to

Alt text

What helped the most

Resizing images, changing format to .webp, compressing them and lazy loading images under the fold.

What could also help

Preloading the first image.