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.
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
- Solution URL: https://github.com/kalush89/article-preview-component-master
- Live Site URL: http://article-preview-component-master-smoky.vercel.app/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
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);
}
- Coding is love - This helped me create the speech bubble. I will revisit this site later to master the process.
- Frontend Mentor - @kalush89