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://www.frontendmentor.io/solutions/article-preview-component-using-web-components-and-floating-ui-WTST1qYtZa
- Live Site URL: https://article-preview-component-fem.netlify.app/
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- Web Components
- Floating UI
- Styled Components - For styles
Been interested in Web Components for a while now, so I tried using it in this challenge to encapsulate the logic of the share button and tooltip. It worked out pretty well (I think).
I also challenged myself to come up with a solution that doesn't require a build step, which forced me to learn about node module resolution—something I took for granted before. In the end, I used Rollup for bundling (it's not a build step, right?) for node module resolution and JS minification. It isn't as easy as Vite and required me to find and configure plugins that I need, but overall it helped me gain a new perspective on the importance of front-end tooling.
- Build a fully-responsive, progressively enhanced burger menu
- ResizeObserver: it’s like document.onresize for elements
- CSS clip-path maker
- Website - Josh Javier
- Frontend Mentor - @joshjavier