Skip to content

Commit

Permalink
Add auto-disable to announcement banner (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangoree authored Jul 23, 2024
1 parent f6c0dfd commit 78fc99b
Showing 1 changed file with 28 additions and 23 deletions.
51 changes: 28 additions & 23 deletions apps/landing-page/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,38 @@ import { Navigation } from "src/ui/Navigation";
import { GitHubIcon } from "src/ui/svg/GitHubIcon";
import { Footer } from "./ui/Footer";

const SHOW_ANNOUNCEMENT_BANNER = false;
const ANNOUNCEMENT_BANNER_EXPIRY = new Date("07/18/2024");

function App(): ReactElement {
return (
<>
{/* ANNOUNCEMENT BANNER */}
<div className="h-10 relative z-10 bg-black flex items-center justify-center text-[#cac8dc]">
<p>
We&apos;ve updated our{" "}
<a
href="https://delv-public.s3.us-east-2.amazonaws.com/delv-privacy-policy.pdf"
className="text-[#71F8F8]"
target="_blank"
rel="noreferrer"
>
Privacy Policy
</a>{" "}
and{" "}
<a
href="https://delv-public.s3.us-east-2.amazonaws.com/delv-terms-of-service.pdf"
className="text-[#71F8F8]"
target="_blank"
rel="noreferrer"
>
Terms of Service
</a>
.
</p>
</div>
{SHOW_ANNOUNCEMENT_BANNER && new Date() < ANNOUNCEMENT_BANNER_EXPIRY && (
<div className="h-10 relative z-10 bg-black flex items-center justify-center text-[#cac8dc]">
<p>
We&apos;ve updated our{" "}
<a
href="https://delv-public.s3.us-east-2.amazonaws.com/delv-privacy-policy.pdf"
className="text-[#71F8F8]"
target="_blank"
rel="noreferrer"
>
Privacy Policy
</a>{" "}
and{" "}
<a
href="https://delv-public.s3.us-east-2.amazonaws.com/delv-terms-of-service.pdf"
className="text-[#71F8F8]"
target="_blank"
rel="noreferrer"
>
Terms of Service
</a>
.
</p>
</div>
)}

<Navigation />
<img src={cornerLinesLeft} className="absolute top-0 left-0 opacity-30" />
Expand Down

0 comments on commit 78fc99b

Please sign in to comment.