Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
eltapir authored Dec 1, 2024
2 parents 8a80de7 + 435248d commit f4ee546
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/content/banner/en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Give each new message a unique title so we know which one a user closed
title: "old-site"
link: "https://archive.p5js.org"
hidden: false
hidden: true
---

Looking for the old p5.js site? Find it here!
19 changes: 14 additions & 5 deletions src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@ const headerTopic = topic
const htmlElement = document.documentElement;
htmlElement.className = `${storedSettings.join(" ")} ${htmlElement.className}`;
</script>
<link
rel="stylesheet"
href="https://foundation-donate-banner.netlify.app/static/css/main.css"
/>
<script src="https://foundation-donate-banner.netlify.app/static/js/main.js"
></script>
</head>
<body>
<div class="top-layout-grid">
Expand Down Expand Up @@ -111,12 +117,15 @@ const headerTopic = topic
}
</header>
<main id="main-content" class="relative">
{HeaderContent && (
<div class="px-5 md:px-lg pt-sm pb-lg">
<div class="rendered-markdown">
<HeaderContent />
<div id="processing-banner" style="margin-left: var(--nav-offset-x);">
</div>
{
HeaderContent && (
<div class="px-5 md:px-lg pt-sm pb-lg">
<div class="rendered-markdown">
<HeaderContent />
</div>
</div>
</div>
)}
<div class={mainContentParentClass}>
<slot />
Expand Down
6 changes: 6 additions & 0 deletions styles/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -535,3 +535,9 @@ input[type="search"]::-webkit-search-results-decoration {
padding: 10px;
border: 2px solid #000;
}

// Donate banner custom properties
body {
--donate-banner-dark: #c01c4c;
--donate-banner-background: var(--donate-p5-background);
}

0 comments on commit f4ee546

Please sign in to comment.