Giter VIP home page Giter VIP logo

meet-landing-page's Introduction

Frontend Mentor - Meet landing page solution

This is a solution to the Meet 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

Users should be able to:

  • View the optimal layout for the section depending on their device's screen size

Screenshots

1. Desktop

Meet landing page desktop version

2. Tablet

Meet landing page tablet version

3. Mobile

Meet landing page mobile version

PageSpeed Insights results

Mobile version

PageSpeed insights mobile

Desktop version

PageSpeed insights desktop

Links

My process

Built with

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

Tested with

  • Browsers used for testing: Google Chrome, Firefox, Safari, Brave, Microsoft Edge
  • Devices:
    • (Real) MacBook Pro (15 inch), Samsung Galaxy A33 5G, Samsung Galaxy S20+, iPad Air 2
    • (Virtual) The mobile and tablet devices mentioned under Chrome's dev console

What I learned

  • If there are two <source> with the same definition of media-query, <picture> element will load only one
<picture>
  <source
    srcset="./assets/desktop/image-hero-left.png"
    media="(min-width:80rem)"
  />
  <source
    srcset="./assets/desktop/image-hero-right.png"
    media="(min-width:80rem)"
  />
  <img
    src="./assets/tablet/image-hero.png"
    alt=""
    width="199"
    height="153"
    role="presentation"
  />
</picture>
  • Browsers like Safari handles the rendering of the <picture> element differently than other browsers. Therefore the following CSS definition of .footer-background picture worked in other browsers except Safari:
<div class="footer-background">
  <picture>
    <source
      srcset="./assets/images/desktop/image-footer.jpg"
      media="(min-width: 80rem)"
    />
    <source
      srcset="./assets/images/tablet/image-footer.jpg"
      media="(min-width: 48rem)"
    />
    <img
      src="./assets/images/mobile/image-footer.jpg"
      alt=""
      role="presentation"
    />
  </picture>
</div>
.footer-background {
  height: 26.75rem;
  width: 100%;
  position: absolute;
  bottom: 0;
  z-index: -1;
  background-color: hsl(192, 37%, 48%);
}

.footer-background picture {
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

In order to make it work for all browsers, this was the fix:

.footer-background img {
  mix-blend-mode: soft-light;
  opacity: 0.5;
}

Continued development

  • Investigate the aspect ratio issue. The image at the footer is displaying incorrect aspect ratio

Author

Acknowledgments

  • I express my gratitude towards my mentor - Deborah for the insightful code review session.

meet-landing-page's People

Contributors

rupali317 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.