|
| 1 | +import React from "react"; |
| 2 | +import Link from "@docusaurus/Link"; |
| 3 | +import { Cloud, Server } from "lucide-react"; |
| 4 | +import { cmdBaseUrl } from "../../../cmdBaseUrl"; |
| 5 | + |
| 6 | +const DeploymentCard = ({ |
| 7 | + title, |
| 8 | + description, |
| 9 | + buttonText, |
| 10 | + buttonHref, |
| 11 | + icon, |
| 12 | +}: { |
| 13 | + title: string; |
| 14 | + description: string; |
| 15 | + buttonText: string; |
| 16 | + buttonHref: string; |
| 17 | + icon: React.ReactNode; |
| 18 | +}) => { |
| 19 | + return ( |
| 20 | + <div className="flex flex-col justify-between p-8 rounded-2xl bg-gradient-to-br from-secondary-wopee to-purple-800 text-white h-80 max-w-md hover:shadow-xl transition-shadow duration-300"> |
| 21 | + <div> |
| 22 | + <div className="flex items-center gap-3 mb-6"> |
| 23 | + <div className="text-primary-wopee">{icon}</div> |
| 24 | + <h3 className="text-3xl font-bold">{title}</h3> |
| 25 | + </div> |
| 26 | + <p className="text-lg leading-relaxed opacity-90">{description}</p> |
| 27 | + </div> |
| 28 | + |
| 29 | + <Link href={buttonHref} className="group mt-8"> |
| 30 | + <button className="w-full bg-white text-secondary-wopee font-semibold rounded-lg px-8 py-4 text-lg hover:bg-primary-wopee hover:text-secondary-wopee transition-all duration-200 hover:shadow-lg"> |
| 31 | + {buttonText} |
| 32 | + </button> |
| 33 | + </Link> |
| 34 | + </div> |
| 35 | + ); |
| 36 | +}; |
| 37 | + |
| 38 | +const HomeDeploymentOptions = () => { |
| 39 | + return ( |
| 40 | + <section className="py-16 bg-slate-50 dark:bg-slate-900"> |
| 41 | + <div className="container mx-auto px-4"> |
| 42 | + <div className="text-center mb-12"> |
| 43 | + <h2 className="text-4xl font-bold text-slate-800 dark:text-white mb-4"> |
| 44 | + Flexible deployment options |
| 45 | + </h2> |
| 46 | + </div> |
| 47 | + |
| 48 | + <div className="flex flex-col lg:flex-row gap-8 justify-center items-center max-w-6xl mx-auto"> |
| 49 | + <DeploymentCard |
| 50 | + title="Cloud" |
| 51 | + description="One less thing to worry about – delegate the deployment to us" |
| 52 | + buttonText="Start testing better now" |
| 53 | + buttonHref={cmdBaseUrl} |
| 54 | + icon={<Cloud size={40} />} |
| 55 | + /> |
| 56 | + |
| 57 | + <DeploymentCard |
| 58 | + title="On-Premises" |
| 59 | + description="Maintain a tight grip on your CI/CD and get more control over security" |
| 60 | + buttonText="Talk to founders" |
| 61 | + buttonHref="/marcel" |
| 62 | + icon={<Server size={40} />} |
| 63 | + /> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + </section> |
| 67 | + ); |
| 68 | +}; |
| 69 | + |
| 70 | +export default HomeDeploymentOptions; |
0 commit comments