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:
I learnt how those little triangles used on Popover elements work. I had to google it and I finally found it on CSS Tricks!
<div aria-hidden="true" class="arrow-down absolute top-full left-1/2 transform -translate-x-1/2" />
.arrow-down {
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid hsl(217, 19%, 35%);
}