From 16dc7978c3b055a0c83bdec349226c48e26d49b5 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Wed, 2 Feb 2022 17:52:17 -0600 Subject: [PATCH 01/27] :sparkles: add safe note terms component [sc-712] --- components/Sections/SafeTerms.jsx | 45 +++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 components/Sections/SafeTerms.jsx diff --git a/components/Sections/SafeTerms.jsx b/components/Sections/SafeTerms.jsx new file mode 100644 index 0000000..d7da7a4 --- /dev/null +++ b/components/Sections/SafeTerms.jsx @@ -0,0 +1,45 @@ +export default function SafeTerms({ title, subTitle, description }) { + return ( +
+
+ + {subTitle} + +

+ {title} +

+

{description}

+
+
+ {[ + { + safeTitle: "Cap", + href: "", + description: '"Standard", valuation cap only.', + }, + { + safeTitle: "Discount", + href: "", + description: + "Discount applies at conversion during the Liquidity Event.", + }, + { + safeTitle: "MFN", + href: "", + description: "No cap and no discount with MFN provision.", + }, + ]?.map((item, index) => ( +
+ +

+ {item?.description} +

+
+ ))} +
+
+ ); +} From 8704da4549c48c48a3c2f357e489eead05893a5d Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Wed, 2 Feb 2022 17:52:21 -0600 Subject: [PATCH 02/27] :recycle: incorporate SafeTerms component [sc-712] --- pages/index.jsx | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/pages/index.jsx b/pages/index.jsx index 0e19aaa..df279eb 100644 --- a/pages/index.jsx +++ b/pages/index.jsx @@ -1,4 +1,5 @@ import { useState, useEffect } from "react"; +import { signIn } from "next-auth/react"; import { fetcher, clientJwtDecode } from "../lib/utils"; import { useSession } from "next-auth/react"; import { routeSeoContent } from "../siteMetadata.js"; @@ -15,6 +16,7 @@ import FactSnippets from "../components/Sections/FactSnippets"; import InfoBlock from "../components/Sections/InfoBlock"; import Team from "../components/Sections/Team"; import FAQ from "../components/Sections/FAQ"; +import SafeTerms from "../components/Sections/SafeTerms"; import { entityTitle, title, @@ -43,7 +45,6 @@ export default function Funded() { const [mobileMenuIsClicked, setMobileMenuIsClicked] = useState(true); const [state, setState] = useState(null); const [decoded, setDecoded] = useState(null); - const { data: session, status } = useSession(); const { data, error } = useSwr( @@ -51,6 +52,7 @@ export default function Funded() { { data: { sessionId: state?.sessionId } }, fetcher ); + useEffect(() => { if (typeof state?.sessionId !== "undefined") { mutate("/api/session", { sessionId: state?.sessionId }, true); @@ -165,6 +167,23 @@ export default function Funded() { /> + {!session ? ( + + ) : ( + + )} {!session ? null : ( <> From 93e904bd39177c77aef33ab50c3894e4cb507b73 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Wed, 2 Feb 2022 17:52:54 -0600 Subject: [PATCH 03/27] :fire: :recycle: remove unused signOut auth func --- components/FactSnippetsHero.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/FactSnippetsHero.jsx b/components/FactSnippetsHero.jsx index 5c6e916..303906b 100644 --- a/components/FactSnippetsHero.jsx +++ b/components/FactSnippetsHero.jsx @@ -1,4 +1,4 @@ -import { signIn, signOut } from "next-auth/react"; +import { signIn } from "next-auth/react"; export default function FactSnippetsHero({ subTitle, From a8edfdf0720f8635d5b85c1ac50b468dd8c92599 Mon Sep 17 00:00:00 2001 From: "Jason R. Stevens, CFA" Date: Wed, 2 Feb 2022 17:53:19 -0600 Subject: [PATCH 04/27] :recycle: change id to 'info-block' --- components/Sections/InfoBlock.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/Sections/InfoBlock.jsx b/components/Sections/InfoBlock.jsx index b6e77fa..f89b47b 100644 --- a/components/Sections/InfoBlock.jsx +++ b/components/Sections/InfoBlock.jsx @@ -1,6 +1,6 @@ export default function InfoBlock({ title, description, cta, ctaHref }) { return ( - diff --git a/components/WhyInvestHero.jsx b/components/WhyInvestHero.jsx index 6970a54..4626d5a 100644 --- a/components/WhyInvestHero.jsx +++ b/components/WhyInvestHero.jsx @@ -11,12 +11,6 @@ export default function WhyInvestHero({ subTitle, title, description, cta }) {

{description}

- - {cta} - );