Skip to content

Solar System website, tricky full responsive layout with a tab component!

Notifications You must be signed in to change notification settings

Da-vi-de/Planets-fact-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Planets fact site solution

This is a solution to the Planets fact site 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 app depending on their device's screen size
  • See hover states for all interactive elements on the page
  • View each planet page and toggle between "Overview", "Internal Structure", and "Surface Geology"

Screenshot

Links

My process

Built with

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

What I learned

Working at this project it seemed easy at first glance but i dealt with things worth to mention. The circles, i thought i could set some padding, border radius, width and height but it was hard to make a perfect little round shape so i learned shape-outside and clip-path properties that did a perfect job, i was quite satisfied with the result.

 .circle {
    width: 1.25em;
    height: 1.25em;
    margin-right: 1.5em;
    shape-outside: circle();
    clip-path: circle();
    }

Ok, and now the hardest step: As you have noticed the responsive layout changes depending on the device. Making it full responsive was hard as hell, the header heading move from center to inline along with the navigation; the surface image is overlapped, the tab component does not only move but it changes, completely! So, this project pushed me towards grid technique, (i had a basic and very limited knowledge), i can't deny there was a lot of trouble shooting, but eventually i learned how to virtually visualize the grid in my head, of course this is just the beginning there's much more to learn.

Continued development

I want to get better at code indentation, correct class naming and commenting; i tried to follow some of this css guidelines though i discovered the website nearly at the end of the project. I fixed something but there's room for improvements.

Useful resources

Thanks to Kevin Powell lesson on how to overlap content with grid.

Acknowledgement

Thanks to @emestabillo for solving a problem i dealt with for hours. The svg burger icon changes color when clicked. She suggested to set the opacity at 25% and it works, finally the color matches the design.

Author

About

Solar System website, tricky full responsive layout with a tab component!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published