Skip to content

Commit

Permalink
Merge pull request #3287 from Stefterv/added-donation-banner
Browse files Browse the repository at this point in the history
added donation banner
  • Loading branch information
raclim authored Dec 2, 2024
2 parents 691e6a9 + b8c3245 commit 5ab73a7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions client/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = () => (
<>
<Router history={browserHistory}>
Expand Down
7 changes: 7 additions & 0 deletions client/styles/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

0 comments on commit 5ab73a7

Please sign in to comment.