https://github.com/ogshawnlee/article-preview-component-svelte
Solution to the Article Preview Component challenge by Frontend Mentor. Built with Svelte+ TypeScript + WindiCSS + Malachite UI + Vite.
https://github.com/ogshawnlee/article-preview-component-svelte
Last synced: 3 months ago
JSON representation
Solution to the Article Preview Component challenge by Frontend Mentor. Built with Svelte+ TypeScript + WindiCSS + Malachite UI + Vite.
- Host: GitHub
- URL: https://github.com/ogshawnlee/article-preview-component-svelte
- Owner: OGShawnLee
- Created: 2022-05-10T15:05:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-10T18:39:22.000Z (about 3 years ago)
- Last Synced: 2025-01-08T06:41:42.461Z (5 months ago)
- Language: Svelte
- Homepage: article-preview-component-svelte.vercel.app
- Size: 562 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Frontend Mentor - Article Preview Component Solution
This is a solution to the [Article preview component challenge on Frontend Mentor](https://www.frontendmentor.io/challenges/article-preview-component-dYBN_pYFT). Frontend Mentor challenges help you improve your coding skills by building realistic projects.
## Table of contents
- [Frontend Mentor - Article Preview Component Solution](#frontend-mentor---article-preview-component-solution)
- [Table of contents](#table-of-contents)
- [Overview](#overview)
- [The challenge](#the-challenge)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Useful resources](#useful-resources)
- [Author](#author)
- [Acknowledgments](#acknowledgments)## Overview
### The challenge
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### Screenshot

### Links
- Solution URL: [Right here!](https://www.frontendmentor.io/solutions/fully-responsive-animated-article-preview-component-rkVZ1V_I5)
- Live Site URL: [Deployed on Vercel](https://article-preview-component-svelte.vercel.app/)## My process
### Built with
- Semantic HTML5 markup
- Svelte + Transition API
- WindiCSS + Flexbox and Grid
- Mobile-first workflow
- [Malachite UI](https://github.com/OGShawnLee/malachite-ui)
- Vite### What I learned
I learnt how those little triangles used on Popover elements work. I had to google it and I finally found it on CSS Tricks!
```html
``````css
.arrow-down {
width: 0;
height: 0;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
border-top: 20px solid hsl(217, 19%, 35%);
}
```### Useful resources
- [Malachite UI](https://github.com/OGShawnLee/malachite-ui) - This awesome library helped me build the Popover and let me use a powerful hook. I wonder who built it.
## Author
- Frontend Mentor - [@Shawn Lee](https://www.frontendmentor.io/profile/OGShawnLee)
## Acknowledgments
- [CSS Triangle by Chris Coyier -> Oct 6, 2009](https://css-tricks.com/snippets/css/css-triangle/)