2023-10-18 16:21:15 +03:00
|
|
|
import Link from "next/link";
|
2023-10-17 14:36:15 +03:00
|
|
|
import { useTranslation } from "react-i18next";
|
2023-10-18 16:21:15 +03:00
|
|
|
import { LuChevronRight } from "react-icons/lu";
|
|
|
|
|
|
|
|
import Button from "@/lib/components/ui/Button";
|
2023-10-17 14:36:15 +03:00
|
|
|
|
|
|
|
import { UseCasesListing } from "./components/UseCasesListing/UseCasesListing";
|
2023-10-24 14:55:42 +03:00
|
|
|
import { useHomepageTracking } from "../../hooks/useHomepageTracking";
|
2023-10-17 14:36:15 +03:00
|
|
|
|
|
|
|
export const UseCases = (): JSX.Element => {
|
|
|
|
const { t } = useTranslation("home");
|
2023-10-24 14:55:42 +03:00
|
|
|
const { onLinkClick } = useHomepageTracking();
|
2023-10-17 14:36:15 +03:00
|
|
|
|
|
|
|
return (
|
2023-10-18 16:21:15 +03:00
|
|
|
<div className="text-white w-full">
|
2023-10-17 14:36:15 +03:00
|
|
|
<div className="mb-3">
|
|
|
|
<h2 className="text-center text-3xl font-semibold mb-2">
|
|
|
|
{t("useCases.title")}
|
|
|
|
</h2>
|
|
|
|
<p className="text-center text-lg">{t("useCases.subtitle")}</p>
|
|
|
|
</div>
|
|
|
|
<UseCasesListing />
|
2023-10-18 16:21:15 +03:00
|
|
|
<div className="mt-10 flex md:justify-center">
|
2023-10-24 14:55:42 +03:00
|
|
|
<Link
|
2023-10-26 10:48:41 +03:00
|
|
|
href="/login"
|
2023-10-24 14:55:42 +03:00
|
|
|
onClick={(event) => {
|
|
|
|
onLinkClick({
|
2023-10-26 10:48:41 +03:00
|
|
|
href: "/login",
|
|
|
|
label: "SIGN_IN",
|
2023-10-24 14:55:42 +03:00
|
|
|
event,
|
|
|
|
});
|
|
|
|
}}
|
|
|
|
>
|
2023-10-18 16:21:15 +03:00
|
|
|
<Button className="bg-black rounded-full">
|
|
|
|
{t("intro.try_demo")} <LuChevronRight size={24} />
|
|
|
|
</Button>
|
|
|
|
</Link>
|
|
|
|
</div>
|
2023-10-17 14:36:15 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
};
|