Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/code-beaker/article-preview-component


https://github.com/code-beaker/article-preview-component

Last synced: about 1 month ago
JSON representation

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");
});
```