Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/code-beaker/article-preview-component
https://github.com/code-beaker/article-preview-component
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/code-beaker/article-preview-component
- Owner: Code-Beaker
- Created: 2024-04-01T02:59:45.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-01T12:51:55.000Z (9 months ago)
- Last Synced: 2024-04-02T04:38:52.531Z (9 months ago)
- Language: HTML
- Size: 816 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solution for Article Preview Card
This is a solution to the **Article Preview Card**.
- [Solution for Article Preview Card](#solution-for-article-preview-card)
- [Preview](#preview)
- [Desktop](#desktop)
- [Desktop - `active`](#desktop---active)
- [Mobile](#mobile)
- [Mobile - `active`](#mobile---active)
- [Tools](#tools)
- [My JS code](#my-js-code)
- [The code to toggle the popup](#the-code-to-toggle-the-popup)## Preview
Below are the screenshots from both desktop and mobile screens.
### Desktop
![Desktop default preview](desktop-preview.png)
### Desktop - `active`
![Desktop active preview](desktop-active-preview.png)
### Mobile
![Desktop default preview](mobile-preview.png)
### Mobile - `active`
![Desktop active preview](mobile-active-preview.png)
## Tools
- Visual Studio Code
- HTML
- CSS `grid`
- CSS `flexbox`
- IonIcons## My JS code
I'm still new to Javascript, and I still have a lot to learn.
### The code to toggle the popup
I used this to make the share button functional. This might not be great.
```js
shareBtn.addEventListener("click", () => {
popup.classList.toggle("popup-show");
});
```