Article preview component

Solution retrospective
Hi everyone! This is my solution of this challenge.
Questions:
- The share button has a share icon from FontAwesome, this is because when it is clicked it changes the
background-color
to a darker color and it changes itscolor
to a white color and I didn't know how to make this with the svg given. - I added an animation when the user clicks the share button, it rotates 180 degres. What I wanted it to do is to rotate 360 degres but somehow it wasn't working when I set
.share-btn.active
to havetransform: rotate(360deg)
. Does anyone know why is this happening? - The social icons container has a triangle at the bottom of it. The way I did it was with a square shape made by a div rotated 45 degres. Does anyone know other way to make it?
- Is there a difference when the .js document is named as main.js, app.js, scripts.js, etc? I'm currently learning JavaScript so it's a new world for me.
Built With:
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- JavaScript
- Mobile-first workflow
- BEM naming convention
Any feedback on how I can improve and reduce unnecessary code is welcome!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Fernando Pérez'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