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..aa32bf72af --- /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 4b6a132bc2..81a6354e73 100644 --- a/src/containers/landing/landing-page.tsx +++ b/src/containers/landing/landing-page.tsx @@ -187,6 +187,11 @@ export class LandingPage extends Component { {t`Digital accessibility`} + + {t`Cookie preferences`} + } /> @@ -205,6 +210,10 @@ export class LandingPage extends Component { alerts: [...this.state.alerts, alert], }); } + + private cookiePreferences() { + window.document.querySelector('#teconsent > a').click(); + } } export default withRouter(LandingPage);