File size: 5,101 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 |
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: <CurrencyDollarSimple />, title: t`Free, forever` },
{ icon: <GitBranch />, title: t`Open Source` },
{ icon: <Scales />, title: t`MIT License` },
{ icon: <Prohibit />, title: t`No user tracking or advertising` },
{ icon: <Cloud />, title: t`Self-host with Docker` },
{ icon: <Translate />, title: t`Available in ${languagesCount} languages` },
{ icon: <Brain />, title: t`OpenAI Integration` },
{ icon: <GithubLogo />, title: t`Sign in with GitHub` },
{ icon: <GoogleLogo />, title: t`Sign in with Google` },
{ icon: <EnvelopeSimple />, title: t`Sign in with Email` },
{ icon: <Lock />, title: t`Secure with two-factor authentication` },
{ icon: <StackSimple />, title: t`${templatesCount} resume templates to choose from` },
{ icon: <Files />, title: t`Design single/multi page resumes` },
{ icon: <Folder />, title: t`Manage multiple resumes` },
{ icon: <Swatches />, title: t`Customisable colour palettes` },
{ icon: <Layout />, title: t`Customisable layouts` },
{ icon: <Star />, title: t`Custom resume sections` },
{ icon: <Note />, title: t`Personal notes for each resume` },
{ icon: <Lock />, title: t`Lock a resume to prevent editing` },
{ icon: <File />, title: t`Supports A4/Letter page formats` },
{ icon: <TextAa />, title: t`Pick any font from Google Fonts` },
{ icon: <GoogleChromeLogo />, title: t`Host your resume publicly` },
{ icon: <Eye />, title: t`Track views and downloads` },
{ icon: <CloudSun />, title: t`Light or dark theme` },
{
icon: (
<div className="flex items-center space-x-1">
<img src="https://cdn.simpleicons.org/react" alt="React" width={14} height={14} />
<img src="https://cdn.simpleicons.org/vite" alt="Vite" width={14} height={14} />
<img
src="https://cdn.simpleicons.org/tailwindcss"
alt="TailwindCSS"
width={14}
height={14}
/>
<img src="https://cdn.simpleicons.org/nestjs" alt="NestJS" width={14} height={14} />
<img
src="https://cdn.simpleicons.org/googlechrome"
alt="Google Chrome"
width={14}
height={14}
/>
<img
src="https://cdn.simpleicons.org/postgresql"
alt="PostgreSQL"
width={14}
height={14}
/>
</div>
),
title: t`Powered by`,
className: "flex-row-reverse",
},
];
return (
<section id="features" className="relative bg-secondary-accent py-24 sm:py-32">
<div className="container">
<div className="space-y-6 leading-loose">
<h2 className="text-4xl font-bold">{t`Rich in features, not in pricing.`}</h2>
<p className="max-w-4xl text-base leading-relaxed">
{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.`}
</p>
<IconContext.Provider value={{ size: 14, weight: "bold" }}>
<div className="!mt-12 flex flex-wrap items-center gap-4">
{features.map((feature, index) => (
<motion.div
key={index}
viewport={{ once: true }}
initial={{ opacity: 0, x: -50 }}
className={cn(featureLabel, feature.className)}
whileInView={{ opacity: 1, x: 0, transition: { delay: index * 0.1 } }}
>
{feature.icon}
<h4>{feature.title}</h4>
</motion.div>
))}
<motion.p
viewport={{ once: true }}
initial={{ opacity: 0, x: -50 }}
whileInView={{
opacity: 1,
x: 0,
transition: { delay: (features.length + 1) * 0.1 },
}}
>
{t`and many more...`}
</motion.p>
</div>
</IconContext.Provider>
</div>
</div>
</section>
);
};
|