add feature component and make routes thin

This commit is contained in:
2026-05-31 21:01:29 +02:00
parent 5fea214ead
commit 71e4378325
7 changed files with 100 additions and 30 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { ReactNode } from "react";
interface IProps {
title: string;
children?: ReactNode;
}
const Feature = ({ title, children }: IProps) => (
<div className="mb-auto">
<h6 className="text-(--base-content) text-2xl font-bold">{title}</h6>
<p className="text-(--neutral-content) font-medium" data-testid="text">
{children}
</p>
</div>
);
export default Feature;