Skip to content

Create TopBanner component - #1588

Merged
doradocodes merged 2 commits into
processing:mainfrom
doradocodes:dora-1584
Aug 31, 2026
Merged

Create TopBanner component#1588
doradocodes merged 2 commits into
processing:mainfrom
doradocodes:dora-1584

Conversation

@doradocodes

@doradocodes doradocodes commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Creating a new component, TopBanner, for additional announcements. Specifically to be used for the PCD annoucement.

Screenshot 2026-08-31 at 12 16 20 PM

@doradocodes doradocodes linked an issue Aug 31, 2026 that may be closed by this pull request
Comment thread src/components/TopBanner/index.astro Outdated
Comment on lines +17 to +34
// const banner = document.querySelector('.banner');
// const hideBannerBtn = document.querySelector('#hideBanner');
// if (banner && hideBannerBtn) {
// const hiddenBanner = window.sessionStorage.getItem('hideBanner');
// const title = banner.getAttribute('data-title');
// if (hiddenBanner !== title) {
// banner.removeAttribute('style');
// }
// const hideBanner = () => {
// banner.setAttribute('style', 'display: none');
// try {
// window.sessionStorage.setItem('hideTopBanner', title || '');
// } catch (e) {
// console.error(e);
// }
// }
// hideBannerBtn.addEventListener('click', hideBanner);
// }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nwakaego-Ego Need to add this code block back in, and be specific to the TopBanner element

Comment thread styles/global.scss Outdated
Comment on lines +589 to +590
background-color: #1E32AA;
color: white;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Nwakaego-Ego Currently, these are the Processing colors. I think we should make the component have dynamic colors. Which are passed through options in the en.md file.

@doradocodes
doradocodes merged commit 73c756c into processing:main Aug 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Promoting Processing Community Day 2026

2 participants