Skip to content

Commit 6a8a529

Browse files
committed
refactor: ♻️ update footer links
1 parent bca6e72 commit 6a8a529

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

docusaurus.config.js

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33
import ConfigLocalized from "./docusaurus.config.localized.json";
4-
import { themes } from 'prism-react-renderer';
4+
import { themes } from "prism-react-renderer";
55

66
const lightCodeTheme = themes.github;
77
const darkCodeTheme = themes.dracula;
@@ -91,7 +91,7 @@ const config = {
9191
containerId: "GTM-K3NQMDX",
9292
},
9393
],
94-
require.resolve("docusaurus-plugin-image-zoom")
94+
require.resolve("docusaurus-plugin-image-zoom"),
9595
],
9696

9797
presets: [
@@ -282,12 +282,21 @@ const config = {
282282
href: "https://www.thetradedesk.com/us/website-privacy-policy",
283283
},
284284
{
285-
label: "Opt-out",
286-
href: "https://www.transparentadvertising.com/",
285+
html: `<a href="#" id="ot-sdk-btn" class="footer__link-item ot-sdk-show-settings">
286+
Website Cookies Settings
287+
</a>`,
287288
},
288289
{
289-
label: "Do not sell my data",
290-
href: getLocalizedConfigValue("adsrvrURL"),
290+
html: `<a class="truevault-polaris-optout footer__link-item"
291+
href="${getLocalizedConfigValue("adsrvrURL")}"
292+
target="_blank"
293+
rel="noreferrer noopener">
294+
<img src="https://polaris.truevaultcdn.com/static/assets/icons/optout-icon-black.svg"
295+
alt="California Consumer Privacy Act (CCPA) Opt-Out Icon"
296+
height="14px"
297+
style="vertical-align:middle" />
298+
Your Privacy Choices
299+
</a>`,
291300
},
292301
],
293302
},
@@ -310,16 +319,16 @@ const config = {
310319
// indexName: "UID2", //staging
311320
},
312321
zoom: {
313-
selector: '.markdown :not(em) > img',
322+
selector: ".markdown :not(em) > img",
314323
config: {
315324
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
316325
background: {
317-
light: 'rgb(255, 255, 255)',
318-
dark: 'rgb(50, 50, 50)'
319-
}
320-
}
321-
}
326+
light: "rgb(255, 255, 255)",
327+
dark: "rgb(50, 50, 50)",
328+
},
329+
},
330+
},
322331
}),
323-
};
332+
};
324333

325334
export default config;

0 commit comments

Comments
 (0)