Add GDPR-compliant cookie consent banner using Silktide
Implements Silktide Consent Manager via jsDelivr CDN for GDPR compliance. The banner informs users the site only uses essential cookies and allows them to manage preferences. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,8 @@
|
||||
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Playfair+Display:wght@600;700&display=swap" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<link rel="stylesheet" href="/static/styles.css">
|
||||
<!-- Cookie Consent Banner -->
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/silktide/consent-manager@main/silktide-consent-manager.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="noise-overlay"></div>
|
||||
@@ -340,6 +342,28 @@
|
||||
</footer>
|
||||
|
||||
<script src="/static/app.js"></script>
|
||||
<!-- Cookie Consent Banner -->
|
||||
<script src="https://cdn.jsdelivr.net/gh/silktide/consent-manager@main/silktide-consent-manager.js"></script>
|
||||
<script>
|
||||
window.silktideConsentManager.init({
|
||||
consentTypes: [
|
||||
{
|
||||
id: 'necessary',
|
||||
label: 'Necessary',
|
||||
description: 'Essential cookies required for the website to function properly.',
|
||||
required: true,
|
||||
defaultValue: true
|
||||
}
|
||||
],
|
||||
text: {
|
||||
title: 'Cookie Preferences',
|
||||
description: 'This website does not use tracking cookies. We only use essential cookies required for the site to function.',
|
||||
acceptAll: 'Accept',
|
||||
rejectAll: 'Reject All',
|
||||
save: 'Save Preferences'
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user