import { t } from "@lingui/macro";
import {
Brain,
Cloud,
CloudSun,
CurrencyDollarSimple,
EnvelopeSimple,
Eye,
File,
Files,
Folder,
GitBranch,
GithubLogo,
GoogleChromeLogo,
GoogleLogo,
IconContext,
Layout,
Lock,
Note,
Prohibit,
Scales,
StackSimple,
Star,
Swatches,
TextAa,
Translate,
} from "@phosphor-icons/react";
import { cn, languages, templatesList } from "@reactive-resume/utils";
import { motion } from "framer-motion";
type Feature = {
icon: React.ReactNode;
title: string;
className?: string;
};
const featureLabel = cn(
"flex cursor-default items-center justify-center gap-x-2 rounded bg-secondary px-4 py-3 text-sm font-medium leading-none text-primary transition-colors hover:bg-primary hover:text-background",
);
export const FeaturesSection = () => {
const languagesCount = languages.length;
const templatesCount = templatesList.length;
const features: Feature[] = [
{ icon: , title: t`Free, forever` },
{ icon: , title: t`Open Source` },
{ icon: , title: t`MIT License` },
{ icon: , title: t`No user tracking or advertising` },
{ icon: , title: t`Self-host with Docker` },
{ icon: , title: t`Available in ${languagesCount} languages` },
{ icon: , title: t`OpenAI Integration` },
{ icon: , title: t`Sign in with GitHub` },
{ icon: , title: t`Sign in with Google` },
{ icon: , title: t`Sign in with Email` },
{ icon: , title: t`Secure with two-factor authentication` },
{ icon: , title: t`${templatesCount} resume templates to choose from` },
{ icon: , title: t`Design single/multi page resumes` },
{ icon: , title: t`Manage multiple resumes` },
{ icon: , title: t`Customisable colour palettes` },
{ icon: , title: t`Customisable layouts` },
{ icon: , title: t`Custom resume sections` },
{ icon: , title: t`Personal notes for each resume` },
{ icon: , title: t`Lock a resume to prevent editing` },
{ icon: , title: t`Supports A4/Letter page formats` },
{ icon: , title: t`Pick any font from Google Fonts` },
{ icon: , title: t`Host your resume publicly` },
{ icon: , title: t`Track views and downloads` },
{ icon: , title: t`Light or dark theme` },
{
icon: (
),
title: t`Powered by`,
className: "flex-row-reverse",
},
];
return (
{t`Rich in features, not in pricing.`}
{t`Reactive Resume is a passion project of over 3 years of hard work, and with that comes a number of re-iterated ideas and features that have been built to (near) perfection.`}
{features.map((feature, index) => (
{feature.icon}
{feature.title}
))}
{t`and many more...`}
);
};