From e44db03fbbd71a06cf0cd1bb517baec4550733b1 Mon Sep 17 00:00:00 2001
From: Jamil
Date: Mon, 17 Jul 2023 22:07:46 -0700
Subject: [PATCH] Add legalese to website (#1798)
---
website/src/app/blog/firezone-1-0/readme.mdx | 2 +-
.../components/ConsentPreferences/index.tsx | 18 +++++++++++++
.../src/components/EarlyAccessForm/index.tsx | 2 +-
website/src/components/Footer/index.tsx | 26 +++++++++++++++++--
website/src/components/RootLayout/index.tsx | 22 ++++++++++------
5 files changed, 58 insertions(+), 12 deletions(-)
create mode 100644 website/src/components/ConsentPreferences/index.tsx
diff --git a/website/src/app/blog/firezone-1-0/readme.mdx b/website/src/app/blog/firezone-1-0/readme.mdx
index b533540b1..0e737dbf3 100644
--- a/website/src/app/blog/firezone-1-0/readme.mdx
+++ b/website/src/app/blog/firezone-1-0/readme.mdx
@@ -213,7 +213,7 @@ works as follows:
So we're able to both authenticate the untrusted entity at the time of request,
yet also keep our protected entity behind a firewall to keep it invisible to the
-public Internet. In fast, _both_ entities can live behind a stateful firewall
+public Internet. In fact, _both_ entities can live behind a stateful firewall
and the technique would still work -- the principles are the same.
As it turns out, this approach is nothing new. It's how web browsers and VoIP
diff --git a/website/src/components/ConsentPreferences/index.tsx b/website/src/components/ConsentPreferences/index.tsx
new file mode 100644
index 000000000..2cc821107
--- /dev/null
+++ b/website/src/components/ConsentPreferences/index.tsx
@@ -0,0 +1,18 @@
+"use client";
+import Link from "next/link";
+
+export default function ConsentPreferences() {
+ return (
+ {
+ (window as any).displayPreferenceModal();
+ return false;
+ }}
+ >
+ consent preferences
+
+ );
+}
diff --git a/website/src/components/EarlyAccessForm/index.tsx b/website/src/components/EarlyAccessForm/index.tsx
index 6cb85fdb9..79c1cdf62 100644
--- a/website/src/components/EarlyAccessForm/index.tsx
+++ b/website/src/components/EarlyAccessForm/index.tsx
@@ -39,7 +39,7 @@ export default function EarlyAccessForm() {
We're still working out pricing details for the 1.0 release and will
launch an updated pricing page when we have more to share. Our goal is
to price Firezone competitively among other products in the space with
- a cost that scales predictably according to the value it provides.
+ a cost that scales predictably.
diff --git a/website/src/components/Footer/index.tsx b/website/src/components/Footer/index.tsx
index cd2e95ba4..9829bf3ef 100644
--- a/website/src/components/Footer/index.tsx
+++ b/website/src/components/Footer/index.tsx
@@ -1,5 +1,6 @@
import Link from "next/link";
import Image from "next/image";
+import ConsentPreferences from "@/components/ConsentPreferences";
import { LinkedInIcon, GitHubIcon, TwitterIcon } from "@/components/Icons";
@@ -153,12 +154,33 @@ export default function Footer() {