Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 6 months ago

Social link profile

P
Igor Bueno•70
@WhatsIgorDoing
A solution to the Social links profile challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


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

This project was a significant opportunity to consolidate foundational skills and delve deeper into advanced CSS techniques, particularly around layout and responsiveness.

  • Robust Centering with CSS Grid (place-items: center): I gained a deeper understanding of using display: grid combined with place-items: center on the body (or a main container) for a highly effective and concise method of centering elements both horizontally and vertically on the screen. This is a powerful and modern layout pattern.

  • Strategic Layout with <main> as a Container: I refined my approach to layout by shifting the primary centering and dimensioning properties from the body to the <main> element. This demonstrated the importance of separating global body styles from main content layout, leading to more modular, scalable, and predictable CSS, especially when dealing with complex nested elements. This was key to resolving unexpected sizing issues.

  • Modern Responsive Sizing with min(): I successfully implemented width: min(100%, 38.4rem) on the card. This advanced CSS function provides a superior way to manage responsiveness, allowing the element to be fluid up to a maximum desirable size, preventing overflow on small screens and excessive stretching on large ones.

  • Optimizing Font Loading (font-display: swap): I integrated font-display: swap into the @font-face rules. This technique significantly improves perceived page load performance by displaying fallback text while custom fonts are loading, enhancing the user experience by avoiding invisible text (FOIT).

  • Interactive States (:hover, :focus-visible): I meticulously implemented :hover and :focus-visible states for interactive elements, ensuring not only visual feedback but also improved accessibility for users navigating via keyboard.

  • Semantic HTML and Accessibility: I reinforced the use of semantic HTML tags like <main>, <article>, <nav>, and <a> to create a well-structured and accessible document outline, which benefits both search engines and assistive technologies.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Igor Bueno's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License