mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 05:31:52 +00:00
Modify cookie banner update javascript bundle with webpack
This commit is contained in:
@@ -1,21 +1,75 @@
|
||||
|
||||
|
||||
<div id="plausible-banner" tabindex="-1" class="hidden fixed bottom-0 right-0 z-50 flex justify-end w-full p-4 pb-8 border-b border-gray-200 dark:border-gray-600">
|
||||
<div class="flex items-center">
|
||||
<div class="flex items-center justify-end">
|
||||
|
||||
<div class="relative bg-white shadow-lg shadow-black dark:bg-gray-600 rounded-lg text-sm text-gray-500 dark:text-white lg:mb-0">
|
||||
<div class="cookie-banner relative bg-white shadow-lg dark:bg-gray-700 dark:border-gray-600 rounded-lg shadow-xl text-sm text-gray-500 dark:text-white lg:mb-0">
|
||||
<div class="justify-between items-center p-5 lg:flex">
|
||||
<p class="mb-4">
|
||||
|
||||
</p>
|
||||
<div class="items-center space-y-4 sm:space-y-0 sm:space-x-4 sm:flex lg:pl-10 shrink-0 px-2">
|
||||
We use Plausible Analytics, a privacy first web analytics tool that does not use cookies.
|
||||
<span class="text-sm px-1"><a class="cursor-pointer font-sm text-gray-900 hover:underline dark:text-white" onclick="disablePlausible();">Disable Plausible</a></span>
|
||||
<span class="text-sm px-1"><a href="/cookies/" class="font-sm text-gray-900 hover:underline dark:text-white">Cookie Policy</a></span>
|
||||
<button id="close-modal" onclick="enablePlausible();" type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">OK</button>
|
||||
<div class="items-center space-y-4 sm:space-y-0 sm:space-x-4 sm:flex lg:pl-10 shrink-0 px-2 w-full">
|
||||
<div>
|
||||
<div class="mx-2">
|
||||
We use <a href="https://plausible.io">Plausible Analytics</a>, a privacy first web analytics tool.<br/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="h-full">
|
||||
<button id="plausible-configure" data-modal-target="popup-modal" data-modal-toggle="popup-modal"type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">Configure</button>
|
||||
</div>
|
||||
<div class="align-bottom h-full">
|
||||
<button id="plausible-ok" type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">Accept</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button data-modal-target="popup-modal" data-modal-toggle="popup-modal" class="block text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800" type="button">
|
||||
Toggle modal
|
||||
</button>
|
||||
|
||||
<div id="popup-modal" tabindex="-1" class="hidden overflow-y-auto overflow-x-hidden fixed top-0 right-0 left-0 z-50 justify-center items-center w-full md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
||||
<div class="relative p-4 w-full max-w-md max-h-full">
|
||||
<div class="relative bg-white rounded-lg shadow-sm dark:bg-gray-700 border-1 format dark:format-invert ">
|
||||
<button type="button" class="absolute top-3 end-2.5 text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm w-8 h-8 ms-auto inline-flex justify-center items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="popup-modal">
|
||||
<svg class="w-3 h-3" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
|
||||
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
|
||||
</svg>
|
||||
<span class="sr-only">Close modal</span>
|
||||
</button>
|
||||
<div class="py-8 px-4 md:py-8 text-balance">
|
||||
<div class="pb-4">
|
||||
<h1 class="mb-5 font-normal text-gray-500 dark:text-gray-400 text-center">Plausible Analytics</h1>
|
||||
|
||||
<p>
|
||||
We use Plausible Analytics Community Edition hosted on this server to gather <strong>anonymous</strong> statistics about our website traffic that:
|
||||
</p>
|
||||
<ul>
|
||||
<li>Does <strong>not</strong> use cookies</li>
|
||||
<li>Does <strong>not</strong> track you across websites</li>
|
||||
<li>Does <strong>not</strong> collect any personal data</li>
|
||||
</ul>
|
||||
<p>
|
||||
All data is <strong>aggregated and anonymized</strong> and stored <strong>on this server</strong> to help us understand general website usage, such as page view and referrers.
|
||||
</p>
|
||||
<p>
|
||||
Because we respect your choice to privacy, we offer the ability to disable Plausible analytics by storing "false" in your browser's <span class="courier-prime-regular">'localStorage'</span> under the variable name <span class="courier-prime-regular">'plausible_ignore'</span>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<div class="flex justify-end pt-2">
|
||||
<span class="px-2">Enable Plausible Analytics</span>
|
||||
<label class="switch">
|
||||
<input id="plausible-switch" type="checkbox">
|
||||
<span class="slider"></span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="flex justify-end pt-4">
|
||||
<button data-modal-hide="popup-modal" type="button" class="py-2 px-4 w-full text-sm font-medium text-center text-white rounded-lg focus:ring-4 focus:outline-none bg-primary-700 sm:w-auto hover:bg-primary-800 dark:bg-primary-600 dark:hover:bg-primary-700 cursor-pointer">OK</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -2,4 +2,3 @@
|
||||
<script src="{{ .Site.BaseURL }}/js/vendors.bundle.js"></script>
|
||||
<script defer data-domain="beardedtek.com" src="https://plausible.beardedtek.org/js/script.file-downloads.hash.outbound-links.pageview-props.revenue.tagged-events.js"></script>
|
||||
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
|
||||
<script src="{{ .Site.BaseURL }}/js/plausible-exclude.js"></script>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/app.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/custom.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/custom.css">
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}/css/fonts.css">
|
||||
Reference in New Issue
Block a user