Article Preview: ReactJS + TailwindCSS

Solution retrospective
I was able to align the callout bubble to the share button.
What challenges did you encounter, and how did you overcome them?I tried to solve the callout bubble alignment by just putting it in one location but that proved to be too difficult. What I did was to put two instances of the share component on different parent divs.
What specific areas of your project would you like help with?I have 3 areas I which I think need improvement or clarification:
- Rounding of the corners of the article along with the image. If I put an overflow-hidden on the parent element, when the share button is clicked on tablet/desktop, the pop-up will also be hidden. My workaround is to reapply the border radius for the children that need it.
- Creating the tail of the callout bubble.
<div className="w-0 h-0 border-x-10 border-x-transparent border-t-10 border-t-grey900 mx-auto"></div>
In my search, this is the cleanest tailwind way I found. However, I don't fully understand it. Can anyone enlighten me? - Having two instances of the Share component. I found it almost impossible to make the share feature be part of the document flow on mobile while also putting it inside the flex item for the share button to capture its center when in tablet/desktop.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @sttilstra
This looks really good and the responsive layout is great. I see that you used Tailwind. What are some aspects about that framework you like over something like Bootstrap?
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