/** * External dependencies */ import { getRedirectUrl, JetpackIcon } from '@automattic/jetpack-components'; import { isWpcomPlatformSite } from '@automattic/jetpack-script-data'; import { ExternalLink } from '@wordpress/components'; import { createInterpolateElement, useMemo } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ import AkismetIcon from '../../icons/akismet'; import CreativeMailIcon from '../../icons/creative-mail'; import GoogleSheetsIcon from '../../icons/google-sheets'; import SalesforceIcon from '../../icons/salesforce'; import CreateFormButton from '../components/create-form-button'; import Details from '../components/details'; import { config } from '../index'; import PatternCard from './pattern-card'; import CheckSVG from './svg/check-svg'; import CloseSVG from './svg/close-svg'; import ExportSVG from './svg/export-svg'; import NotificationsSVG from './svg/notifications-svg'; import WordpressSVG from './svg/wordpress-svg'; /** * Style dependencies */ import './style.scss'; /** * Types */ import type { Pattern } from '../types'; const About = () => { const ASSETS_URL = useMemo( () => config( 'pluginAssetsURL' ), [] ); const patterns: Pattern[] = useMemo( () => [ { image: `${ ASSETS_URL }/images/contact-form.png`, title: __( 'Contact form', 'jetpack-forms' ), recommended: true, code: 'contact-form', description: __( 'Simple form for general inquiries or support requests.', 'jetpack-forms' ), }, { image: `${ ASSETS_URL }/images/rsvp-form.png`, title: __( 'RSVP form', 'jetpack-forms' ), recommended: true, code: 'rsvp-form', description: __( 'Collect attendance confirmations for your event, conference or online event.', 'jetpack-forms' ), }, { image: `${ ASSETS_URL }/images/registration-form.png`, title: __( 'Registration form', 'jetpack-forms' ), code: 'registration-form', description: __( 'Capture user sign-ups with customizable fields and open field input.', 'jetpack-forms' ), }, { image: `${ ASSETS_URL }/images/feedback-form.png`, title: __( 'Feedback form', 'jetpack-forms' ), code: 'feedback-form', description: __( 'Get user insights and ratings to improve your service.', 'jetpack-forms' ), }, { image: `${ ASSETS_URL }/images/appointment-form.png`, title: __( 'Appointment form', 'jetpack-forms' ), code: 'appointment-form', description: __( 'Let users schedule calls, consultations or meetings with ease.', 'jetpack-forms' ), }, { image: `${ ASSETS_URL }/images/lead-capture-form.png`, title: __( 'Lead capture form', 'jetpack-forms' ), code: 'newsletter-form', description: __( 'Use this form to collect contact information from potential leads.', 'jetpack-forms' ), }, ], [ ASSETS_URL ] ); const isWpcomSite = isWpcomPlatformSite(); return (
{ __( 'Start with one of many patterns, customize to your needs', 'jetpack-forms' ) }