From d96ac49b3a4612451621a4b4052902faae04bc4d Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 14 Aug 2023 19:37:11 +0200 Subject: [PATCH] add cookie banner in web3 (#32) --- static/css/web3.css | 37 +++++++++++++++++++++++++++++++++++++ templates/web3.html | 17 +++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/static/css/web3.css b/static/css/web3.css index fd34e1b..65485f0 100644 --- a/static/css/web3.css +++ b/static/css/web3.css @@ -81,3 +81,40 @@ img { footer { text-align: center; } + +/* Cookie banner */ +#cookie .cookie-flag { + display: none; +} + +#cookie .cookie-container { + display: block; + pointer-events: none; + position: relative; +} + +#cookie .cookie-content { + border: 1px solid white; + background: black; + display: flex; +} + +#cookie .cookie-flag:checked ~ .cookie-close, +#cookie .cookie-flag:checked ~ .cookie-content { + display: none; +} + +#cookie .cookie-close { + pointer-events: all; + position: absolute; + top: 1rem; + right: 1rem; + font-size: 32px; + cursor: pointer; +} + +#cookie-icon { + font-size: 40px; + margin: 1%; + margin-top: 3rem; +} diff --git a/templates/web3.html b/templates/web3.html index 95d5472..4099028 100644 --- a/templates/web3.html +++ b/templates/web3.html @@ -24,6 +24,23 @@ welcome to my web3 space feel free to send me nfts as jpeg format + + + + + +

idk if you know but i do love