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

https://github.com/euberdeveloper/ukraine-banner

Some banner web components for sites that want to condemn the war
https://github.com/euberdeveloper/ukraine-banner

svelte typescript ukraine vite webcomponent

Last synced: 3 months ago
JSON representation

Some banner web components for sites that want to condemn the war

Awesome Lists containing this project

README

        

# ukraine-banner

This is a **web component** that provides a **simple banner against the war in Ukraine**.

## Usage

On the [releases](https://github.com/euberdeveloper/ukraine-banner/releases) you can download the file `ukraine-banner.tar.gz`. Inside, there will be a README.md with the js files implementing the webcomponent. The **umd** version is just **6KB**, so very light.

The **tag name** is `` and it accepts the following options:

| **Property** | **Required** | **Default** | **Description** |
| ------------ | ------------ | -------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| vertical | NO | 'bottom' | It says if the ribbon will be on the top or on the bottom. (Possible values: 'top' and 'bottom'). |
| horizontal | NO | 'right' | It says if the ribbon will be on the left or on the right. (Possible values: 'left' and 'right'). |
| href | NO | undefined | It says the url where the user will be redirected after clicking the ribbon. If not specified, the ribbon is not clickable. |
| title | NO | undefined | It says the title that will be displayed when the mouse is over the ribbon. |
| height | NO | '3vw' | It says the height of the ribbon. |
| boxshadow | NO | '0 0 8px rgb(0 0 0 / 50%)' | It says the box shadow that the ribbon will have. |
| zindex | NO | '999999' | It says the z-index of the ribbon |

## Example

```html






Ukraine Banner Example

```

## Result

The result will be something like this (you can see the ribbon added in the bottom right corner of the page):

![example_result](./docs/example.jpg)

## How was it made

This web component was made with **Typescript**, **Svelte** and **Vite**.