diff --git a/packages/components/src/constants/ThirdPartyLinks.ts b/packages/components/src/constants/ThirdPartyLinks.ts index 7cbc4b157d..b826e6a387 100644 --- a/packages/components/src/constants/ThirdPartyLinks.ts +++ b/packages/components/src/constants/ThirdPartyLinks.ts @@ -2,9 +2,11 @@ * Define links to third party sources here so we can update them in one place. */ class ThirdPartyLinks { + // Call "GetDiscordLink()" to get the correct discord link. // Storyteller Discord public static readonly STORYTELLER_DISCORD = "https://discord.gg/storyteller"; + // Call "GetDiscordLink()" to get the correct discord link. // This should only need to change if our Nitro expires. // Old FakeYou Discord invite link: https://discord.gg/H72KFXm public static readonly FAKEYOU_DISCORD = "https://discord.gg/fakeyou"; diff --git a/packages/fakeyou.com/src/v2/view/nav/FooterNav.tsx b/packages/fakeyou.com/src/v2/view/nav/FooterNav.tsx index 50294b948d..1b066268d0 100644 --- a/packages/fakeyou.com/src/v2/view/nav/FooterNav.tsx +++ b/packages/fakeyou.com/src/v2/view/nav/FooterNav.tsx @@ -20,6 +20,7 @@ import { import { useLocalize } from "hooks"; import { Container } from "components/common"; import { useDomainConfig } from "context/DomainConfigContext"; +import { GetDiscordLink } from "@storyteller/components/src/env/GetDiscordLink"; interface Props { sessionWrapper: SessionWrapper; @@ -98,7 +99,7 @@ function FooterNav(props: Props) {
-

{t("productsTitle")}

+

Studio Engine

+ +
  • + Studio +
  • + +
  • + Studio Tutorial +
  • + +

    {t("communityTitle")}

    + +
  • + + {t("communityDiscord")} + +
  • + +
  • + {t("productUploadModels")} +
  • + +
    +
    +

    AI Tools

    +
  • {t("productTts")}
  • @@ -144,6 +174,10 @@ function FooterNav(props: Props) { {t("productVc")} +
  • + Video Style Transfer +
  • +
  • Voice Designer
  • @@ -152,38 +186,7 @@ function FooterNav(props: Props) { {t("productFaceAnimator")} -
  • - Video Style Transfer -
  • -
  • - {t("productUploadModels")} -
  • -
    -
    -

    {t("communityTitle")}

    - -
  • - - {t("communityDiscord")} - -
  • - -
  • - {t("communityLeaderboard")} -
  • - -
  • - {t("communityGuide")} -
  • - -
  • - {t("communityProfile")} -
  • {t("infoTitle")}

    @@ -205,9 +208,6 @@ function FooterNav(props: Props) { {t("infoPrivacyPolicy")} -
  • - {t("infoApiDocs")} -
  • diff --git a/packages/fakeyou.com/src/v2/view/pages/landing/LandingPage.tsx b/packages/fakeyou.com/src/v2/view/pages/landing/LandingPage.tsx index 4320f20f9c..1377341bf5 100644 --- a/packages/fakeyou.com/src/v2/view/pages/landing/LandingPage.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/landing/LandingPage.tsx @@ -67,7 +67,7 @@ function LandingPage(props: Props) { <> {domain.website === Website.StorytellerAi && ( // - + )} { diff --git a/packages/fakeyou.com/src/v2/view/pages/landing/storyteller/PrelaunchLanding/MainButton.tsx b/packages/fakeyou.com/src/v2/view/pages/landing/storyteller/PrelaunchLanding/MainButton.tsx new file mode 100644 index 0000000000..24ed913ac3 --- /dev/null +++ b/packages/fakeyou.com/src/v2/view/pages/landing/storyteller/PrelaunchLanding/MainButton.tsx @@ -0,0 +1,46 @@ +import React, { useEffect, useState } from "react"; +import "./PrelaunchLanding.scss"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { faArrowRight } from "@fortawesome/pro-solid-svg-icons"; +import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper"; +import { BucketConfig } from "@storyteller/components/src/api/BucketConfig"; +import { faPersonToPortal } from "@fortawesome/pro-duotone-svg-icons"; + +interface Props { + sessionWrapper: SessionWrapper; +} + +export function MainButton(props: Props) { + if (props.sessionWrapper.canAccessStudio()) { + return ( + <> + + Enter Storyteller Studio + + + + ); + + } else { + return ( + <> + + Join the Waitlist + + + + ); + } +} diff --git a/packages/fakeyou.com/src/v2/view/pages/landing/storyteller/PrelaunchLanding/PrelaunchLanding.tsx b/packages/fakeyou.com/src/v2/view/pages/landing/storyteller/PrelaunchLanding/PrelaunchLanding.tsx index 01f51c69c3..e2dad24e56 100644 --- a/packages/fakeyou.com/src/v2/view/pages/landing/storyteller/PrelaunchLanding/PrelaunchLanding.tsx +++ b/packages/fakeyou.com/src/v2/view/pages/landing/storyteller/PrelaunchLanding/PrelaunchLanding.tsx @@ -2,7 +2,9 @@ import React, { useEffect, useState } from "react"; import "./PrelaunchLanding.scss"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faArrowRight } from "@fortawesome/pro-solid-svg-icons"; +import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper"; import { BucketConfig } from "@storyteller/components/src/api/BucketConfig"; +import { MainButton } from "./MainButton"; interface MediaItem { token: string; @@ -12,7 +14,11 @@ interface MediaItem { }; } -const PrelaunchLanding: React.FC = () => { +interface Props { + sessionWrapper: SessionWrapper; +} + +function PrelaunchLanding(props: Props) { const totalGrids = 63; const [mediaItems, setMediaItems] = useState([]); const [blankGrids, setBlankGrids] = useState([15, 16, 17, 22, 23]); @@ -90,13 +96,7 @@ const PrelaunchLanding: React.FC = () => { isBlank ? "blank" : "" }`} > - - Join the Waitlist - - + ); i += 2; @@ -111,13 +111,7 @@ const PrelaunchLanding: React.FC = () => { isBlank ? "blank" : "" }`} > - - Join the Waitlist - - + ); i += 2; @@ -132,13 +126,7 @@ const PrelaunchLanding: React.FC = () => { isBlank ? "blank" : "" }`} > - - Join the Waitlist - - + ); i++;