/fylo-dark-theme-landing-page

A responsive landing page built from a design file . Uses HTML, CSS, and JavaScript.

Primary LanguageCSS

Fylo dark theme landing page solution

This is a solution to the Fylo dark theme 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

Fylo-Mobile View

Fylo-Desktop View

Links

My process

Built with

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

What I learned

This project reinforced the concept of absolute positioning to get the divs to behave as they needed, especially the aside email sign up box. I also learned how to add a class to a section of a svg to be able to access the ``fill` attribute on hover.
Positioning the intro background image was tricky, especially the mobile view where the image stopped short of the bottom of the div. I made use of a gradient to make a seamless transition into the darker background color which needed to run through the rest of the div.

intro {
  background: url(../images/bg-curvy-mobile.svg), linear-gradient(180deg, hsl(
          217,
          28%,
          15%
        ) 55%, hsl(218, 28%, 13%) 65%);
  background-size: 110%;
  background-position: 65% 54%;
  background-repeat: no-repeat;
}

Continued development

I'll be continuing to learn more advanced CSS and JavaScript. I'm also always interested to learn HTML best practices for accessibilty and semantic HTML.

Author