diff --git a/.env.development b/.env.development index cbc28d5..466ca79 100644 --- a/.env.development +++ b/.env.development @@ -15,7 +15,6 @@ ATS_RESUME_URL=URL # Location of the ATS-compatible resume PDF (optional, remo RESUME_HAS_REFS=false # Appends last page of the resume to a result PDF file (only appies to non-ATS version) ALERT_TEXT_URL=URL # URL of a txt file with urgent message to be displayed (see app/_components/AlertMessage.tsx) CLARITY_ID=string # Clarity Analytics ID (optional, remove to disable) -CLARITY_CONSENT=1 # 1 if you need to request explicit consent from user, 0 if not (requires CLARITY_ID) CF_SITEKEY=3x00000000000000000000FF # Cloudflare Turnstile captcha sitekey for contact form (optional, remove to siable) CF_SECRET=1x0000000000000000000000000000000AA # Secret for token validation (requries CF_SITEKEY) diff --git a/app/_components/CookieBanner.module.scss b/app/_components/CookieBanner.module.scss index 5bbc0ea..9a5c1f4 100644 --- a/app/_components/CookieBanner.module.scss +++ b/app/_components/CookieBanner.module.scss @@ -41,11 +41,6 @@ } } - .dismiss - { - border-left: none; - } - .controls { display: grid; @@ -65,19 +60,16 @@ width: 100%; bottom: 0; - &:not(:has(> .dismiss)) + flex-flow: column; + + .learnMore { - flex-flow: column; + border-bottom: none; + } - .learnMore - { - border-bottom: none; - } - - .controls > button:last-child - { - border-left: none; - } + .controls > button:last-child + { + border-left: none; } } } diff --git a/app/_components/CookieBanner.tsx b/app/_components/CookieBanner.tsx index 10a7582..7922024 100644 --- a/app/_components/CookieBanner.tsx +++ b/app/_components/CookieBanner.tsx @@ -1,12 +1,11 @@ "use client"; -import { acceptCookies, dismissCookies, getCookieChoice, rejectCookies } from "@/_utils/analytics/client"; -import { Dismiss24Regular } from "@fluentui/react-icons"; +import { acceptCookies, getCookieChoice, rejectCookies } from "@/_utils/analytics/client"; import React, { useCallback, useEffect, useState } from "react"; import Button from "./Button"; import cls from "./CookieBanner.module.scss"; -const CookieBanner: React.FC<{ askForConsent: boolean; }> = props => +const CookieBanner: React.FC = () => { const [visible, setVisible] = useState(false); @@ -36,12 +35,6 @@ const CookieBanner: React.FC<{ askForConsent: boolean; }> = props => setVisible(false); }, []); - const dismiss = useCallback(() => - { - dismissCookies(); - setVisible(false); - }, []); - if (!visible) return null; @@ -59,16 +52,10 @@ const CookieBanner: React.FC<{ askForConsent: boolean; }> = props =>
- { props.askForConsent ? -- If you previously gave your consent to use cookies, - you can revoke it by clicking "Revoke my consent" button on this page below - (the button is available only if the consent was given). - Recorded data will be deleted after 30-day retention period. -
- } ++ If you previously gave your consent to use cookies, + you can revoke it by clicking "Revoke my consent" button on this page below + (the button is available only if the consent was given). + Recorded data will be deleted after 30-day retention period. +