From 45373f655f68fdd0b320cde175b6108454ad4731 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Sat, 17 Jul 2021 20:32:22 +0530 Subject: Removed Franz paid plans features: - serviceLimit - planSelection - trialStatusBar and other Franz features that were for different tiers of subscription. --- src/components/auth/Pricing.js | 270 ----------------------------------------- 1 file changed, 270 deletions(-) delete mode 100644 src/components/auth/Pricing.js (limited to 'src/components/auth') diff --git a/src/components/auth/Pricing.js b/src/components/auth/Pricing.js deleted file mode 100644 index 2fcabe54d..000000000 --- a/src/components/auth/Pricing.js +++ /dev/null @@ -1,270 +0,0 @@ -import React, { Component } from 'react'; -import PropTypes from 'prop-types'; -import { observer } from 'mobx-react'; -import { defineMessages, intlShape } from 'react-intl'; -import injectSheet from 'react-jss'; -import { H2, Loader } from '@meetfranz/ui'; -import classnames from 'classnames'; - -import { Button } from '@meetfranz/forms'; -import { FeatureItem } from '../ui/FeatureItem'; -import { FeatureList } from '../ui/FeatureList'; - -const messages = defineMessages({ - headline: { - id: 'pricing.trial.headline.pro', - defaultMessage: '!!!Hi {name}, welcome to Franz', - }, - specialTreat: { - id: 'pricing.trial.intro.specialTreat', - defaultMessage: '!!!We have a special treat for you.', - }, - tryPro: { - id: 'pricing.trial.intro.tryPro', - defaultMessage: '!!!Enjoy the full Franz Professional experience completely free for 14 days.', - }, - happyMessaging: { - id: 'pricing.trial.intro.happyMessaging', - defaultMessage: '!!!Happy messaging,', - }, - noStringsAttachedHeadline: { - id: 'pricing.trial.terms.headline', - defaultMessage: '!!!No strings attached', - }, - noCreditCard: { - id: 'pricing.trial.terms.noCreditCard', - defaultMessage: '!!!No credit card required', - }, - automaticTrialEnd: { - id: 'pricing.trial.terms.automaticTrialEnd', - defaultMessage: '!!!Your free trial ends automatically after 14 days', - }, - trialWorth: { - id: 'pricing.trial.terms.trialWorth', - defaultMessage: '!!!Free trial (normally {currency}{price} per month)', - }, - activationError: { - id: 'pricing.trial.error', - defaultMessage: '!!!Sorry, we could not activate your trial!', - }, - ctaAccept: { - id: 'pricing.trial.cta.accept', - defaultMessage: '!!!Start my 14-day Franz Professional Trial ', - }, - ctaStart: { - id: 'pricing.trial.cta.start', - defaultMessage: '!!!Start using Franz', - }, - ctaSkip: { - id: 'pricing.trial.cta.skip', - defaultMessage: '!!!Continue to Ferdi', - }, - featuresHeadline: { - id: 'pricing.trial.features.headline', - defaultMessage: '!!!Franz Professional includes:', - }, -}); - -const styles = theme => ({ - root: { - width: '500px !important', - textAlign: 'center', - padding: 20, - zIndex: 100, - - '& h1': { - }, - }, - container: { - position: 'relative', - marginLeft: -150, - }, - welcomeOffer: { - textAlign: 'center', - fontWeight: 'bold', - marginBottom: '6 !important', - }, - keyTerms: { - textAlign: 'center', - }, - content: { - position: 'relative', - zIndex: 20, - }, - featureContainer: { - width: 300, - position: 'absolute', - left: 'calc(100% / 2 + 250px)', - marginTop: 20, - background: theme.signup.pricing.feature.background, - height: 'auto', - padding: 20, - borderTopRightRadius: theme.borderRadius, - borderBottomRightRadius: theme.borderRadius, - zIndex: 10, - }, - featureItem: { - borderBottom: [1, 'solid', theme.signup.pricing.feature.border], - }, - cta: { - marginTop: 40, - width: '100%', - }, - skipLink: { - textAlign: 'center', - marginTop: 10, - }, - error: { - margin: [20, 0, 0], - color: theme.styleTypes.danger.accent, - }, - priceContainer: { - display: 'flex', - justifyContent: 'space-evenly', - margin: [10, 0, 15], - }, - price: { - '& sup': { - verticalAlign: 14, - fontSize: 20, - }, - }, - figure: { - fontSize: 40, - }, - regularPrice: { - position: 'relative', - - '&:before': { - content: '" "', - position: 'absolute', - width: '130%', - height: 1, - top: 14, - left: -12, - borderBottom: [3, 'solid', 'red'], - transform: 'rotateZ(-20deg)', - }, - }, -}); - -export default @injectSheet(styles) @observer class Signup extends Component { - static propTypes = { - onSubmit: PropTypes.func.isRequired, - isLoadingRequiredData: PropTypes.bool.isRequired, - isActivatingTrial: PropTypes.bool.isRequired, - trialActivationError: PropTypes.bool.isRequired, - canSkipTrial: PropTypes.bool.isRequired, - classes: PropTypes.object.isRequired, - currency: PropTypes.string.isRequired, - price: PropTypes.number.isRequired, - name: PropTypes.string.isRequired, - }; - - static contextTypes = { - intl: intlShape, - }; - - render() { - const { - onSubmit, - isLoadingRequiredData, - isActivatingTrial, - trialActivationError, - canSkipTrial, - classes, - currency, - price, - name, - } = this.props; - const { intl } = this.context; - - const [intPart, fractionPart] = (price).toString().split('.'); - - return ( - <> -
-
- {isLoadingRequiredData ? : ( - - )} -

{intl.formatMessage(messages.headline, { name })}

-
-

- {intl.formatMessage(messages.specialTreat)} -
-

-

- {intl.formatMessage(messages.tryPro)} -
-

-

- {intl.formatMessage(messages.happyMessaging)} -

-

- Stefan Malzner -

-
-
-

- - {currency} - {intPart} - - {fractionPart} -

-

- - {currency} - 0 - - 00 -

-
-
-

- {intl.formatMessage(messages.noStringsAttachedHeadline)} -

-
    - - - -
-
- {trialActivationError && ( -

{intl.formatMessage(messages.activationError)}

- )} -
-
-

- {intl.formatMessage(messages.featuresHeadline)} -

- -
- - ); - } -} -- cgit v1.2.3-70-g09d2