Skip to content

Source code of the Frontend Mentor challenge "Sunnyside Agency Landing Page"

Notifications You must be signed in to change notification settings

oyedejioyewole/sunnyside-landing-page

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

Desktop Preview

Links

My process

Built with

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install --shamefully-hoist

Starting the development server

Start the development server on http://localhost:3000

npm run dev

What I learned

  • I learnt how to use the before modifier to create the custom links

This is the basic style needed for this to work

.btn-yellow::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -0.3rem;
    right: -0.3rem;
    height: 0.5rem;
    background-color: hsl(51, 100%, 49%);
    border-radius: 10rem;
    opacity: 0.4;
    transition: 0.4s ease-in-out;
    z-index: -1;
}
  • I also learnt is how to create shapes using the pseudo-attributes like before and after

Continued development

  • Discovering more uses for before and after pseudo-modifiers

Useful resources

Author