import React from "react"; import { createRoot } from "react-dom/client"; import { StyleProvider } from "@ant-design/cssinjs"; import { Button, Card, Col, Row, Typography, Space, Avatar, ConfigProvider, } from "antd"; import { GiftOutlined, CheckCircleOutlined, CalendarOutlined, LinkOutlined, RocketOutlined, ArrowRightOutlined, RetweetOutlined, ControlOutlined, CarOutlined, ShoppingCartOutlined, TagsOutlined, } from "@ant-design/icons"; import { __ } from "@wordpress/i18n"; import Logo from "../Components/Logo"; type FeatureCardProps = { icon: React.ReactNode; title: string; description: string; color: string; }; const { Text } = Typography; const features = [ { icon: , title: __("Buy X, Get X Deals", "swift-coupons-for-woocommerce"), description: __( "Create powerful BOGO-style discounts and other advanced product offers effortlessly.", "swift-coupons-for-woocommerce" ), color: "#6c63ff", }, { icon: , title: __("Cart Qualifiers", "swift-coupons-for-woocommerce"), description: __( "Apply coupons only when specific conditions are met, like cart quantity, cart total, user role, items in cart, etc.", "swift-coupons-for-woocommerce" ), color: "#34d399", }, { icon: , title: __("Advanced Scheduling", "swift-coupons-for-woocommerce"), description: __( "Set precise start and end dates, or schedule coupons to be active on specific days of the week.", "swift-coupons-for-woocommerce" ), color: "#fbbf24", }, { icon: , title: __("Auto-Apply Coupons", "swift-coupons-for-woocommerce"), description: __( "Improve user experience by automatically applying the best possible coupon at checkout.", "swift-coupons-for-woocommerce" ), color: "#f87171", }, { icon: , title: __("URL Coupon Sharing", "swift-coupons-for-woocommerce"), description: __( "Generate user-friendly links that automatically apply a coupon when a customer visits your store.", "swift-coupons-for-woocommerce" ), color: "#60a5fa", }, { icon: , title: __("Shipping Discounts", "swift-coupons-for-woocommerce"), description: __( "Apply shipping discounts and free shipping offers to increase conversions and reduce cart abandonment.", "swift-coupons-for-woocommerce" ), color: "#10b981", }, { icon: , title: __("Add Products", "swift-coupons-for-woocommerce"), description: __( "Automatically add specific products to customer carts when coupons are applied for targeted promotions.", "swift-coupons-for-woocommerce" ), color: "#f59e0b", }, { icon: , title: __("Add Categories", "swift-coupons-for-woocommerce"), description: __( "Target entire product categories for streamlined promotional campaigns and bulk discount management.", "swift-coupons-for-woocommerce" ), color: "#8b5cf6", }, { icon: , title: __("And Much More...", "swift-coupons-for-woocommerce"), description: __( "Explore a rich set of features designed to supercharge your WooCommerce promotions.", "swift-coupons-for-woocommerce" ), color: "#a78bfa", }, ]; const FeatureCard = ({ icon, title, description, color }: FeatureCardProps) => ( {title} {description} ); const Welcome = () => { const handleGoToCoupons = () => { window.location.href = "/wp-admin/edit.php?post_type=shop_coupon"; }; return ( <>
{/* Padding bottom to clear sticky footer */}
{/* Header Section */}
{__( "Welcome to Swift Coupons!", "swift-coupons-for-woocommerce" )} {__( "You've unlocked a powerful new way to manage WooCommerce coupons.", "swift-coupons-for-woocommerce" )}
{__( "Ready to get started?", "swift-coupons-for-woocommerce" )}
{/* Features Intro */}
{__( "Unlock Your Promotional Superpowers", "swift-coupons-for-woocommerce" )} {__( "Here are some of the key features now at your fingertips:", "swift-coupons-for-woocommerce" )}
{/* Features Grid */} {features.map((feature, index) => ( ))}
{__("Powered by", "swift-coupons-for-woocommerce")}{" "} Sreshto
); }; const container = document.getElementById("swift-coupons-welcome-root"); if (container) { createRoot(container).render( ); }