Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/baayeh/notifications-page-main


https://github.com/baayeh/notifications-page-main

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# Frontend Mentor - Notifications page

![Design preview for the Notifications page coding challenge](./screenshot/screenshot.png)

## Welcome! 👋

## Table of contents

- [Overview](#overview)
- [Screenshot](#screenshot)
- [Links](#links)
- [My process](#my-process)
- [Built with](#built-with)
- [What I learned](#what-i-learned)
- [Author](#author)
- [Acknowledgments](#acknowledgments)

## Overview

### Links

- Solution URL: []
- Live Site URL: [Notification Page](https://baayeh.github.io/notifications-page-main/)

## My process

### Built with

- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- JavaScript
- Mobile-first workflow

### What I learned

I learned how to apply dynamic content using plain JavaScript

```JavaScript
function displayNotifications() {
notifications.forEach(notification => {
addNotificationToList(notification);
});
}

function addNotificationToList(notification) {
const li = `



  • Avatar



    ${notification.name}
    ${notification.reaction}
    ${
    notification.description ? `${notification.description}` : ''
    }
    ${
    !notification.read ? `` : ''
    }


    ${
    notification.img ? `` : ''
    }

    ${notification.time}




    ${
    notification.message ? `

    ${notification.message}

    ` : ''
    }
  • `;
    ul.innerHTML += li;
    }
    ```

    ## Author

    - Website - [Kwasi Antwi Baayeh](https://baayeh.github.io/portfolio/)
    - Frontend Mentor - [@Baayeh](https://www.frontendmentor.io/profile/Baayeh)
    - Twitter - [@Cest_Baayeh](https://twitter.com/Cest_Baayeh)

    ## Acknowledgments

    - Frontend Mentor
    - [HTML-CSS-JS.COM](https://html-css-js.com/css/generator/box-shadow/)