PageSourceSearch

https://legalplan.lovable.app/assets/Home-DhbBMo9U.js

js legalplan.lovable.app collected 2026-10-03 03:35:38 UTC 5,730 bytes, 1 lines download raw bytes

1import{k as r,af as b,aJ as g,D as e,ad as j,ae as v,$ as m,a7 as y,ao as N,ab as w}from"./index-DhhcCK3Q.js";import{S as l}from"./sparkles-D9EXPq9u.js";import{S}from"./scale-CfREiW6o.js";const x=["avocat","notaire","commissaire de justice"];function z(){const[o,n]=r.useState(""),[u,p]=r.useState(0),[h,c]=r.useState(!1),[s,I]=r.useState(!1),d=b();g(),r.useEffect(()=>{const t=setInterval(()=>{c(!0),setTimeout(()=>{p(a=>(a+1)%x.length),c(!1)},300)},3e3);return()=>clearInterval(t)},[]);const f=async t=>{t.preventDefault();const a=o.trim();a&&d(`/search?q=${encodeURIComponent(a)}`)},i=t=>{n(t),n(t),setTimeout(()=>{const a=document.getElementById("home-search-form");a==null||a.requestSubmit()},50)};return e.jsxs(e.Fragment,{children:[e.jsx("section",{className:"container mx-auto px-4 py-20",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-8",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-4 py-2 rounded-full bg-primary/10 text-primary text-sm font-medium mb-4 animate-fade-in",children:[e.jsx(l,{className:"w-4 h-4"}),e.jsx("span",{children:"Plateforme juridique intelligente et intelligible"})]}),e.jsxs("h2",{className:"text-5xl md:text-6xl font-bold leading-tight animate-fade-in",children:["Votre rendez-vous avec un"," ",e.jsx("span",{className:`bg-gradient-to-r from-primary to-secondary bg-clip-text text-transparent inline-block transition-all duration-300 ${h?"opacity-0 translate-y-2":"opacity-100 translate-y-0"}`,children:x[u]})]}),e.jsx("p",{className:"text-xl text-muted-foreground max-w-2xl mx-auto animate-fade-in",children:"Intelligence artificielle et expertise humaine pour vous orienter vers le bon professionnel juridique"}),e.jsxs("form",{id:"home-search-form",onSubmit:f,className:"max-w-2xl mx-auto animate-scale-in",children:[e.jsxs("div",{className:"relative",children:[e.jsx(j,{className:"absolute left-4 top-1/2 -translate-y-1/2 w-5 h-5 text-muted-foreground"}),e.jsx(v,{type:"text",placeholder:"Décrivez votre problématique juridique ou recherchez un professionnel...",value:o,onChange:t=>n(t.target.value),className:"pl-12 pr-4 py-6 text-lg rounded-full border-2 focus:border-primary transition-all",disabled:s}),e.jsx(m,{type:"submit",size:"lg",className:"absolute right-2 top-1/2 -translate-y-1/2 rounded-full",disabled:s,children:s?e.jsx(y,{className:"w-4 h-4 animate-spin"}):"Rechercher"})]}),s&&e.jsxs("p",{className:"text-sm text-muted-foreground text-center mt-3 animate-fade-in",children:[e.jsx(l,{className:"w-3.5 h-3.5 inline mr-1"}),"Analyse de votre demande en cours…"]})]}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-4 text-sm text-muted-foreground animate-fade-in",children:[e.jsx("button",{type:"button",disabled:s,onClick:()=>i("divorce"),className:"hover:text-primary transition-colors disabled:opacity-50",children:"Divorce"}),e.jsx("span",{children:"•"}),e.jsx("button",{type:"button",disabled:s,onClick:()=>i("succession"),className:"hover:text-primary transition-colors disabled:opacity-50",children:"Succession"}),e.jsx("span",{children:"•"}),e.jsx("button",{type:"button",disabled:s,onClick:()=>i("immobilier"),className:"hover:text-primary transition-colors disabled:opacity-50",children:"Droit immobilier"}),e.jsx("span",{children:"•"}),e.jsx("button",{type:"button",disabled:s,onClick:()=>i("entreprise"),className:"hover:text-primary transition-colors disabled:opacity-50",children:"Droit des affaires"})]})]})}),e.jsx("section",{className:"container mx-auto px-4 py-20",children:e.jsxs("div",{className:"grid md:grid-cols-3 gap-8 max-w-6xl mx-auto",children:[e.jsxs("div",{className:"bg-card p-8 rounded-lg border hover:shadow-lg transition-all hover-scale",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:e.jsx(l,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3",children:"IA d'orientation"}),e.jsx("p",{className:"text-muted-foreground",children:"Notre intelligence artificielle analyse votre situation et vous oriente vers les bons professionnels"})]}),e.jsxs("div",{className:"bg-card p-8 rounded-lg border hover:shadow-lg transition-all hover-scale",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:e.jsx(N,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3",children:"Professionnels vérifiés"}),e.jsx("p",{className:"text-muted-foreground",children:"Tous nos praticiens sont vérifiés et qual
1ifiés pour vous accompagner"})]}),e.jsxs("div",{className:"bg-card p-8 rounded-lg border hover:shadow-lg transition-all hover-scale",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary/10 flex items-center justify-center mb-4",children:e.jsx(w,{className:"w-6 h-6 text-primary"})}),e.jsx("h3",{className:"text-xl font-bold mb-3",children:"Réservation en ligne"}),e.jsx("p",{className:"text-muted-foreground",children:"Prenez rendez-vous en quelques clics selon vos disponibilités"})]})]})}),e.jsx("section",{className:"container mx-auto px-4 py-20",children:e.jsxs("div",{className:"max-w-4xl mx-auto text-center bg-gradient-to-r from-primary to-secondary p-12 rounded-3xl text-primary-foreground",children:[e.jsx(S,{className:"w-16 h-16 mx-auto mb-6 opacity-90"}),e.jsx("h3",{className:"text-3xl font-bold mb-4",children:"Prêt à trouver votre professionnel du droit ?"}),e.jsx("p",{className:"text-lg mb-8 opacity-90",children:"Rejoignez des milliers d'utilisateurs qui font confiance à Legalplan"}),e.jsx(m,{size:"lg",variant:"secondary",onClick:()=>d("/practitioners"),className:"text-lg px-8",children:"Parcourir l'annuaire"})]})})]})}export{z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.