Skip to content

Commit 5ab73a7

Browse files
authored
Merge pull request #3287 from Stefterv/added-donation-banner
added donation banner
2 parents 691e6a9 + b8c3245 commit 5ab73a7

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Diff for: client/index.jsx

+14
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,20 @@ const initialState = window.__INITIAL_STATE__;
2020

2121
const store = configureStore(initialState);
2222

23+
// Add a banner to the page
24+
const banner = document.createElement('div');
25+
banner.id = 'processing-banner';
26+
document.body.appendChild(banner);
27+
28+
const link = document.createElement('link');
29+
link.rel = 'stylesheet';
30+
link.href = 'https://foundation-donate-banner.netlify.app/static/css/main.css';
31+
document.head.appendChild(link);
32+
33+
const script = document.createElement('script');
34+
script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js';
35+
document.body.appendChild(script);
36+
2337
const App = () => (
2438
<>
2539
<Router history={browserHistory}>

Diff for: client/styles/base/_base.scss

+7
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,10 @@ textarea:focus {
151151
white-space: nowrap;
152152
width: 1px;
153153
}
154+
155+
156+
// Donate banner custom properties
157+
body {
158+
--donate-banner-dark: #c01c4c;
159+
--donate-banner-background: url('https://foundation-donate-banner.netlify.app/p5.png');
160+
}

0 commit comments

Comments
 (0)