I spend too much time doing this challenge and I would like to get some advice on how I could write my code to improve my productivity. I think it would be great if in my next challenge I use the ITCSS - architecture. Do you have other recommendations ? Or is there something in my codes that I could do better ?
I have to admit, this was a much trickier challenge than I thought! 🤔
I originally tried to layout this site using flexbox, but eventually switched to CSS grid (which I found to be easier).
I also decided not to try out any JS for the form validation but use CSS pseudo-classes and combinators to make the error elements appear when the email input is invalid.
I really wasn't sure about how to make this challenge responsive. 😥 Other than follow the designs for the desktop and mobile layouts of the site (which look nice when the screen is exactly 1440x800 or 375x800) I think there's a lot of blank space on other screen sizes and I wasn't sure if I should allow the images to scale a whole lot (because then they might not look so clear).
Any help or feedback on this would be greatly appreciated! 😌
Très bon travail pour ce projet ! J’ai quelques retours pour améliorer le rendu.
L’affichage sur un écran ultra-wide n’est pas optimal car tu appliques une hauteur de 753px sur ta class .background. Du coup je me retrouve avec un background coupé.
Je t’invite à supprimer cette hauteur et à appliquer à la place ‘min-height:100vh’. Ce qui évitera au passage un scroll sur les plus petits écrans.
Il te restera juste à centrer ta class .main en mettant :
Top : 50%;
Margin: 0 auto;
Transform : translateY(-50%).
Sans oublier de vérifier l’affichage sur mobile :)
Tell me what do you think about this project? Your feedback is much appreciated. Feel free to open up an issue if you find anything wrong. Have a good day.
elements positioned with 'relative (top: 'number'px etccc) or absolute or float' are no longer part of the vertical rhythm and therefore can potentially overlap at resize. that's what I wanted to explain
when you resize your browser, img elements go out of their containers
I had a hard time trying to copy the background in the desktop version of this design. I don't know what size to use so the whole svg image is fit within the screen.