2024-06-17 08:54:30 +02:00
|
|
|
"use client";
|
|
|
|
|
2024-06-15 14:55:33 +02:00
|
|
|
import { BorderBeam } from "@/components/ui/border-beam";
|
|
|
|
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
|
|
|
import { Badge } from "@/components/ui/badge";
|
|
|
|
import { Button, buttonVariants } from "@/components/ui/button";
|
|
|
|
import {
|
2024-09-07 09:12:48 +02:00
|
|
|
Card,
|
|
|
|
CardContent,
|
|
|
|
CardDescription,
|
|
|
|
CardFooter,
|
|
|
|
CardHeader,
|
|
|
|
CardTitle
|
2024-06-15 14:55:33 +02:00
|
|
|
} from "@/components/ui/card";
|
2024-09-07 10:24:30 +02:00
|
|
|
import Link from "next/link";
|
2024-06-15 14:55:33 +02:00
|
|
|
import Image from "next/image";
|
|
|
|
import { Happy_Monkey } from "next/font/google";
|
2024-09-07 10:33:08 +02:00
|
|
|
import { BarChart4, Cog, LightbulbIcon, ShieldCheck } from "lucide-react";
|
2024-06-15 20:04:12 +02:00
|
|
|
import Iconss from "../ui/icons";
|
2024-06-15 14:55:33 +02:00
|
|
|
|
|
|
|
const happyMonkey = Happy_Monkey({
|
2024-09-07 09:12:48 +02:00
|
|
|
preload: true,
|
|
|
|
weight: ["400"],
|
|
|
|
subsets: ["latin"]
|
2024-06-15 14:55:33 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
const HeroCards = () => {
|
2024-09-07 09:12:48 +02:00
|
|
|
const cards = {
|
|
|
|
aboutCard: {
|
|
|
|
description:
|
2024-09-07 10:36:31 +02:00
|
|
|
"You can follow us to get the updates on SVR.JS web server, along with web development tips.",
|
2024-09-07 09:12:48 +02:00
|
|
|
socialLinks: {
|
|
|
|
x: "https://x.com/SVR_JS",
|
|
|
|
Mastodon: "https://mastodon.social/@svrjs",
|
|
|
|
Bluesky: "https://bsky.app/profile/svrjs.org",
|
|
|
|
Odysee: "https://odysee.com/@SVRJS"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
pricingCard: {
|
2024-09-07 10:33:08 +02:00
|
|
|
planName: "Free Forever",
|
2024-09-07 09:12:48 +02:00
|
|
|
badgeTitle: "Popular",
|
|
|
|
pricePerMonth: "$0",
|
|
|
|
description:
|
2024-09-07 10:33:08 +02:00
|
|
|
"Get all the features with SVR.JS, which is free as in freedom.",
|
|
|
|
primaryButtonText: "Download SVR.JS",
|
2024-09-07 10:24:30 +02:00
|
|
|
primaryButtonDestination: "/downloads",
|
2024-09-07 09:12:48 +02:00
|
|
|
features: [
|
|
|
|
{
|
2024-09-07 10:33:08 +02:00
|
|
|
title: "Scalablity",
|
|
|
|
icons: <BarChart4 width={25} height={25} />
|
2024-09-07 09:12:48 +02:00
|
|
|
},
|
|
|
|
{
|
2024-09-07 10:33:08 +02:00
|
|
|
title: "Security",
|
|
|
|
icons: <ShieldCheck width={25} height={25} />
|
2024-09-07 09:12:48 +02:00
|
|
|
},
|
|
|
|
{
|
2024-09-07 10:33:08 +02:00
|
|
|
title: "Configurability",
|
|
|
|
icons: <Cog width={25} height={25} />
|
2024-09-07 09:12:48 +02:00
|
|
|
}
|
|
|
|
],
|
2024-09-07 10:33:08 +02:00
|
|
|
curlyText: "Free Forever!"
|
2024-09-07 09:12:48 +02:00
|
|
|
},
|
|
|
|
serviceCard: {
|
2024-09-07 10:47:24 +02:00
|
|
|
title: "Pro tip: see our blog!",
|
2024-09-07 09:12:48 +02:00
|
|
|
description:
|
2024-09-07 10:47:24 +02:00
|
|
|
"We have web development, web server administration, and web application security tips on our blog!"
|
2024-09-07 09:12:48 +02:00
|
|
|
}
|
|
|
|
};
|
2024-06-15 14:55:33 +02:00
|
|
|
|
2024-09-07 09:12:48 +02:00
|
|
|
return (
|
|
|
|
<div className="hidden lg:flex flex-row flex-wrap gap-8 relative w-[700px] h-[500px]">
|
|
|
|
{/* Twitter First Top left */}
|
|
|
|
<Card className="absolute w-[340px] -top-[15px] drop-shadow-xl shadow-black/10 dark:shadow-white/10">
|
|
|
|
<CardHeader className="flex flex-row items-center gap-4 pb-2">
|
|
|
|
<Avatar>
|
2024-09-07 10:40:21 +02:00
|
|
|
<AvatarImage alt={"acrosett"} src={"/testimonials/acrosett.webp"} />
|
2024-09-07 09:23:16 +02:00
|
|
|
<AvatarFallback>acrosett</AvatarFallback>
|
2024-09-07 09:12:48 +02:00
|
|
|
</Avatar>
|
|
|
|
<div className="flex flex-col">
|
2024-09-07 09:23:16 +02:00
|
|
|
<CardTitle className="text-lg">acrosett</CardTitle>
|
|
|
|
<CardDescription>@acrosettdev</CardDescription>
|
2024-09-07 09:12:48 +02:00
|
|
|
</div>
|
|
|
|
</CardHeader>
|
|
|
|
<CardContent>
|
2024-09-07 09:23:16 +02:00
|
|
|
My pleasure, SVR.js is an awesome project! 🔥🚀
|
2024-09-07 09:12:48 +02:00
|
|
|
</CardContent>
|
|
|
|
<BorderBeam className="-z-10" />
|
|
|
|
</Card>
|
2024-06-15 14:55:33 +02:00
|
|
|
|
2024-09-07 09:12:48 +02:00
|
|
|
{/* Socials Second top right */}
|
|
|
|
<Card className="absolute right-[20px] top-4 w-80 flex flex-col justify-center items-center drop-shadow-xl shadow-black/10 dark:shadow-white/10">
|
|
|
|
<CardHeader className="flex justify-center items-center pb-2">
|
|
|
|
<CardTitle className="text-center">Socials</CardTitle>
|
|
|
|
<CardDescription className="font-medium text-primary"></CardDescription>
|
|
|
|
</CardHeader>
|
2024-06-15 14:55:33 +02:00
|
|
|
|
2024-09-07 09:12:48 +02:00
|
|
|
<CardContent className="text-center text-muted-foreground pb-2">
|
|
|
|
<p>{cards.aboutCard.description}</p>
|
|
|
|
</CardContent>
|
|
|
|
<CardFooter>
|
|
|
|
<Iconss />
|
|
|
|
</CardFooter>
|
|
|
|
<BorderBeam className="-z-10" />
|
|
|
|
</Card>
|
2024-06-15 14:55:33 +02:00
|
|
|
|
2024-09-07 09:12:48 +02:00
|
|
|
{/* Pricings Bottom left */}
|
|
|
|
<Card className="absolute top-[170px] left-[50px] w-72 drop-shadow-xl shadow-black/10 dark:shadow-white/10">
|
|
|
|
<CardHeader>
|
|
|
|
<CardTitle className="flex items-center justify-between">
|
|
|
|
{cards.pricingCard.planName}
|
|
|
|
<Badge variant="secondary" className="text-sm text-primary">
|
|
|
|
{cards.pricingCard.badgeTitle}
|
|
|
|
</Badge>
|
|
|
|
</CardTitle>
|
|
|
|
<div>
|
|
|
|
<span className="text-3xl font-bold">
|
|
|
|
{cards.pricingCard.pricePerMonth}
|
|
|
|
</span>
|
|
|
|
<span className="text-muted-foreground"> /month</span>
|
|
|
|
</div>
|
2024-06-15 14:55:33 +02:00
|
|
|
|
2024-09-07 09:12:48 +02:00
|
|
|
<CardDescription>{cards.pricingCard.description}</CardDescription>
|
2024-09-07 10:24:30 +02:00
|
|
|
<Link className="w-full" href="/downloads">
|
|
|
|
<Button size="sm" className="w-full">
|
|
|
|
{cards.pricingCard.primaryButtonText}
|
|
|
|
</Button>
|
|
|
|
</Link>
|
2024-09-07 09:12:48 +02:00
|
|
|
</CardHeader>
|
|
|
|
<hr className="w-4/5 m-auto -mt-2 mb-4" />
|
|
|
|
<CardFooter className="flex">
|
|
|
|
<div className="space-y-3">
|
|
|
|
{cards.pricingCard.features.map((benefit) => (
|
|
|
|
<span
|
|
|
|
key={benefit.title}
|
|
|
|
className="inline-flex justify-center items-center gap-x-3"
|
|
|
|
>
|
|
|
|
{benefit.icons}
|
2024-09-07 10:33:08 +02:00
|
|
|
<span>{benefit.title}</span>
|
|
|
|
<br />
|
2024-09-07 09:12:48 +02:00
|
|
|
</span>
|
|
|
|
))}
|
|
|
|
</div>
|
|
|
|
</CardFooter>
|
|
|
|
<BorderBeam className="-z-10" />
|
|
|
|
<div className="pointer-events-none dark:invert -scale-x-100 absolute w-36 top-[9.5rem] -left-[7.5rem] inline-flex justify-center items-center gap-1">
|
|
|
|
<Image
|
|
|
|
src="/curly-arrow.png"
|
|
|
|
width={35}
|
|
|
|
height={35}
|
|
|
|
alt="Curly arrow"
|
|
|
|
/>
|
|
|
|
<span
|
|
|
|
style={happyMonkey.style}
|
|
|
|
className="mt-10 font-bold text-black -scale-x-100 text-sm"
|
|
|
|
>
|
|
|
|
{cards.pricingCard.curlyText}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</Card>
|
2024-06-15 17:30:51 +02:00
|
|
|
|
2024-09-07 09:12:48 +02:00
|
|
|
{/* Service */}
|
|
|
|
<Card className="absolute w-[350px] -right-[10px] bottom-[75px] drop-shadow-xl shadow-black/10 dark:shadow-white/10">
|
|
|
|
<CardHeader className="space-y-1 flex md:flex-row justify-start items-start gap-4">
|
|
|
|
<div className="mt-1 bg-primary/20 p-1 rounded-2xl">
|
|
|
|
<LightbulbIcon className="fill-black dark:fill-[#F596D3]" />
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<CardTitle>{cards.serviceCard.title}</CardTitle>
|
|
|
|
<CardDescription className="text-md mt-2">
|
|
|
|
{cards.serviceCard.description}
|
|
|
|
</CardDescription>
|
|
|
|
</div>
|
|
|
|
</CardHeader>
|
|
|
|
<BorderBeam className="-z-10" />
|
|
|
|
</Card>
|
|
|
|
</div>
|
|
|
|
);
|
2024-06-15 14:55:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export default HeroCards;
|