From 9afeb5b44c060041ac8323da4c6c1e4885f49e98 Mon Sep 17 00:00:00 2001 From: BFlat Date: Mon, 31 Oct 2022 13:35:08 +0700 Subject: [PATCH 1/3] pricing plans --- packages/fakeyou/src/data/PriceTiers.js | 112 ++++---- packages/fakeyou/src/scss/site-refresh.scss | 3 +- .../src/v2/view/NewVocodesContainer.tsx | 5 +- .../fakeyou/src/v2/view/pricing/Pricing.tsx | 264 ------------------ .../src/v2/view/pricing/PricingPage.tsx | 259 +++++++++++++++++ 5 files changed, 324 insertions(+), 319 deletions(-) delete mode 100644 packages/fakeyou/src/v2/view/pricing/Pricing.tsx create mode 100644 packages/fakeyou/src/v2/view/pricing/PricingPage.tsx diff --git a/packages/fakeyou/src/data/PriceTiers.js b/packages/fakeyou/src/data/PriceTiers.js index 4872e10218..6ec704ada7 100644 --- a/packages/fakeyou/src/data/PriceTiers.js +++ b/packages/fakeyou/src/data/PriceTiers.js @@ -1,61 +1,71 @@ const FAKEYOU_PRICES = { - 'free': { - tier: 'free', + free: { + tier: "free", price: 0, features: { - 'Extended Audio': false, - 'mp3': false, - 'Priority Processing': false, - 'Commercial Voices': false - } + "Extended Audio": false, + mp3: false, + "Priority Processing": false, + "Commercial Voices": false, + }, }, - 'basic': { - tier: 'basic', - price: 5, + plus: { + tier: "plus", + price: 7, features: { - 'Extended Audio': true, - 'mp3': false, - 'Priority Processing': false, - 'Commercial Voices': false - } - }, - 'pro': { - tier: 'pro', - price: 30, - features: { - 'Extended Audio': true, - 'mp3': true, - 'Priority Processing': true, - 'Commercial Voices': true - } - } -} - -const STORYTELLER_PRICES = { - 'free': { - tier: 'free', - price: 0, - features: { - 'Priority Processing': false, - 'Stream Labs': false - } - }, - basic: { - tier: 'basic', - price: 5, - features: { - 'Priority Processing': false, - 'Stream Labs': false - } + "Extended Audio": true, + mp3: false, + "Priority Processing": false, + "Commercial Voices": false, + }, }, pro: { - tier: 'premium', + tier: "pro", + price: 15, + features: { + "Extended Audio": true, + mp3: true, + "Priority Processing": true, + "Commercial Voices": true, + }, + }, + elite: { + tier: "elite", + price: 25, + features: { + "Extended Audio": true, + mp3: true, + "Priority Processing": true, + "Commercial Voices": true, + }, + }, +}; + +const STORYTELLER_PRICES = { + free: { + tier: "free", + price: 0, + features: { + "Priority Processing": false, + "Stream Labs": false, + }, + }, + basic: { + tier: "basic", + price: 5, + features: { + "Priority Processing": false, + "Stream Labs": false, + }, + }, + pro: { + tier: "premium", price: 50, features: { - 'Priority Processing': true, - "Stream Labs": true - } - } -} + "Priority Processing": true, + "Stream Labs": true, + }, + }, +}; -export { FAKEYOU_PRICES, STORYTELLER_PRICES } \ No newline at end of file +export { FAKEYOU_PRICES, STORYTELLER_PRICES }; diff --git a/packages/fakeyou/src/scss/site-refresh.scss b/packages/fakeyou/src/scss/site-refresh.scss index 8abb68f445..5b8da0c810 100644 --- a/packages/fakeyou/src/scss/site-refresh.scss +++ b/packages/fakeyou/src/scss/site-refresh.scss @@ -390,11 +390,12 @@ styles with important tags: .panel-border { box-sizing: border-box; - box-shadow: inset 0px 0px 0px 4px lighten($primary, 5%); + box-shadow: inset 0px 0px 0px 3px $primary; } ul.pricing-list { list-style: none; + padding: 0; } ul li { diff --git a/packages/fakeyou/src/v2/view/NewVocodesContainer.tsx b/packages/fakeyou/src/v2/view/NewVocodesContainer.tsx index c8113b8a61..899cedb7ad 100644 --- a/packages/fakeyou/src/v2/view/NewVocodesContainer.tsx +++ b/packages/fakeyou/src/v2/view/NewVocodesContainer.tsx @@ -56,6 +56,7 @@ import { Language } from "@storyteller/components/src/i18n/Language"; import { VoiceCloneRequestPage } from "./clone_voice_requests/VoiceCloneRequestPage"; import { VocodesPage } from "./vocodes/VocodesPage"; import { UploadVocoderPage } from "./upload/UploadVocoderPage"; +import { PricingPage } from "./pricing/PricingPage"; interface Props { sessionWrapper: SessionWrapper; @@ -174,14 +175,12 @@ class NewVocodesContainer extends React.Component { /> - {/* { }} + querySessionCallback={() => {}} sessionWrapper={this.props.sessionWrapper} /> - */} diff --git a/packages/fakeyou/src/v2/view/pricing/Pricing.tsx b/packages/fakeyou/src/v2/view/pricing/Pricing.tsx deleted file mode 100644 index 62f8125b3a..0000000000 --- a/packages/fakeyou/src/v2/view/pricing/Pricing.tsx +++ /dev/null @@ -1,264 +0,0 @@ -import React from "react"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import { Link } from "react-router-dom"; -import { - faCheckCircle as TRUE, - faTimesCircle as FALSE, - faCheck, -} from "@fortawesome/free-solid-svg-icons"; -import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper"; -import { - FAKEYOU_PRICES as FYP, - STORYTELLER_PRICES as STP, -} from "@storyteller/fakeyou/src/data/PriceTiers"; -import { - distance, - pricing1, - pricing2, - pricing3, - delay2, - duration, -} from "../../../data/animation"; - -const Fade = require("react-reveal/Fade"); - -interface Props { - sessionWrapper: SessionWrapper; - querySessionCallback: () => void; -} - -function PricingPage(props: Props) { - function capitalize(word: string) { - return word.charAt(0).toUpperCase() + word.slice(1); - } - - const [FY_TIERS, ST_TIERS] = [Object.keys(FYP), Object.keys(STP)]; - - const [FY_FEATURES, ST_FEATURES] = [ - Object.keys(FYP.free.features), - Object.keys(STP.free.features), - ]; - - let current_tiers: string[], current_features: string[], current_list: any; - - const site = window.location.hostname; - - switch (site) { - case "fakeyou": - [current_tiers, current_features, current_list] = [ - FY_TIERS, - FY_FEATURES, - FYP, - ]; - break; - case "storyteller": - [current_tiers, current_features, current_list] = [ - ST_TIERS, - ST_FEATURES, - STP, - ]; - break; - default: - [current_tiers, current_features, current_list] = [ - FY_TIERS, - FY_FEATURES, - FYP, - ]; - break; - } - - return ( -
- -
-

FakeYou Pricing

-
-
- -
-
-
- -
-

Free

-

Great for hobbyists

- - Create free TTS - -

- ${current_list.free.price} - /month -

-
    -
  • - - Unlimited TTS Generation -
  • -
  • - - Up to 10 seconds audio -
  • -
-
-
-
-
- -
-

Basic

-

Great for hobbyists

- - Buy Basic - -

- ${current_list.basic.price} - /month -

-
    -
  • - - Unlimited TTS Generation -
  • -
  • - - Up to 30 seconds audio -
  • -
  • - - Priority processing -
  • -
-
-
-
-
- -
-

Pro

-

Great for hobbyists

- - Buy Pro - -

- ${current_list.pro.price} - /month -

-
    -
  • - - Unlimited TTS Generation -
  • -
  • - - Up to 1 minute audio -
  • -
  • - - Priority processing -
  • -
  • - - Generate mp3 file -
  • -
  • - - For Commercial Use -
  • -
-
-
-
-
-
- - -
-
- - - - - - {current_tiers.map((e) => { - return ( - - ); - })} - - - - - - - - - - - - {current_features.map((e, i) => { - return ( - - - - - - - - - - ); - })} - -
Feature List - {capitalize(e)} -
Price${current_list.free.price}/month${current_list.basic.price}/month${current_list.pro.price}/month
{e} - - - - - -
-
-
-
-
- ); -} - -export { PricingPage }; diff --git a/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx b/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx new file mode 100644 index 0000000000..f3fcce327e --- /dev/null +++ b/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx @@ -0,0 +1,259 @@ +import React from "react"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; +import { Link } from "react-router-dom"; +import { + faCheckCircle as TRUE, + faTimesCircle as FALSE, + faCheck, +} from "@fortawesome/free-solid-svg-icons"; +import { SessionWrapper } from "@storyteller/components/src/session/SessionWrapper"; +import { + FAKEYOU_PRICES as FYP, + STORYTELLER_PRICES as STP, +} from "@storyteller/fakeyou/src/data/PriceTiers"; + +interface Props { + sessionWrapper: SessionWrapper; + querySessionCallback: () => void; +} + +function PricingPage(props: Props) { + function capitalize(word: string) { + return word.charAt(0).toUpperCase() + word.slice(1); + } + + const [FY_TIERS, ST_TIERS] = [Object.keys(FYP), Object.keys(STP)]; + + const [FY_FEATURES, ST_FEATURES] = [ + Object.keys(FYP.free.features), + Object.keys(STP.free.features), + ]; + + let current_tiers: string[], current_features: string[], current_list: any; + + const site = window.location.hostname; + + switch (site) { + case "fakeyou": + [current_tiers, current_features, current_list] = [ + FY_TIERS, + FY_FEATURES, + FYP, + ]; + break; + case "storyteller": + [current_tiers, current_features, current_list] = [ + ST_TIERS, + ST_FEATURES, + STP, + ]; + break; + default: + [current_tiers, current_features, current_list] = [ + FY_TIERS, + FY_FEATURES, + FYP, + ]; + break; + } + + return ( +
+
+

Pricing

+
+
+
+
+
+

Free

+ + Use free + +

+ ${current_list.free.price} + /month +

+
    +
  • + + Unlimited TTS Generation +
  • +
  • + + Up to 10 seconds audio +
  • +
+
+
+
+
+

Plus

+ + Buy Plus + +

+ ${current_list.plus.price} + /month +

+
    +
  • + + Unlimited TTS Generation +
  • +
  • + + Up to 30 seconds audio +
  • +
  • + + Priority processing +
  • +
+
+
+
+
+

Pro

+ + Buy Pro + +

+ ${current_list.pro.price} + /month +

+
    +
  • + + Unlimited TTS Generation +
  • +
  • + + Up to 1 minute audio +
  • +
  • + + Priority processing +
  • +
  • + + Generate mp3 file +
  • +
  • + + For Commercial Use +
  • +
+
+
+
+
+

Elite

+ + Buy Elite + +

+ ${current_list.elite.price} + /month +

+
    +
  • + + Unlimited TTS Generation +
  • +
  • + + Up to 1 minute audio +
  • +
  • + + Priority processing +
  • +
  • + + Generate mp3 file +
  • +
  • + + For Commercial Use +
  • +
+
+
+
+
+ +
+
+ + + + + + {current_tiers.map((e) => { + return ( + + ); + })} + + + + + + + + + + + + {current_features.map((e, i) => { + return ( + + + + + + + + + + ); + })} + +
Feature List + {capitalize(e)} +
Price${current_list.free.price}/month${current_list.plus.price}/month${current_list.pro.price}/month
{e} + + + + + +
+
+
+
+ ); +} + +export { PricingPage }; From 0dbdd9f5a8919a49f012a2da49fa03a588dfeeee Mon Sep 17 00:00:00 2001 From: BFlat Date: Mon, 31 Oct 2022 16:00:56 +0700 Subject: [PATCH 2/3] pricing page update --- packages/fakeyou/src/scss/site-refresh.scss | 11 + .../src/v2/view/pricing/PricingPage.tsx | 210 +++++++++++++++--- 2 files changed, 194 insertions(+), 27 deletions(-) diff --git a/packages/fakeyou/src/scss/site-refresh.scss b/packages/fakeyou/src/scss/site-refresh.scss index 5b8da0c810..c05e1f168f 100644 --- a/packages/fakeyou/src/scss/site-refresh.scss +++ b/packages/fakeyou/src/scss/site-refresh.scss @@ -396,6 +396,17 @@ styles with important tags: ul.pricing-list { list-style: none; padding: 0; + + li { + font-size: 14px; + } + + .small-text { + font-size: 12px; + font-weight: 400; + opacity: 0.8; + color: lighten($primary, 10%); + } } ul li { diff --git a/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx b/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx index f3fcce327e..292ea7192f 100644 --- a/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx +++ b/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx @@ -61,71 +61,139 @@ function PricingPage(props: Props) {

Pricing

+

+ Some kind of description here, idk haven't thought of it. +

-
+
-

Free

- - Use free +

Starter

+ + Use for free

${current_list.free.price} /month

-
    +
      +
    • TTS
    • - Unlimited TTS Generation + Unlimited generation
    • - Up to 10 seconds audio + Up to 12 seconds audio +
    • +
    • VC Web
    • +
    • + + Up to 12 seconds audio +
    • +
    • + VC App (registered users) +
    • +
    • + 5 + model downloads +
    • +
    • + + Up to 12 secs prerecorded +
    • +
    • + + Up to 2 mins realtime +
    • +
    • Wav2Lip
    • +
    • + + Up to 12 seconds video +
    • +
    • Processing Priority
    • +
    • + + Level 0 +
    • +
    • + + Level 1 (registered users)
-
+

Plus

- + Buy Plus

${current_list.plus.price} /month

-
    +
      +
    • TTS
    • - Unlimited TTS Generation + Unlimited generation
    • Up to 30 seconds audio
    • +
    • VC Web
    • +
    • + + Up to 30 seconds audio +
    • - Priority processing + Push to play +
    • +
    • VC App
    • +
    • + + 10 model downloads +
    • +
    • + + Up to 30 secs prerecorded +
    • +
    • + + Up to 7 mins realtime +
    • +
    • Wav2Lip
    • +
    • + + Up to 1 minute video +
    • +
    • Processing Priority
    • +
    • + + Level 20
-
+

Pro

- + Buy Pro

${current_list.pro.price} /month

-
    +
      +
    • TTS
    • - Unlimited TTS Generation + Unlimited generation
    • @@ -133,49 +201,137 @@ function PricingPage(props: Props) {
    • - Priority processing + Generate MP3 file
    • - Generate mp3 file + Upload private models +
    • +
    • VC Web
    • +
    • + + Up to 2 minutes audio
    • - For Commercial Use + Push to play +
    • +
    • + + Generate MP3 file +
    • +
    • VC App
    • +
    • + + 20 model downloads +
    • +
    • + + Up to 5 mins prerecorded +
    • +
    • + + Up to 15 mins realtime +
    • +
    • Wav2Lip
    • +
    • + + Up to 2 minutes video +
    • +
    • Processing Priority
    • +
    • + + Level 30 +
    • +
    • API Access
    • +
    • + + Full API access
-
+

Elite

- + Buy Elite

${current_list.elite.price} /month

-
    +
      +
    • TTS
    • - Unlimited TTS Generation + Unlimited generation
    • - Up to 1 minute audio + Up to 5 minutes audio
    • - Priority processing + Generate MP3 file
    • - Generate mp3 file + Upload private models
    • - For Commercial Use + Share private models +
    • +
    • VC Web
    • +
    • + + Up to 7 minutes audio +
    • +
    • + + Push to play +
    • +
    • + + Generate MP3 file +
    • +
    • VC App
    • +
    • + + Unlimited models +
    • +
    • + + Unlimited prerecorded +
    • +
    • + + Unlimited realtime +
    • +
    • Wav2Lip
    • +
    • + + Up to 5 minutes video +
    • +
    • + + Turn off watermark +
    • +
    • Processing Priority
    • +
    • + + Level 40 +
    • +
    • API Access
    • +
    • + + Full API access +
    • +
    • Commercial Voices
    • +
    • + + Usable commercial voices
From b3c35e80a1c80ec76951af73dd7134c0882796bb Mon Sep 17 00:00:00 2001 From: BFlat Date: Tue, 1 Nov 2022 11:46:58 +0700 Subject: [PATCH 3/3] minor changes --- packages/fakeyou/src/v2/view/pricing/PricingPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx b/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx index 292ea7192f..61a9a8f4c1 100644 --- a/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx +++ b/packages/fakeyou/src/v2/view/pricing/PricingPage.tsx @@ -331,7 +331,7 @@ function PricingPage(props: Props) {
  • Commercial Voices
  • - Usable commercial voices + FakeYou commercial voices