2023-08-07 15:13:41 +03:00
|
|
|
"use client";
|
2023-06-15 12:52:46 +03:00
|
|
|
import { ReactNode } from "react";
|
2023-08-07 15:13:41 +03:00
|
|
|
import { useTranslation } from "react-i18next";
|
2023-05-23 13:45:10 +03:00
|
|
|
import {
|
|
|
|
GiArtificialIntelligence,
|
|
|
|
GiBrain,
|
|
|
|
GiDatabase,
|
|
|
|
GiFastArrow,
|
|
|
|
GiLockedDoor,
|
|
|
|
GiOpenBook,
|
|
|
|
} from "react-icons/gi";
|
|
|
|
|
2023-06-15 12:52:46 +03:00
|
|
|
import Card from "@/lib/components/ui/Card";
|
|
|
|
|
|
|
|
const Features = (): JSX.Element => {
|
2023-08-07 15:13:41 +03:00
|
|
|
const { t } = useTranslation();
|
|
|
|
|
2023-05-23 13:45:10 +03:00
|
|
|
return (
|
|
|
|
<section className="my-20 text-center flex flex-col items-center justify-center gap-10">
|
|
|
|
<div>
|
2023-08-07 15:13:41 +03:00
|
|
|
<h1 className="text-5xl font-bold ">{t("features")}</h1>
|
2023-05-23 13:45:10 +03:00
|
|
|
{/* <h2 className="opacity-50">Change the way you take notes</h2> */}
|
|
|
|
</div>
|
|
|
|
<div className="flex flex-wrap gap-5 justify-center">
|
|
|
|
<Feature
|
|
|
|
icon={<GiBrain className="text-7xl w-full" />}
|
2023-08-07 15:13:41 +03:00
|
|
|
title={t("two_brains_title")}
|
|
|
|
desc={t("two_brains_desc")}
|
2023-05-23 13:45:10 +03:00
|
|
|
/>
|
|
|
|
<Feature
|
|
|
|
icon={<GiDatabase className="text-7xl w-full" />}
|
2023-08-07 15:13:41 +03:00
|
|
|
title={t("any_kind_of_data_title")}
|
|
|
|
desc={t("any_kind_of_data_desc")}
|
2023-05-23 13:45:10 +03:00
|
|
|
/>
|
|
|
|
<Feature
|
|
|
|
icon={<GiArtificialIntelligence className="text-7xl w-full" />}
|
2023-08-07 15:13:41 +03:00
|
|
|
title={t("fast_and_accurate_title")}
|
|
|
|
desc={t("fast_and_accurate_desc")}
|
2023-05-23 13:45:10 +03:00
|
|
|
/>
|
|
|
|
<Feature
|
|
|
|
icon={<GiFastArrow className="text-7xl w-full" />}
|
2023-08-07 15:13:41 +03:00
|
|
|
title={t("fast_and_efficient_title")}
|
|
|
|
desc={t("fast_and_efficient_desc")}
|
2023-05-23 13:45:10 +03:00
|
|
|
/>
|
|
|
|
<Feature
|
|
|
|
icon={<GiLockedDoor className="text-7xl w-full" />}
|
2023-08-07 15:13:41 +03:00
|
|
|
title={t("secure_title")}
|
|
|
|
desc={t("secure_desc")}
|
2023-05-23 13:45:10 +03:00
|
|
|
/>
|
|
|
|
<Feature
|
|
|
|
icon={<GiOpenBook className="text-7xl w-full" />}
|
2023-08-07 15:13:41 +03:00
|
|
|
title={t("open_source_title")}
|
|
|
|
desc={t("open_source_desc")}
|
2023-05-23 13:45:10 +03:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
interface FeatureProps {
|
|
|
|
icon?: ReactNode;
|
|
|
|
title: string;
|
|
|
|
desc: string;
|
|
|
|
}
|
|
|
|
|
2023-06-15 12:52:46 +03:00
|
|
|
const Feature = ({ title, desc, icon }: FeatureProps): JSX.Element => {
|
2023-05-23 13:45:10 +03:00
|
|
|
return (
|
|
|
|
<Card className="p-10 max-w-xs flex flex-col gap-5 w-full">
|
|
|
|
{icon}
|
|
|
|
<h1 className="text-xl font-bold">{title}</h1>
|
|
|
|
<p>{desc}</p>
|
|
|
|
</Card>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Features;
|