Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added donation banner #645

Merged
merged 4 commits into from
Nov 30, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/images/p5-wallpaper-desktop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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"
Stefterv marked this conversation as resolved.
Show resolved Hide resolved
/>
<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: url('/images/p5-wallpaper-desktop.png');
}