From 94c2b46d2ac57dc4066c098569ac65eaeac8e4df Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sun, 10 Jul 2022 21:35:21 -0400 Subject: [PATCH] Incorporate old "Clone My Voice" page --- .../VoiceCloneRequestPage.tsx | 381 ++++++++++++++++-- 1 file changed, 347 insertions(+), 34 deletions(-) diff --git a/packages/fakeyou/src/v2/view/clone_voice_requests/VoiceCloneRequestPage.tsx b/packages/fakeyou/src/v2/view/clone_voice_requests/VoiceCloneRequestPage.tsx index 9c0495b140..18902d1d4d 100644 --- a/packages/fakeyou/src/v2/view/clone_voice_requests/VoiceCloneRequestPage.tsx +++ b/packages/fakeyou/src/v2/view/clone_voice_requests/VoiceCloneRequestPage.tsx @@ -25,6 +25,7 @@ import { import { Link } from "react-router-dom"; import { FrontendUrlConfig } from "../../../common/FrontendUrlConfig"; import { distance, delay, delay2, duration } from "../../../data/animation"; +import { USE_REFRESH } from "../../../Refresh"; const Fade = require("react-reveal/Fade"); interface Props {} @@ -64,8 +65,7 @@ function VoiceCloneRequestPage(props: Props) { const [formWasSubmitted, setFormWasSubmitted] = useState(false); // Previous form submission state - const [formWasPrevioiuslySubmitted, setFormWasPreviouslySubmitted] = - useState(false); + const [formWasPrevioiuslySubmitted, setFormWasPreviouslySubmitted] = useState(false); const checkPreviousApplication = useCallback(async () => { const request: CheckVoiceCloneApplicationRequest = {}; @@ -241,42 +241,77 @@ function VoiceCloneRequestPage(props: Props) { return false; }; - const header = ( -
-
-
-
- - FakeYou Mascot - -
-
-
- -
-

- Professionally Clone Your Voice -

-

(or any voice) for just $70

-
-

Want a Custom Voice You Can Use?

-

- For Music, Videos, Twitch Rewards, API, Friends, Family… - whatever you want! + let header = <>; + + if (!USE_REFRESH) { + header = ( + <> +

+
+ +
+ +
+
+ FakeYou's mascot! +
+
+ +
+

+ Professionally Clone Your Voice

+

+ (or any voice) for just $70 +

+ +
+ +
+
+
+ + ); + } else { + header = ( + <> +
+
+
+
+ + FakeYou Mascot +
- +
+ +
+

+ Professionally Clone Your Voice +

+

(or any voice) for just $70

+
+

Want a Custom Voice You Can Use?

+

+ For Music, Videos, Twitch Rewards, API, Friends, Family… + whatever you want! +

+
+
+
+
+
-
-
- ); + + ); + } if (formWasSubmitted) { return ( @@ -334,6 +369,284 @@ function VoiceCloneRequestPage(props: Props) { ); } + if (!USE_REFRESH) { + return ( +
+ + {header} + +
+
+ +

Want a Custom Voice You Can Use?

+

For Music, Videos, Twitch Rewards, API, Friends, Family… whatever you want!

+ + {previouslySubmittedNote} + +

+ We have an extremely talented staff that will personally handle your voice clone request. + Please help us understand more about your voice and how you want to use it, and we'll be in touch + shortly. +

+ +
+ +

First, how should we get in touch?

+ +
+ +
+ + + + +
+

+

+
+ +
+ +
+ + + + +
+

+ Don't forget the #0000 part of your username! +

+

+
+ +
+ +

Who's voice is this?

+ +

If it's your voice, you'll be able to do anything you want with it. If it's another person's voice, you may have + limits on how you can use it (eg. limits on commercialization.) That doesn't mean we can't help you. Even if you + just want your favorite character so you can make Twitter memes, that's fine!

+ +
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+ + + + +
+

+

+
+ +
+ +

How will you use it?

+ +

Click as many as you plan to use!

+ +
+ +
+ + +
+ + + +
+ + + +
+ + + +
+ + +
+ +
+ +
+ +
+ + + + +
+

+

+
+ +
+ +

Do you want it to be private?

+ +

(We'll accept multiple answers here, because maybe you want to use it multiple ways.)

+ +
+ +
+ + +
+ + + +
+ + +
+ +
+ +

How's your audio quality?

+ +

It's okay if you don't have a quality source of audio, but the results are top notch only with a good recording setup.

+ +
+ +
+ + +
+ + +
+ +
+ +

Anything else?

+ + +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ + {errorMessage} + + + +
+
+
+ ); + } + return (
{header}