Skip to content

sweenejp/sunnyside-agency-landing-page

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Sunnyside agency landing page solution

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

My process

Built with

  • Sass
  • BEM
  • CSS grid
  • CSS flexbox
  • Media querries
  • Mobile first

What I learned

If you need to change the color of a tags, don't set the color of it's parent element. This will mess things up with the :visited pseudoclass. Just make sure to explicitly set the color property of an a tag.

Happy with this fancy underline mixin!

@mixin fancy-underline($underline-color) {
  & {
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;

    &::before {
      content: "";
      height: 25%;
      border-radius: 50px;
      background-color: rgba($underline-color, 0.4);
      left: -5%;
      right: 0;
      width: 110%;
      bottom: 12%;
      position: absolute;
      z-index: -1;
      @include easeOut;
    }

    &:hover::before {
      background-color: rgba($underline-color, 1);
    }
  }
}

Useful resources

Author

Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.

About

a frontendmentor.io challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages