Frontend Mentor - Easybank landing page solution

This is a solution to the Easybank 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 site depending on their device's screen size
  • See hover states for all interactive elements on the page

Screenshot

Links

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • Deesktop-first workflow

What I learned

I learned how to use the pseudo element selector to position the phone mockup.

.main::before {
    content: "";
    position: absolute;
    right: 0;
    width: 60%;
    height: 120vh;
    background:
        url(./images/image-mockups.png) top -7rem right -10rem no-repeat;
    background-size: 46rem;
}

Author