Skip to content

Commit 435248d

Browse files
authored
Merge pull request #645 from Stefterv/main
added donation banner
2 parents 7b8b92c + 3781837 commit 435248d

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

src/content/banner/en.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Give each new message a unique title so we know which one a user closed
33
title: "old-site"
44
link: "https://archive.p5js.org"
5-
hidden: false
5+
hidden: true
66
---
77

88
Looking for the old p5.js site? Find it here!

src/layouts/BaseLayout.astro

+14-5
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,12 @@ const headerTopic = topic
8484
const htmlElement = document.documentElement;
8585
htmlElement.className = `${storedSettings.join(" ")} ${htmlElement.className}`;
8686
</script>
87+
<link
88+
rel="stylesheet"
89+
href="https://foundation-donate-banner.netlify.app/static/css/main.css"
90+
/>
91+
<script src="https://foundation-donate-banner.netlify.app/static/js/main.js"
92+
></script>
8793
</head>
8894
<body>
8995
<div class="top-layout-grid">
@@ -111,12 +117,15 @@ const headerTopic = topic
111117
}
112118
</header>
113119
<main id="main-content" class="relative">
114-
{HeaderContent && (
115-
<div class="px-5 md:px-lg pt-sm pb-lg">
116-
<div class="rendered-markdown">
117-
<HeaderContent />
120+
<div id="processing-banner" style="margin-left: var(--nav-offset-x);">
121+
</div>
122+
{
123+
HeaderContent && (
124+
<div class="px-5 md:px-lg pt-sm pb-lg">
125+
<div class="rendered-markdown">
126+
<HeaderContent />
127+
</div>
118128
</div>
119-
</div>
120129
)}
121130
<div class={mainContentParentClass}>
122131
<slot />

styles/global.scss

+6
Original file line numberDiff line numberDiff line change
@@ -535,3 +535,9 @@ input[type="search"]::-webkit-search-results-decoration {
535535
padding: 10px;
536536
border: 2px solid #000;
537537
}
538+
539+
// Donate banner custom properties
540+
body {
541+
--donate-banner-dark: #c01c4c;
542+
--donate-banner-background: var(--donate-p5-background);
543+
}

0 commit comments

Comments
 (0)