Skip to content

Commit 736b874

Browse files
Feat/deployment options (#117)
* feat: add HomeDeploymentOptions component to the homepage
1 parent c9532cb commit 736b874

File tree

2 files changed

+72
-0
lines changed

2 files changed

+72
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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;

src/pages/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import HomeBenefits from "@/components/home-page/HomeBenefits";
88
import HomeTestingFrameworks from "@/components/home-page/HomeTestingFrameworks";
99
import HomeTrustedBy from "@/components/home-page/HomeTrustedBy";
1010
import HomeProductCards from "@/components/home-page/HomeProductCards";
11+
import HomeDeploymentOptions from "@/components/home-page/HomeDeploymentOptions";
1112
import HomeEndingSection from "@/components/home-page/HomeEndingSection";
1213

1314
export default function Home(): JSX.Element {
@@ -19,6 +20,7 @@ export default function Home(): JSX.Element {
1920
<HomeTestingFrameworks />
2021
<HomeProductCards />
2122
<HomeTrustedBy />
23+
<HomeDeploymentOptions />
2224
<HomeEndingSection />
2325
</Layout>
2426
);

0 commit comments

Comments
 (0)