From 46ed5801da57dc7dbb38ce80c4601639423e934e Mon Sep 17 00:00:00 2001 From: Radoslaw Olejniczak Date: Fri, 22 Aug 2025 15:45:29 +0200 Subject: [PATCH 1/6] onetrust cookie banner implementation & styles --- README.md | 1 - components/navigation/footer.js | 6 +- components/utilities/breadCrumbs.js | 2 +- components/utilities/cookieSettingsModal.js | 73 ------ .../utilities/cookieSettingsModal.module.css | 167 -------------- components/utilities/gdpr.js | 217 ------------------ components/utilities/gdpr.module.css | 42 ---- .../develop/concepts/configuration/options.md | 14 -- next-sitemap.config.js | 9 +- next.config.mjs | 98 ++++---- pages/[...slug].js | 45 +--- pages/index.js | 54 +---- styles/cookie-banner.scss | 148 ++++++++++++ styles/main.scss | 1 + 14 files changed, 216 insertions(+), 661 deletions(-) delete mode 100644 components/utilities/cookieSettingsModal.js delete mode 100644 components/utilities/cookieSettingsModal.module.css delete mode 100644 components/utilities/gdpr.js delete mode 100644 components/utilities/gdpr.module.css create mode 100644 styles/cookie-banner.scss diff --git a/README.md b/README.md index 39b0e4350..eb9a3f49d 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,6 @@ To add, edit, or delete content in our documentation, you have to modify Markdow - `kb/` Contains `.md` files that populate the Knowledge Base. - `library/` Contains `.md` files that populate the Streamlit Library section. - `streamlit-cloud/`Contains `.md` files that populate the Streamlit Community Cloud section. -- `gdpr-banner.md` You'll never have to edit this file. - `index.md` Contains text that populates the index page. - `menu.md` This is a special file containing only front matter that defines the docs Menu. You will need to add an entry on this file for each new page you create within the docs' site. diff --git a/components/navigation/footer.js b/components/navigation/footer.js index 474b8e874..197819a92 100644 --- a/components/navigation/footer.js +++ b/components/navigation/footer.js @@ -2,7 +2,7 @@ import Link from "next/link"; import styles from "./footer.module.css"; -const Footer = ({ setIsTelemetryModalVisible }) => { +const Footer = () => { return (