1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7949,e=>{"use strict";let t=(0,e.i(75840).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);e.s(["ArrowRight",()=>t],7949)},94196,e=>{"use strict";let t=(0,e.i(75840).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"}]]);e.s(["Share2",()=>t],94196)},98003,73667,89844,35774,e=>{"use strict";var t=e.i(75840);let s=(0,t.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"}]]);e.s(["Star",()=>s],98003);let a=(0,t.default)("facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);e.s(["Facebook",()=>a],73667);let r=(0,t.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"}]]);e.s(["Linkedin",()=>r],89844);let l=(0,t.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"}]]);e.s(["Instagram",()=>l],35774)},75531,e=>{"use strict";let t=(0,e.i(75840).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"}]]);e.s(["CheckCircle",()=>t],75531)},46314,e=>{"use strict";let t=(0,e.i(75840).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"}]]);e.s(["MapPin",()=>t],46314)},5763,e=>{"use strict";let t=(0,e.i(75840).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"}]]);e.s(["Phone",()=>t],5763)},43252,e=>{"use strict";let t=(0,e.i(75840).default)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);e.s(["Award",()=>t],43252)},83612,e=>{"use strict";let t=(0,e.i(75840).default)("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);e.s(["Search",()=>t],83612)},46392,e=>{"use strict";var t=e.i(5974),s=e.i(32653),a=e.i(42500),r=e.i(75531),l=e.i(46314),i=e.i(98003),c=e.i(5763),n=e.i(94196),d=e.i(73667),o=e.i(89844),x=e.i(35774);let m=(0,e.i(75840).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"}]]);e.s(["default",0,({business:e})=>{let[h,u]=(0,s.useState)(!1),f=t=>{let s=encodeURIComponent(`${window.location.origin}/#/directory/${e.id}`),a=encodeURIComponent(`D\xe9couvrez ${e.name} sur Afropreunariat`),r="";switch(t){case"facebook":r=`https://www.facebook.com/sharer/sharer.php?u=${s}`;break;case"twitter":r=`https://twitter.com/intent/tweet?url=${s}&text=${a}`;break;case"linkedin":r=`https://www.linkedin.com/sharing/share-offsite/?url=${s}`;break;case"instagram":alert("Pour partager sur Instagram, copiez le lien ou faites une capture d'écran."),u(!1);return}r&&window.open(r,"_blank","width=600,height=400"),u(!1)};return(0,t.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,t.jsxs)("div",{className:"relative h-40 bg-gray-200",children:[(0,t.jsx)("img",{src:`https://picsum.photos/seed/${e.id}/500/300`,alt:"Couverture",className:"w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/60 to-transparent"}),(0,t.jsxs)("div",{className:"absolute top-2 right-2 flex gap-2 z-20",children:[e.contactPhone&&(0,t.jsx)("a",{href:`tel:${e.contactPhone}`,onClick:e=>e.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,t.jsx)(c.Phone,{className:"w-4 h-4"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),u(!h)},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,t.jsx)(n.Share2,{className:"w-4 h-4"})}),h&&(0,t.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:()=>u(!1),children:[(0,t.jsx)("div",{className:"px-4 py-2 text-xs font-semibold text-gray-400 uppercase tracking-wider",children:"Partager"}),(0,t.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),f("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,t.jsx)(d.Facebook,{className:"w-4 h-4 mr-3"})," Facebook"]}),(0,t.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),f("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,t.jsx)(m,{className:"w-4 h-4 mr-3"})," X (Twitter)"]}),(0,t.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),f("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,t.jsx)(o.Linkedin,{className:"w-4 h-4 mr-3"})," LinkedIn"]}),(0,t.jsxs)("button",{onClick:e=>{e.preventDefault(),e.stopPropagation(),f("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,t.jsx)(x.Instagram,{className:"w-4 h-4 mr-3"})," Instagram"]})]})]})]}),(0,t.jsx)("div",{className:"absolute -bottom-6 left-4 z-10 w-16 h-16 bg-white rounded-lg p-1 shadow-md",children:(0,t.jsx)("img",{src:e.logoUrl,alt:e.name,className:"w-full h-full object-cover rounded-md bg-gray-50"})}),(0,t.jsx)(a.default,{href:`/directory/${e.id}`,className:"absolute inset-0 z-0","aria-label":`Voir ${e.name}`})]}),(0,t.jsxs)("div",{className:"pt-8 px-4 pb-4 flex-1 flex flex-col",children:[(0,t.jsxs)("div",{className:"flex justify-between items-start",children:[(0,t.jsx)(a.default,{href:`/directory/${e.id}`,className:"font-bold text-lg text-gray-900 truncate hover:text-brand-600 transition-colors",children:e.name}),e.verified&&(0,t.jsx)(r.CheckCircle,{className:"w-5 h-5 text-blue-500 flex-shrink-0 ml-1"})]}),(0,t.jsx)("p",{className:"text-xs text-brand-600 font-semibold mb-2 uppercase tracking-wide",children:e.category}),(0,t.jsxs)("div",{className:"flex items-center text-sm text-gray-500 mb-3",children:[(0,t.jsx)(l.MapPin,{className:"w-4 h-4 mr-1"}),e.location]}),(0,t.jsx)("p",{className:"text-sm text-gray-600 line-clamp-2 mb-4 flex-1",children:e.description}),(0,t.jsxs)("div",{className:"mt-auto flex items-center justify-between pt-4 border-t border-gray-50",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(i.Star,{className:"w-4 h-4 text-yellow-400 fill-current"}),(0,t.jsx)("span",{className:"text-sm font-bold ml-1 text-gray-700",children:e.rating}),(0,t.jsxs)("span",{className:"text-xs text-gray-400 ml-1",children:["(",e.viewCount," vues)"]})]}),(0,t.jsx)(a.default,{href:`/directory/${e.id}`,className:"text-brand-600 text-sm font-medium hover:underline",children:"Voir la fiche"})]})]})]})}],46392)},26887,e=>{"use strict";let t=(0,e.i(75840).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"}]]);e.s(["Briefcase",()=>t],26887)},26075,e=>{"use strict";var t=e.i(5974),s=e.i(32653),a=e.i(23862),r=e.i(83612),l=e.i(67810),i=e.i(57348),c=e.i(46392),n=e.i(42500),d=e.i(23518),o=e.i(43252),x=e.i(26887),m=e.i(46314),h=e.i(7949);let u=({featuredBusiness:e})=>e?(0,t.jsxs)("div",{className:"bg-gray-50 relative overflow-hidden pb-12 pt-6",children:[(0,t.jsx)("div",{className:"absolute inset-0 z-0 opacity-10",children:(0,t.jsxs)("svg",{className:"h-full w-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[(0,t.jsx)("path",{d:"M0 100 C 20 0 50 0 100 100 Z",fill:"#ea580c"}),(0,t.jsx)("path",{d:"M0 0 C 50 100 80 100 100 0 Z",fill:"#ea580c"})]})}),(0,t.jsx)("div",{className:"relative z-10 max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl overflow-hidden flex flex-col md:flex-row border border-gray-100",children:[(0,t.jsxs)("div",{className:"md:w-2/5 relative h-64 md:h-auto bg-gray-900 group",children:[e.founderImageUrl?(0,t.jsx)("img",{src:e.founderImageUrl,alt:e.founderName,className:"w-full h-full object-cover opacity-90 group-hover:opacity-100 transition-opacity duration-500"}):(0,t.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-gray-800 to-black flex items-center justify-center",children:(0,t.jsx)(d.User,{className:"w-20 h-20 text-gray-600"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent"}),(0,t.jsx)("div",{className:"absolute bottom-6 left-6 flex items-center space-x-3",children:(0,t.jsx)("div",{className:"w-16 h-16 bg-white rounded-xl p-1 shadow-lg rotate-3 transform transition-transform group-hover:rotate-0",children:(0,t.jsx)("img",{src:e.logoUrl,alt:"Logo",className:"w-full h-full object-cover rounded-lg"})})})]}),(0,t.jsxs)("div",{className:"md:w-3/5 p-8 md:p-12 flex flex-col justify-center",children:[(0,t.jsx)("div",{className:"flex items-center space-x-2 mb-4",children:(0,t.jsxs)("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-xs font-bold bg-yellow-100 text-yellow-800 uppercase tracking-wider",children:[(0,t.jsx)(o.Award,{className:"w-3 h-3 mr-1"})," Entrepreneur du mois"]})}),(0,t.jsx)("h2",{className:"text-3xl md:text-4xl font-bold font-serif text-gray-900 mb-2",children:e.name}),(0,t.jsxs)("p",{className:"text-lg text-gray-600 mb-4 font-medium",children:["Dirigé par ",(0,t.jsx)("span",{className:"text-brand-600",children:e.founderName})]}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4 text-sm text-gray-500 mb-6",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(x.Briefcase,{className:"w-4 h-4 mr-1"})," ",e.category]}),(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)(m.MapPin,{className:"w-4 h-4 mr-1"})," ",e.location]})]}),e.keyMetric&&(0,t.jsxs)("div",{className:"mb-8 p-4 bg-brand-50 border-l-4 border-brand-500 rounded-r-lg",children:[(0,t.jsx)("p",{className:"text-2xl font-bold text-brand-900",children:e.keyMetric}),(0,t.jsx)("p",{className:"text-xs text-brand-700 uppercase font-semibold",children:"Performance validée"})]}),(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,t.jsx)(n.default,{href:`/directory/${e.id}`,className:"inline-flex items-center justify-center px-6 py-3 border border-transparent text-base font-medium rounded-md text-white bg-brand-600 hover:bg-brand-700 shadow-lg hover:shadow-xl transition-all",children:"Voir la fiche complète"}),(0,t.jsxs)("button",{className:"inline-flex items-center justify-center px-6 py-3 border-2 border-gray-200 text-base font-medium rounded-md text-gray-600 bg-transparent hover:border-brand-300 hover:text-brand-600 transition-colors",children:["Devenir l'entrepreneur du mois ",(0,t.jsx)(h.ArrowRight,{className:"w-4 h-4 ml-2"})]})]})]})]})})]}):null,f=()=>{let[e,n]=(0,s.useState)("All"),[d,o]=(0,s.useState)(""),x=(0,a.useSearchParams)();(0,s.useEffect)(()=>{let e=x.get("q");e&&o(e)},[x]);let m=(0,s.useMemo)(()=>l.MOCK_BUSINESSES.find(e=>e.isFeatured),[]),h=(0,s.useMemo)(()=>l.MOCK_BUSINESSES.filter(t=>{let s="All"===e||t.category===e,a=t.name.toLowerCase().includes(d.toLowerCase())||t.description.toLowerCase().includes(d.toLowerCase())||t.tags.some(e=>e.toLowerCase().includes(d.toLowerCase()));return s&&a}),[e,d]);return(0,t.jsxs)("div",{children:[m&&(0,t.jsx)(u,{featuredBusiness:m}),(0,t.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:(0,t.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,t.jsx)("div",{className:"w-full md:w-64 flex-shrink-0",children:(0,t.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 sticky top-24",children:[(0,t.jsxs)("h3",{className:"font-bold text-lg mb-4 flex items-center",children:[(0,t.jsx)(r.Search,{className:"w-4 h-4 mr-2"})," Filtres"]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Recherche"}),(0,t.jsx)("input",{type:"text",value:d,onChange:e=>o(e.target.value),className:"w-full border-gray-300 rounded-md shadow-sm focus:ring-brand-500 focus:border-brand-500 sm:text-sm p-2 border",placeholder:"Nom, mot-clé..."})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Catégorie"}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("input",{id:"cat-all",name:"category",type:"radio",checked:"All"===e,onChange:()=>n("All"),className:"focus:ring-brand-500 h-4 w-4 text-brand-600 border-gray-300"}),(0,t.jsx)("label",{htmlFor:"cat-all",className:"ml-3 text-sm text-gray-600",children:"Toutes"})]}),i.CATEGORIES.map(s=>(0,t.jsxs)("div",{className:"flex items-center",children:[(0,t.jsx)("input",{id:`cat-${s}`,name:"category",type:"radio",checked:e===s,onChange:()=>n(s),className:"focus:ring-brand-500 h-4 w-4 text-brand-600 border-gray-300"}),(0,t.jsx)("label",{htmlFor:`cat-${s}`,className:"ml-3 text-sm text-gray-600 truncate",title:s,children:s})]},s))]})]})]})}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,t.jsx)("h1",{className:"text-2xl font-bold font-serif text-gray-900",children:"Annuaire des entreprises"}),(0,t.jsxs)("span",{className:"text-sm text-gray-500",children:[h.length," résultats"]})]}),h.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:h.map(e=>(0,t.jsx)(c.default,{business:e},e.id))}):(0,t.jsxs)("div",{className:"text-center py-20 bg-white rounded-xl border border-gray-100 border-dashed",children:[(0,t.jsx)("div",{className:"mx-auto h-12 w-12 text-gray-400",children:(0,t.jsx)(r.Search,{className:"h-12 w-12"})}),(0,t.jsx)("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"Aucun résultat"}),(0,t.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Essayez d'ajuster vos filtres de recherche."})]})]})]})})]})};e.s(["default",0,()=>(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:"Chargement..."}),children:(0,t.jsx)(f,{})})],26075)}]); |