diff --git a/CHANGES/2163.misc b/CHANGES/2163.misc new file mode 100644 index 0000000000..d0223ca342 --- /dev/null +++ b/CHANGES/2163.misc @@ -0,0 +1 @@ +community - add trustarc diff --git a/community/Dockerfile b/community/Dockerfile index 3778ab3d3e..4db560763e 100644 --- a/community/Dockerfile +++ b/community/Dockerfile @@ -3,6 +3,7 @@ WORKDIR /workspace/ RUN mkdir -p /workspace/ && \ apk add --no-cache git COPY . /workspace/ +COPY community/index.html /workspace/src/index.html RUN npm ci && \ npm run gettext:extract && \ npm run gettext:compile && \ diff --git a/community/index.html b/community/index.html new file mode 100644 index 0000000000..5510e2f6c3 --- /dev/null +++ b/community/index.html @@ -0,0 +1,25 @@ + + + + + <%= htmlWebpackPlugin.options.applicationName %> + + + + +
+ + + + diff --git a/src/containers/landing/landing-page.tsx b/src/containers/landing/landing-page.tsx index 4101785260..355f067b38 100644 --- a/src/containers/landing/landing-page.tsx +++ b/src/containers/landing/landing-page.tsx @@ -194,6 +194,11 @@ export class LandingPage extends Component { {t`Digital accessibility`} + + {t`Cookie preferences`} + } /> @@ -208,6 +213,14 @@ export class LandingPage extends Component { alerts: [...this.state.alerts, alert], }); } + + private cookiePreferences() { + ( + window.document.querySelector( + '#teconsent > a', + ) as HTMLAnchorElement | null + )?.click(); + } } export default withRouter(LandingPage);