Files
afrov2/.next/server/chunks/ssr/Documents_00 - projet_afropreunariat_f1e8376a._.js
2026-04-08 14:46:10 +02:00

3 lines
12 KiB
JavaScript

module.exports=[64853,a=>{"use strict";let b=(0,a.i(67803).default)("share-2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);a.s(["Share2",()=>b],64853)},66732,71583,91604,33232,a=>{"use strict";var b=a.i(67803);let c=(0,b.default)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]);a.s(["Star",()=>c],66732);let d=(0,b.default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);a.s(["Facebook",()=>d],71583);let e=(0,b.default)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]]);a.s(["Linkedin",()=>e],91604);let f=(0,b.default)("instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);a.s(["Instagram",()=>f],33232)},92857,a=>{"use strict";let b=(0,a.i(67803).default)("map-pin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);a.s(["MapPin",()=>b],92857)},72626,a=>{"use strict";let b=(0,a.i(67803).default)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);a.s(["CheckCircle",()=>b],72626)},36168,a=>{"use strict";let b=(0,a.i(67803).default)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]]);a.s(["Phone",()=>b],36168)},88350,a=>{"use strict";let b=(0,a.i(67803).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);a.s(["Search",()=>b],88350)},71819,a=>{"use strict";let b=(0,a.i(67803).default)("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);a.s(["Briefcase",()=>b],71819)},70119,a=>{"use strict";var b=a.i(92240),c=a.i(88345),d=a.i(941),e=a.i(72626),f=a.i(92857),g=a.i(66732),h=a.i(36168),i=a.i(64853),j=a.i(71583),k=a.i(91604),l=a.i(33232);let m=(0,a.i(67803).default)("twitter",[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]]);a.s(["default",0,({business:a})=>{let[n,o]=(0,c.useState)(!1),p=b=>{let c=encodeURIComponent(`${window.location.origin}/#/directory/${a.id}`),d=encodeURIComponent(`D\xe9couvrez ${a.name} sur Afropreunariat`),e="";switch(b){case"facebook":e=`https://www.facebook.com/sharer/sharer.php?u=${c}`;break;case"twitter":e=`https://twitter.com/intent/tweet?url=${c}&text=${d}`;break;case"linkedin":e=`https://www.linkedin.com/sharing/share-offsite/?url=${c}`;break;case"instagram":alert("Pour partager sur Instagram, copiez le lien ou faites une capture d'écran."),o(!1);return}e&&window.open(e,"_blank","width=600,height=400"),o(!1)};return(0,b.jsxs)("div",{className:"bg-white rounded-xl shadow-sm hover:shadow-md transition-shadow duration-200 border border-gray-100 overflow-hidden flex flex-col h-full group relative",children:[(0,b.jsxs)("div",{className:"relative h-40 bg-gray-200",children:[(0,b.jsx)("img",{src:`https://picsum.photos/seed/${a.id}/500/300`,alt:"Couverture",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),(0,b.jsxs)("div",{className:"absolute top-2 right-2 flex gap-2 z-20",children:[a.contactPhone&&(0,b.jsx)("a",{href:`tel:${a.contactPhone}`,onClick:a=>a.stopPropagation(),className:"p-2 bg-white/20 backdrop-blur-md border border-white/20 rounded-full text-white hover:bg-white hover:text-brand-600 transition-all shadow-sm",title:"Appeler",children:(0,b.jsx)(h.Phone,{className:"w-4 h-4"})}),(0,b.jsxs)("div",{className:"relative",children:[(0,b.jsx)("button",{onClick:a=>{a.preventDefault(),a.stopPropagation(),o(!n)},className:"p-2 bg-white/20 backdrop-blur-md border border-white/20 rounded-full text-white hover:bg-white hover:text-brand-600 transition-all shadow-sm",title:"Partager",children:(0,b.jsx)(i.Share2,{className:"w-4 h-4"})}),n&&(0,b.jsxs)("div",{className:"absolute right-0 mt-2 w-48 bg-white rounded-lg shadow-xl py-2 border border-gray-100 z-30 animate-in fade-in zoom-in duration-200",onMouseLeave:()=>o(!1),children:[(0,b.jsx)("div",{className:"px-4 py-2 text-xs font-semibold text-gray-400 uppercase tracking-wider",children:"Partager"}),(0,b.jsxs)("button",{onClick:a=>{a.preventDefault(),a.stopPropagation(),p("facebook")},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 flex items-center hover:text-blue-600",children:[(0,b.jsx)(j.Facebook,{className:"w-4 h-4 mr-3"})," Facebook"]}),(0,b.jsxs)("button",{onClick:a=>{a.preventDefault(),a.stopPropagation(),p("twitter")},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 flex items-center hover:text-black",children:[(0,b.jsx)(m,{className:"w-4 h-4 mr-3"})," X (Twitter)"]}),(0,b.jsxs)("button",{onClick:a=>{a.preventDefault(),a.stopPropagation(),p("linkedin")},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 flex items-center hover:text-blue-700",children:[(0,b.jsx)(k.Linkedin,{className:"w-4 h-4 mr-3"})," LinkedIn"]}),(0,b.jsxs)("button",{onClick:a=>{a.preventDefault(),a.stopPropagation(),p("instagram")},className:"w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-50 flex items-center hover:text-pink-600",children:[(0,b.jsx)(l.Instagram,{className:"w-4 h-4 mr-3"})," Instagram"]})]})]})]}),(0,b.jsx)("div",{className:"absolute -bottom-6 left-4 z-10 w-16 h-16 bg-white rounded-lg p-1 shadow-md",children:(0,b.jsx)("img",{src:a.logoUrl,alt:a.name,className:"w-full h-full object-cover rounded-md bg-gray-50"})}),(0,b.jsx)(d.default,{href:`/directory/${a.id}`,className:"absolute inset-0 z-0","aria-label":`Voir ${a.name}`})]}),(0,b.jsxs)("div",{className:"pt-8 px-4 pb-4 flex-1 flex flex-col",children:[(0,b.jsxs)("div",{className:"flex justify-between items-start",children:[(0,b.jsx)(d.default,{href:`/directory/${a.id}`,className:"font-bold text-lg text-gray-900 truncate hover:text-brand-600 transition-colors",children:a.name}),a.verified&&(0,b.jsx)(e.CheckCircle,{className:"w-5 h-5 text-blue-500 flex-shrink-0 ml-1"})]}),(0,b.jsx)("p",{className:"text-xs text-brand-600 font-semibold mb-2 uppercase tracking-wide",children:a.category}),(0,b.jsxs)("div",{className:"flex items-center text-sm text-gray-500 mb-3",children:[(0,b.jsx)(f.MapPin,{className:"w-4 h-4 mr-1"}),a.location]}),(0,b.jsx)("p",{className:"text-sm text-gray-600 line-clamp-2 mb-4 flex-1",children:a.description}),(0,b.jsxs)("div",{className:"mt-auto flex items-center justify-between pt-4 border-t border-gray-50",children:[(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)(g.Star,{className:"w-4 h-4 text-yellow-400 fill-current"}),(0,b.jsx)("span",{className:"text-sm font-bold ml-1 text-gray-700",children:a.rating}),(0,b.jsxs)("span",{className:"text-xs text-gray-400 ml-1",children:["(",a.viewCount," vues)"]})]}),(0,b.jsx)(d.default,{href:`/directory/${a.id}`,className:"text-brand-600 text-sm font-medium hover:underline",children:"Voir la fiche"})]})]})]})}],70119)},69466,a=>{"use strict";var b=a.i(92240),c=a.i(88345),d=a.i(941),e=a.i(14403),f=a.i(88350),g=a.i(92857),h=a.i(71819);let i=(0,a.i(67803).default)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]);var j=a.i(50395),k=a.i(67085),l=a.i(70119);a.s(["default",0,()=>{let a=(0,e.useRouter)(),[m,n]=(0,c.useState)("");return(0,b.jsxs)("div",{children:[(0,b.jsxs)("div",{className:"relative bg-dark-900 overflow-hidden",children:[(0,b.jsx)("div",{className:"absolute inset-0 opacity-40",children:(0,b.jsx)("img",{src:"https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1740&q=80",className:"w-full h-full object-cover",alt:"African entrepreneurs team"})}),(0,b.jsxs)("div",{className:"relative max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-24 lg:py-32",children:[(0,b.jsxs)("h1",{className:"text-4xl md:text-6xl font-serif font-bold text-white mb-6 tracking-tight",children:["Boostez votre visibilité dans ",(0,b.jsx)("br",{}),(0,b.jsx)("span",{className:"text-brand-500",children:"l'écosystème africain"})]}),(0,b.jsx)("p",{className:"text-xl text-gray-300 mb-8 max-w-2xl",children:"L'annuaire 2.0 qui connecte les talents, les entrepreneurs et les entreprises de la diaspora et du continent."}),(0,b.jsxs)("form",{onSubmit:b=>{b.preventDefault(),a.push(`/directory?q=${m}`)},className:"max-w-3xl bg-white p-2 rounded-lg shadow-xl flex flex-col md:flex-row gap-2",children:[(0,b.jsxs)("div",{className:"flex-1 relative",children:[(0,b.jsx)(f.Search,{className:"absolute left-3 top-3 text-gray-400 w-5 h-5"}),(0,b.jsx)("input",{type:"text",placeholder:"Que recherchez-vous ? (ex: Développeur, Traiteur...)",className:"w-full pl-10 pr-4 py-3 rounded-md focus:outline-none text-gray-900",value:m,onChange:a=>n(a.target.value)})]}),(0,b.jsxs)("div",{className:"md:w-1/3 relative border-t md:border-t-0 md:border-l border-gray-200",children:[(0,b.jsx)(g.MapPin,{className:"absolute left-3 top-3 text-gray-400 w-5 h-5"}),(0,b.jsx)("input",{type:"text",placeholder:"Localisation (ex: Abidjan)",className:"w-full pl-10 pr-4 py-3 rounded-md focus:outline-none text-gray-900"})]}),(0,b.jsx)("button",{type:"submit",className:"bg-brand-600 text-white px-8 py-3 rounded-md font-semibold hover:bg-brand-700 transition-colors",children:"Rechercher"})]})]})]}),(0,b.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16",children:[(0,b.jsx)("h2",{className:"text-3xl font-bold text-gray-900 mb-8 font-serif",children:"Secteurs en vedette"}),(0,b.jsx)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:j.CATEGORIES.slice(0,4).map((a,c)=>(0,b.jsxs)("div",{className:"group cursor-pointer bg-white p-6 rounded-xl border border-gray-100 shadow-sm hover:shadow-md hover:border-brand-200 transition-all text-center",children:[(0,b.jsx)("div",{className:"w-12 h-12 bg-brand-50 text-brand-600 rounded-full flex items-center justify-center mx-auto mb-4 group-hover:bg-brand-600 group-hover:text-white transition-colors",children:(0,b.jsx)(h.Briefcase,{className:"w-6 h-6"})}),(0,b.jsx)("h3",{className:"font-semibold text-gray-900",children:a})]},c))})]}),(0,b.jsx)("div",{className:"bg-gray-50 py-16",children:(0,b.jsxs)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:[(0,b.jsxs)("div",{className:"flex justify-between items-end mb-8",children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("h2",{className:"text-3xl font-bold text-gray-900 font-serif",children:"Entreprises à la une"}),(0,b.jsx)("p",{className:"text-gray-500 mt-2",children:"Découvrez les pépites de notre communauté."})]}),(0,b.jsxs)(d.default,{href:"/directory",className:"text-brand-600 font-medium hover:text-brand-700 flex items-center",children:["Voir tout l'annuaire ",(0,b.jsx)(i,{className:"w-4 h-4 ml-1"})]})]}),(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:k.MOCK_BUSINESSES.map(a=>(0,b.jsx)(l.default,{business:a},a.id))})]})})]})}],69466)}];
//# sourceMappingURL=Documents_00%20-%20projet_afropreunariat_f1e8376a._.js.map