Remove remnants of hugo_cookie_consent.

This commit is contained in:
2026-06-16 17:14:18 +02:00
parent b784459d87
commit 3ac7f0fb8e
16 changed files with 15 additions and 166 deletions
-43
View File
@@ -1,43 +0,0 @@
(function () {
var KEY = 'cookie_consent';
var banner = document.getElementById('cookie-banner');
if (!banner) return;
updateStatus();
var consent = localStorage.getItem(KEY);
if (!consent) banner.style.display = 'flex';
function dismiss() {
banner.classList.add('fade-out');
setTimeout(function () { banner.style.display = 'none'; }, 500);
}
function updateStatus() {
var el = document.getElementById('cookie-status');
if (!el) return;
var consent = localStorage.getItem(KEY);
el.textContent = consent === 'accepted' ? 'Cookie akzeptiert'
: consent === 'declined' ? 'Cookie abgelehnt'
: 'Nicht entschieden';
}
document.getElementById('cookie-accept').onclick = function () {
localStorage.setItem(KEY, 'accepted');
updateStatus();
dismiss();
window.dispatchEvent(new Event('cookieAccepted'));
};
document.getElementById('cookie-decline').onclick = function () {
localStorage.setItem(KEY, 'declined');
updateStatus();
dismiss();
};
window.reopenCookieBanner = function () {
localStorage.removeItem(KEY);
updateStatus();
banner.classList.remove('fade-out');
banner.style.display = 'flex';
};
})();
-38
View File
@@ -1,38 +0,0 @@
#cookie-banner {
position: fixed;
top: 2.5rem;
left: 50%;
transform: translateX(-50%);
width: min(480px, calc(100vw - 2rem));
background: #fff;
border: 1px solid #e2e2e2;
border-radius: 12px;
padding: 1rem 1.25rem;
box-shadow: 0 4px 24px rgba(0,0,0,.08);
display: flex;
align-items: center;
gap: 1rem;
z-index: 9999;
transition: opacity 0.5s ease;
}
#cookie-banner.fade-out {
opacity: 0;
pointer-events: none;
}
#cookie-banner p { margin: 0; font-size: 14px; flex: 1; }
#cookie-banner button {
padding: .45rem 1rem;
border-radius: 8px;
border: 1px solid #ccc;
cursor: pointer;
font-size: 13px;
white-space: nowrap;
}
#cookie-accept {
background: #0b913a; color: #fff; border-color: #1a1a1a;
}
@@ -1,6 +1,4 @@
// ============================================
// Custom Site Styles
// ============================================
@import "bootstrap/bootstrap";
:root {
--bs-primary: #004a6f;
+4 -7
View File
@@ -1,7 +1,4 @@
// Import the entire Bootstrap bundle in the correct order
@import "bootstrap/bootstrap";
// Custom site styles
@import "custom";
@import "termine";
@import "cookie-consent";
// To include custom styles and stylesheets, create a file
// assets/scss/main.scss with the contents of this file and
// add your imports or styles as needed.
@import "hugo_bootstrap_theme";
-20
View File
@@ -1,20 +0,0 @@
.event-details {
ul {
padding: 0;
}
li {
font-weight:normal;
background-color: var(--bs-light);
display: block;
padding: 0.5rem 1rem;
margin-bottom: 0.5rem;
}
li span {
display: block;
color: var(--bs-dark);
font-size: 75%;
font-weight: bold;
letter-spacing: 0.1rem;
text-transform: uppercase;
}
}