mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 16:03:21 +00:00
feat: Formulaire de création RF sur une seule pag
This commit is contained in:
@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user