From aecbd056bae2108dca89cc0595d54832b7396399 Mon Sep 17 00:00:00 2001 From: Adam Joseph Arling Date: Fri, 6 Oct 2023 09:23:48 -0500 Subject: [PATCH 1/2] Add dismissable Site Content message back to Footer of the app layout --- components/Footer/Footer.tsx | 2 ++ .../SiteContentMessage/SiteContentMessage.styled.ts} | 0 .../SiteContentMessage/SiteContentMessage.tsx} | 7 ++++--- 3 files changed, 6 insertions(+), 3 deletions(-) rename components/{Shared/Message/Message.styled.ts => Footer/SiteContentMessage/SiteContentMessage.styled.ts} (100%) rename components/{Shared/Message/Message.tsx => Footer/SiteContentMessage/SiteContentMessage.tsx} (94%) diff --git a/components/Footer/Footer.tsx b/components/Footer/Footer.tsx index 5f64bb2a..ffa71d95 100644 --- a/components/Footer/Footer.tsx +++ b/components/Footer/Footer.tsx @@ -2,6 +2,7 @@ import Container from "@/components/Shared/Container"; import { FooterStyled } from "@/components/Footer/Footer.styled"; import { Footer as NUFooter } from "@nulib/design-system"; import React from "react"; +import SiteContentMessage from "./SiteContentMessage/SiteContentMessage"; export default function Footer() { return ( @@ -9,6 +10,7 @@ export default function Footer() { + ); } diff --git a/components/Shared/Message/Message.styled.ts b/components/Footer/SiteContentMessage/SiteContentMessage.styled.ts similarity index 100% rename from components/Shared/Message/Message.styled.ts rename to components/Footer/SiteContentMessage/SiteContentMessage.styled.ts diff --git a/components/Shared/Message/Message.tsx b/components/Footer/SiteContentMessage/SiteContentMessage.tsx similarity index 94% rename from components/Shared/Message/Message.tsx rename to components/Footer/SiteContentMessage/SiteContentMessage.tsx index d579f63d..41b9c70d 100644 --- a/components/Shared/Message/Message.tsx +++ b/components/Footer/SiteContentMessage/SiteContentMessage.tsx @@ -3,13 +3,14 @@ import { MessageStyled, MessageText, MessageTitle, -} from "@/components/Shared/Message/Message.styled"; +} from "@/components/Footer/SiteContentMessage/SiteContentMessage.styled"; import { useEffect, useState } from "react"; + import { Button } from "@nulib/design-system"; import Container from "@/components/Shared/Container"; import useSessionStorage from "@/hooks/useSessionStorage"; -const Message = () => { +const SiteContentMessage = () => { const current = Date.now() / 1000; const interval = 86400; // 24 hours @@ -69,4 +70,4 @@ const Message = () => { ); }; -export default Message; +export default SiteContentMessage; From e1fc1f6f60a6aa36c14befab8e4f8c95d55dea97 Mon Sep 17 00:00:00 2001 From: Adam Joseph Arling Date: Fri, 6 Oct 2023 11:46:25 -0500 Subject: [PATCH 2/2] Update text to content banner --- .../SiteContentMessage/SiteContentMessage.tsx | 26 +++++++++---------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/components/Footer/SiteContentMessage/SiteContentMessage.tsx b/components/Footer/SiteContentMessage/SiteContentMessage.tsx index 41b9c70d..bd819eac 100644 --- a/components/Footer/SiteContentMessage/SiteContentMessage.tsx +++ b/components/Footer/SiteContentMessage/SiteContentMessage.tsx @@ -2,7 +2,6 @@ import { MessageContent, MessageStyled, MessageText, - MessageTitle, } from "@/components/Footer/SiteContentMessage/SiteContentMessage.styled"; import { useEffect, useState } from "react"; @@ -44,20 +43,19 @@ const SiteContentMessage = () => {
- Potentially harmful content - Northwestern University Libraries Digital Collections contain - materials that reflect the beliefs and norms of the era and - culture in which they were created or collected. The site contains - offensive imagery, language, or opinions related to a white - supremist, exploitative, and/or discriminatory culture. - Additionally, this site contains sexual content or violence that - may not be appropriate for all audiences. The Libraries are - committed to the ethical digitization and description of materials - that offer alternative histories and center voices from - marginalized cultures. If you have questions or concerns about the - materials, please refer to our “Retention of Challenged Materials” - policy with more information about how to contact us. + Northwestern University Libraries' Digital Collections + contain materials that reflect the beliefs and norms of their eras + and culture in which they were created or collected. The site may + contain imagery, language, or opinions that are offensive and may + not be appropriate for all audiences. The Libraries are committed + to the ethical digitization and description of materials that + offer alternative histories and center voices from marginalized + cultures. Please direct questions to{" "} + + library@northwestern.edu + + .