Skip to content

kalush89/article-preview-component-master

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - Article preview component solution

This is a solution to the Article preview component 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 component depending on their device's screen size
  • See the social media share links when they click the share icon

Screenshot

Links

My process

Built with

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

What I learned

Learnt how to create a speech bubble with css.

div#sm-nav {
        position: absolute;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 20em;
        height: 4em;
        right: -5.4em;
        margin-top: 10.5em;
        padding: 0 3.2em;
        background-color: hsl(217, 19%, 35%);
        border-radius: 10px 10px 10px 10px;
        opacity: 0; 
    }

    div#sm-nav:before {
        content: "";
        position: absolute;
        right: 8.7em;
        top: 4em;
        width: 0;
        height: 0;
        border-top: 13px solid hsl(217, 19%, 35%);
        border-right: 13px solid transparent;
        border-left: 13px solid transparent;
        
        
    }

Successfully manupulated an svg image color. Converted from dark grey to white

button#share.is-dark img{
    filter: invert(0.5) sepia(0) saturate(1) hue-rotate(0deg) brightness(5);
}

Useful resources

  • Coding is love - This helped me create the speech bubble. I will revisit this site later to master the process.

Author