Skip to content

hadodev/SocialLinkProfile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 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

Note: Delete this note and update the table of contents based on what sections you keep.

Overview

The challenge

Users should be able to:

  • See hover and focus states for image and links.

Screenshot

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties for colors and font settings
  • Use flexbox for the card class
  • Transitions on hover and focus: image and links
  • Use clamp() function for responsive design

What I learned

Use of variables fonts with fallback based on static fonts:

@font-face {
    font-family: 'Inter';
    src: local('Inter Regular'), local('Inter-Regular'),
         url('../fonts/static/Inter-Regular.woff2') format('woff2'),
         url('../fonts/static/Inter-Regular.woff') format('woff'),
         url('../fonts/static/Inter-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter SemiBold'), local('Inter-SemiBold'),
         url('../fonts/static/Inter-SemiBold.woff2') format('woff2'),
         url('../fonts/static/Inter-SemiBold.woff') format('woff'),
         url('../fonts/static/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: local('Inter Bold'), local('Inter-Bold'),
         url('../fonts/static/Inter-Bold.woff2') format('woff2'),
         url('../fonts/static/Inter-Bold.woff') format('woff'),
         url('../fonts/static/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@supports (font-variation-settings: normal) {
    @font-face {
    font-family: "Inter";
    src:
        url("../fonts/Inter-Regular.woff2") format(woff2) tech(variations),
        url("../fonts/Inter-Regular.woff2") format("woff2-variations");
    font-weight: 400 600 700;
    font-stretch: 50% 200%;
    }
}

Useful resources

  • CSS reset - This helped me moder CSS reset.

Author

Note: Delete this note and add/remove/edit lines above based on what links you'd like to share.

Acknowledgments

For all authors who publish open source ressources and contents freely available and make Internet more awesome.

Releases

No releases published

Packages

No packages published