[go: up one dir, main page]

Skip to content

Stand with Palestine: A minimal, SCSS and JS-based sticky-bottom widget to show your support for Palestine, bundled with Webpack for easy integration on external websites.

Notifications You must be signed in to change notification settings

zeyadetman/stand-with-palestine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stand with Palestine

The "Stand with Palestine" library/widget is a sticky bottom banner that you can easily integrate into your website to show your support for Palestine. It features the Palestine flag, a statement, "WE STAND WITH PALESTINE," and dynamic statistics, which include information on martyrs, hospital attacks, destroyed homes, and more, sourced from the Palestinian Ministry of Health.

Usage

To add the "Stand with Palestine" banner to your website, all you have to do is adding the following script tag to the <head> tag or before the end of the </body> tag on your website:

<script src="https://stand-with-palestine.pages.dev/widget.js"></script>

Here's what it looks like (Live Demo): Codepen Preview

How it works?

The "Stand with Palestine" banner is created using SCSS and JavaScript. All styles are converted to CSS, and HTML elements are dynamically created using JavaScript, allowing for seamless integration without the need to modify your website's HTML structure. The library is bundled using Webpack, resulting in a single JavaScript file, which is available at /dist/stand-with-palestine-widget.js

Dynamic Statistics

The dynamic statistics displayed in the banner are obtained from a custom-built API that retrieves the latest numbers from the Daily Report on the Effects of the Israeli Aggression in Palestine. As there's no existing API for this purpose, we've built and maintain our own, updating it daily with the most current numbers. This API will be open-sourced soon, allowing for transparency and community contributions.

Design Details and Iterations

Here's the Figma of the "Stand with Palestine" designs. You can access this Figma to explore the updated design version, various attempts & iterations of the widget:

Contributing

We welcome contributions to enhance and improve the "Stand with Palestine" library. If you'd like to contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes and ensure that the code is well-documented and tested.
  4. run the build command npm run build.
  5. Submit a pull request.

About

Stand with Palestine: A minimal, SCSS and JS-based sticky-bottom widget to show your support for Palestine, bundled with Webpack for easy integration on external websites.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • SCSS 82.2%
  • HTML 11.0%
  • JavaScript 6.8%