import React from "react"; import clsx from "clsx"; import { LandingArrowRightIcon } from "./icons/landing-arrow-right"; import { ShowcaseWrapper } from "../components/landing/showcase-wrapper"; export const LandingHeroShowcaseSection = ({}) => { const [activeApp, setActiveApp] = React.useState(apps[0]); const ShowcaseComponent = React.useMemo(() => { return activeApp.showcase; }, [activeApp.name]); return (
f.name === activeApp.name, )})) translateZ(0px)`, }} /> {apps.map((app, index) => ( ))}
); }; const ShowcaseCRM = ({ className }: { className?: string }) => { return ( ); }; const ShowcaseHR = ({ className }: { className?: string }) => { return ( ); }; const ShowcaseDevOps = ({ className }: { className?: string }) => { return ( ); }; const ShowcaseBackup = ({ className }: { className?: string }) => { return ( ); }; const apps = [ { name: "OpenAdmin", link: "https://demo.openpanel.co/openadmin/", showcase: ShowcaseHR, label: "See live demo", }, { name: "OpenPanel", link: "https://demo.openpanel.co/openpanel/", showcase: ShowcaseCRM, label: "See live demo", }, { name: "OpenBackup", link: "https://demo.openpanel.co/", showcase: ShowcaseBackup, dark: true, label: "More info", }, { name: "OpenCLI", link: "https://demo.openpanel.co/", showcase: ShowcaseDevOps, dark: true, label: "Browse Commands", }, ];