From b8c3245a601cf9d66ddd904b68f39411e1aab437 Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Sat, 30 Nov 2024 20:01:07 +0100 Subject: [PATCH] added donation banner --- client/index.jsx | 14 ++++++++++++++ client/styles/base/_base.scss | 7 +++++++ 2 files changed, 21 insertions(+) diff --git a/client/index.jsx b/client/index.jsx index 6c12fa511b..313334dc20 100644 --- a/client/index.jsx +++ b/client/index.jsx @@ -20,6 +20,20 @@ const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); +// Add a banner to the page +const banner = document.createElement('div'); +banner.id = 'processing-banner'; +document.body.appendChild(banner); + +const link = document.createElement('link'); +link.rel = 'stylesheet'; +link.href = 'https://foundation-donate-banner.netlify.app/static/css/main.css'; +document.head.appendChild(link); + +const script = document.createElement('script'); +script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js'; +document.body.appendChild(script); + const App = () => ( <> diff --git a/client/styles/base/_base.scss b/client/styles/base/_base.scss index 3e283d7ab9..ad17249932 100644 --- a/client/styles/base/_base.scss +++ b/client/styles/base/_base.scss @@ -151,3 +151,10 @@ textarea:focus { white-space: nowrap; width: 1px; } + + +// Donate banner custom properties +body { + --donate-banner-dark: #c01c4c; + --donate-banner-background: url('https://foundation-donate-banner.netlify.app/p5.png'); +} \ No newline at end of file