feat: Formulaire de création RF sur une seule pag

This commit is contained in:
N3WT DE COMPET
2025-05-05 20:57:51 +02:00
parent 2a6b3bdf63
commit 76f9a7dd14
19 changed files with 1299 additions and 422 deletions

View File

@ -1,13 +1,20 @@
import React from 'react';
const SectionTitle = ({ title }) => {
const SectionTitle = ({ title, children }) => {
return (
<div className="relative mb-4">
<div className="absolute inset-0 flex items-center">
<div className="w-full border-t border-gray-300"></div>
</div>
<div className="relative flex justify-center">
<div className="px-4 bg-white text-gray-500">{title}</div>
<div className="relative flex">
{/* Liseré vertical */}
<div className="w-1 bg-emerald-400"></div>
{/* Contenu de la section */}
<div className="flex-1 pl-6">
{/* Titre avec liseré horizontal */}
<div className="flex items-center mb-4">
<h2 className="text-emerald-700 font-bold text-xl">{title}</h2>
<div className="flex-1 h-0.5 bg-emerald-200 ml-4"></div>
</div>
{/* Contenu passé en children */}
{children}
</div>
</div>
);