Skip to content

This repository contains my solution to the Frontend Mentor Social links profile challenge. The project was built using HTML and CSS, with a focus on responsive layout techniques and Flexbox.

Notifications You must be signed in to change notification settings

lia-oliveira/social-links-profile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Social links profile solution

This is a solution to the Social links profile 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:

  • See hover and focus states for all interactive elements on the page

Screenshot

Expected solution:

My solution:

Links

My process

Built with

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

What I learned

  1. To make a square image round, since the image was already in a square format of 32 x 32, it was enough to apply a border-radius of 50%, as shown below.
.card header img {
    ...
    border-radius: 50%;
}
  1. To make the link clickable anywhere in the container, I applied a display: block to the link itself and used a line-height equal to that of the parent element.
main ul li a{
    display: block;
    text-align: center;
    line-height: 2.75rem;
    width: 100%;
}

3.The separation between the links was achieved using the Flexbox gap property.

main ul{
    display: flex;
    flex-direction: column;
    gap:0.9375rem;
}

Continued development

I intend to continue exploring the various applications of Flexbox.

Author

Acknowledgments

I’m grateful for the valuable tips from users @SabineEmden and @Mohammed Aljbalai regarding accessibility. I’ve already started using the tools they suggested, and they’ve been incredibly helpful.

About

This repository contains my solution to the Frontend Mentor Social links profile challenge. The project was built using HTML and CSS, with a focus on responsive layout techniques and Flexbox.

Topics

Resources

Stars

Watchers

Forks