mirror of
https://github.com/arthur-pbty/flint.git
synced 2026-08-02 04:37:57 +02:00
85 lines
3.6 KiB
TypeScript
85 lines
3.6 KiB
TypeScript
import FeatureCard from "./FeatureCard";
|
|
import { getT } from "../i18n/server";
|
|
|
|
export default async function Features() {
|
|
const t = await getT();
|
|
|
|
const items = [
|
|
{
|
|
title: t("features.items.autoCommands.title"),
|
|
description: t("features.items.autoCommands.description"),
|
|
icon: (
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M4 7h16v10H4z" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
<path d="M8 11h0" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
</svg>
|
|
),
|
|
},
|
|
{
|
|
title: t("features.items.componentsV2.title"),
|
|
description: t("features.items.componentsV2.description"),
|
|
icon: (
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 3v18" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
<path d="M5 8h14" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
</svg>
|
|
),
|
|
},
|
|
{
|
|
title: t("features.items.autoHelp.title"),
|
|
description: t("features.items.autoHelp.description"),
|
|
icon: (
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M3 12h18" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
<path d="M6 8v8" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
</svg>
|
|
),
|
|
},
|
|
{
|
|
title: t("features.items.multiLanguage.title"),
|
|
description: t("features.items.multiLanguage.description"),
|
|
icon: (
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M4 7h16v10H4z" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
<path d="M8 11h0" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
</svg>
|
|
),
|
|
},
|
|
{
|
|
title: t("features.items.dynamicVariables.title"),
|
|
description: t("features.items.dynamicVariables.description"),
|
|
icon: (
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M12 3v18" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
<path d="M5 8h14" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
</svg>
|
|
),
|
|
},
|
|
{
|
|
title: t("features.items.hosting.title"),
|
|
description: t("features.items.hosting.description"),
|
|
icon: (
|
|
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path d="M3 12h18" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
<path d="M6 8v8" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" />
|
|
</svg>
|
|
),
|
|
},
|
|
];
|
|
|
|
return (
|
|
<section className="space-y-6">
|
|
<div className="space-y-3">
|
|
<h2>{t("features.title")}</h2>
|
|
<p className="section-description">{t("features.subtitle")}</p>
|
|
</div>
|
|
|
|
<div className="grid grid-cols-1 gap-4 md:grid-cols-2 xl:grid-cols-3">
|
|
{items.map((it, idx) => (
|
|
<FeatureCard key={idx} title={it.title} description={it.description} icon={it.icon} />
|
|
))}
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|