Skip to content

Suleeyman/FM-1-Keyboard-Landing-Page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Typemaster pre-launch landing page solution

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.

Table of contents

Overview

The challenge

Mobile-first design.

Screenshot

Links

My process

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.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • CSS Grid
  • Mobile-first workflow

What I learned

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";

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors