Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive landing page using css flex

@SaeedAbakah

Desktop design screenshot for the Social links profile coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


What are you most proud of, and what would you do differently next time?

My understanding of the use of css flex is getting stronger

What challenges did you encounter, and how did you overcome them?

main challenge is responsiveness. I'm continuing to explore ways to get elements to be responsive without having to use too many media queries

What specific areas of your project would you like help with?

main challenge is responsiveness. I'm continuing to explore ways to get elements to be responsive without having to use too many media queries

Community feedback

P
Sayed Ali 80

@sydalwedaie

Posted

Hello Saeed. Excellent work. Your code is well-organized and easy to follow. I pretty much used the same technique to center the main container.

Here are a couple of suggestions:

  • Consider using CSS variables. I use them to store the design colors. Here's how I use them:
:root {
  --color-green: hsl(75, 94%, 57%);
  --color-grey-700: hsl(0, 0%, 20%);
  --color-grey-800: hsl(0, 0%, 12%);
  --color-grey-900: hsl(0, 0%, 8%);
}


.container {
  background-color: var(--color-grey-900);
}

I know the syntax is weird but it's totally worth it.

  • Would you like to remove the vertical scroll bar? Try setting the .main container's height to 95vh and the attribution container to 5vh. This way your total page height becomes 100vh, instead of the current 100vh+footer-height.

  • I would personally use a p tag for where it says "Front-end developer and avid reader." This line is a block-level element. A span is more useful for situations where you want to style a portion of the paragraph (or maybe just a word) differently than the rest.

  • Consider using Prettier. It's a fantastic plugin available in VS Code. It takes care of formatting your indentations, freeing you to concentrate on writing code. Try this video for a quick setup.

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord