# Announcement bar

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2Ft6DLAMjkTribR7SGSRmv%2FUntitled%201.png?alt=media&#x26;token=73415bbc-d9ef-4b05-af59-3b5acf588dfb" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2F7cJTJhZx6xIi3gDnkVKl%2FUntitled.png?alt=media&#x26;token=7b963b92-0c27-429b-95e3-db72b69bdca3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2F70CF57HszI03Xh9K6msX%2FUntitled%202.png?alt=media&#x26;token=04b6ae93-7abd-4e45-895e-b2024699e404" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2FZcPtuZxbFOD2CPqxu7Xy%2FUntitled%203.png?alt=media&#x26;token=36d20101-ce44-43cc-b81d-a4207bf9b99b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2FItfW2g7GWLhsYXUuUFEO%2FUntitled%204.png?alt=media&#x26;token=f52f9af5-6ef5-466d-babe-0ab9927dbbf9" alt=""><figcaption></figcaption></figure>

## **Adding a section**

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2FautCfCRpamy8m1eXlQuY%2FUntitled%205.png?alt=media&#x26;token=2564ac69-4e9c-4639-8f4c-70654303fedd" alt=""><figcaption></figcaption></figure>

The section is static, it is added initially and cannot be removed. This is done so that the **Announcement bar** in the **DOM** is higher than the **Header**.

## **Section settings**

### General

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2FWdFgKcTyEf7wDNPXL8wJ%2FUntitled%206.png?alt=media&#x26;token=d4c32982-f24c-4ed4-85b5-39bdf31c2f7b" alt=""><figcaption></figcaption></figure>

1. **`Layout`** - the setting is responsible for choosing the type of display. There are three options to choose from:
   * **`Simple text`** - plain text will be displayed, the settings for it are below in the **Simple text** block;
   * **`Countdown timer`** - a countdown timer will be displayed, the settings for it are below in the **Countdown timer** block;
   * **`Ticker`** - a text will be displayed like a ticker.
2. **`Show close button`** - the setting is responsible for displaying a cross to hide the announcement bar;
3. **`Background image`** - the setting allows you to add a background image;
4. **`Background image type`** - the setting allows you to select the type of background image display:
   * **`Stretch`** - this setting will stretch the image across the width of the entire block;
   * **`Repeat`** - this setting will make the picture repeat, the number of repetitions depends on the width of the picture.
5. **`Additional phone`** - the setting is responsible for displaying social icons;
6. **`Additional menu`** - the setting is responsible for displaying links.

### Slideshow

If you want to display a carousel in the announcement bar, please add blocks to the section.

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2FLgUAWPtFqbazULDqHhKY%2FUntitled%207.png?alt=media&#x26;token=730e66f5-6d9f-493f-8615-ebc2356ccd4a" alt=""><figcaption></figcaption></figure>

1. **`Enable autoplay`** - the setting allows you to enable autoplay for the carousel;
2. **`Autoplay speed`** - the setting allows you to change the autoplay speed of the carousel.

### Simple text

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2Fq88Ir83bUXq8psjcvHSz%2FUntitled%208.png?alt=media&#x26;token=b5a52013-9964-429d-89dc-514de0a32b28" alt=""><figcaption></figcaption></figure>

1. **`Text desktop`** - the setting allows you to set the text content for **Desktop**;
2. **`Text mobile`** - the setting allows you to set the text content for **Mobile**. If the content is empty, the content will be taken from the **Desktop** version.

### Countdown timer

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2F6doun5Hgz1DB1rS6GS7I%2FUntitled%209.png?alt=media&#x26;token=578d522b-2677-473e-9581-ff93204bde10" alt=""><figcaption></figcaption></figure>

1. **`Text desktop`** - the setting allows you to set the text content for **Desktop**;
2. **`Text mobile`** - the setting allows you to set the text content for **Mobile**. If the content is empty, the content will be taken from the **Desktop** version.
3. **`Year`** - the setting allows you to set the years until the end of the countdown;
4. **`Month`** - the setting allows you to set the months until the end of the countdown;
5. **`Day`** - the setting allows you to set the days until the end of the countdown;
6. **`Hour`** - the setting allows you to set the hours until the end of the countdown;
7. **`Timezone`** - the setting allows you to set the Timezone of the countdown;
8. **`Button label`** - the setting allows you to set the button label;
9. **`Button link`** - the setting allows you to set the button link.

### Ticker

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2FQoO61xlGMUxYFQe19SgW%2FUntitled%2010.png?alt=media&#x26;token=77721c0f-295c-4c4a-9f81-f1470a63f7c9" alt=""><figcaption></figcaption></figure>

1. **`Hide bullets`** - the setting allows you to hide bullets between sentences;
2. **`Text`** - the setting allows you to set the text of the ticker;
3. **`Movement speed (desktop)`** - the setting allows you to set the ticker animation speed on the **desktop**;
4. **`Movement speed (mobile)`** - the setting allows you to set the ticker animation speed on the **mobile**.

### Colors

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2F6YJZPZGvSKZztHNuzrZ3%2FUntitled%2011.png?alt=media&#x26;token=f0e7b6fc-5887-48bc-8e07-6646f5b782ad" alt=""><figcaption></figcaption></figure>

1. **`Background`** - the setting allows you to set the section background color;
2. **`Text`** - the setting allows you to set the text color;
3. **`Timer text`** - the setting allows you to set the timer text color;
4. **`Arrow`** - the setting allows you to set the arrow color;
5. **`Link`** - the setting allows you to set the link color;
6. **`Button label`** - the setting allows you to set the button label color;
7. **`Button background`** - the setting allows you to set the button background color;
8. **`Button border`** - the setting allows you to set the button border color;
9. **`Button label (hover)`** - the setting allows you to set the button label color on hover;
10. **`Button background (hover)`** - the setting allows you to set the button background color on hover;
11. **`Button border (hover)`** - the setting allows you to set the button border color on hover;
12. **`Button close`** - the setting allows you to set the color of the close button;
13. **`Button close (hover)`** - the setting allows you to set the color of the close button on hover;
14. **`Social icon`** - the setting allows you to set the color of the social icons;
15. **`Social icon (hover)`** - the setting allows you to set the color of the social icons on hover.

## **Block settings**

### Block Announcement

You can add a block Announcement, to the section. If blocks are added, then a carousel will be shown.

The content of the carousel slides can be a **Simple text** or a **Countdown timer**.

The settings of the **Simple text** and the **Countdown timer** are the same as in the general settings.

<figure><img src="https://3988388892-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FX39aWWRJk2Y01xGBqnJw%2Fuploads%2F6OMMn4GF0u47WV5fl9C8%2Fannouncement-block1.png?alt=media&#x26;token=4867278b-ac03-4386-a8f9-a2d6ac987e68" alt=""><figcaption></figcaption></figure>

## Additional Information

1. When closing the **Announcement bar**, it is hidden and will be shown only if you close the tabs and open the store again.
2. The closing data is added to the **Session Storage** with the name - **showAnnouncementBar**.
3. If you set an incorrect date, the timer will not start and will remain with zero values.
4. When the timer expires, zero values remain.
