This is a solution to the Typemaster pre-launch landing page challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Mobile-first design.
- Solution URL: Solution
- Live Site URL: Github page
First of all, I've used the mobile-first method. then I've implemented breakpoints for Tablet/Desktop design. Then I created a display grid on the main content and the image gallery.
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
I've learned about <picture> element. And to be honest, I've spend 5hours for finding this best solution for responsive images. I've tried
the srcset on an unique <img>, but I've failed. Then I used this one:
<picture>
<source media="(min-width: 700px) and (max-width: 1000px)" srcset="assets/tablet/image-phone-and-keyboard.jpg">
<source media="(min-width: 1001px)" srcset="assets/desktop/image-phone-and-keyboard.jpg">
<img src="assets/mobile/image-phone-and-keyboard.jpg" alt="keyboard on the table, with a laptop in front of it"/>
</picture>And mix-blend-mode for the orange image. This property, uses the background-color of his parent element to combine for his image.
img {
mix-blend-mode: multiply;
}Moreover, I've learned how to create basic SCSS folder with @use and @forward. And finally, how to create a .md file and how to host my repository.
@forward "mixins";
@forward "variables";
@forward "global";- Frontend Mentor - @Suleeyman
