3 lines
16 KiB
JavaScript
3 lines
16 KiB
JavaScript
module.exports=[17285,a=>{"use strict";let b=(0,a.i(67803).default)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);a.s(["ArrowRight",()=>b],17285)},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)},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)},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)},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)},99840,a=>{"use strict";let b=(0,a.i(67803).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"}]]);a.s(["Award",()=>b],99840)},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)},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)},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)},12711,a=>{"use strict";var b=a.i(92240),c=a.i(88345),d=a.i(14403),e=a.i(88350),f=a.i(67085),g=a.i(50395),h=a.i(70119),i=a.i(941),j=a.i(50318),k=a.i(99840),l=a.i(71819),m=a.i(92857),n=a.i(17285);let o=({featuredBusiness:a})=>a?(0,b.jsxs)("div",{className:"bg-gray-50 relative overflow-hidden pb-12 pt-6",children:[(0,b.jsx)("div",{className:"absolute inset-0 z-0 opacity-10",children:(0,b.jsxs)("svg",{className:"h-full w-full",viewBox:"0 0 100 100",preserveAspectRatio:"none",children:[(0,b.jsx)("path",{d:"M0 100 C 20 0 50 0 100 100 Z",fill:"#ea580c"}),(0,b.jsx)("path",{d:"M0 0 C 50 100 80 100 100 0 Z",fill:"#ea580c"})]})}),(0,b.jsx)("div",{className:"relative z-10 max-w-6xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,b.jsxs)("div",{className:"bg-white rounded-2xl shadow-2xl overflow-hidden flex flex-col md:flex-row border border-gray-100",children:[(0,b.jsxs)("div",{className:"md:w-2/5 relative h-64 md:h-auto bg-gray-900 group",children:[a.founderImageUrl?(0,b.jsx)("img",{src:a.founderImageUrl,alt:a.founderName,className:"w-full h-full object-cover opacity-90 group-hover:opacity-100 transition-opacity duration-500"}):(0,b.jsx)("div",{className:"w-full h-full bg-gradient-to-br from-gray-800 to-black flex items-center justify-center",children:(0,b.jsx)(j.User,{className:"w-20 h-20 text-gray-600"})}),(0,b.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-transparent to-transparent"}),(0,b.jsx)("div",{className:"absolute bottom-6 left-6 flex items-center space-x-3",children:(0,b.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,b.jsx)("img",{src:a.logoUrl,alt:"Logo",className:"w-full h-full object-cover rounded-lg"})})})]}),(0,b.jsxs)("div",{className:"md:w-3/5 p-8 md:p-12 flex flex-col justify-center",children:[(0,b.jsx)("div",{className:"flex items-center space-x-2 mb-4",children:(0,b.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,b.jsx)(k.Award,{className:"w-3 h-3 mr-1"})," Entrepreneur du mois"]})}),(0,b.jsx)("h2",{className:"text-3xl md:text-4xl font-bold font-serif text-gray-900 mb-2",children:a.name}),(0,b.jsxs)("p",{className:"text-lg text-gray-600 mb-4 font-medium",children:["Dirigé par ",(0,b.jsx)("span",{className:"text-brand-600",children:a.founderName})]}),(0,b.jsxs)("div",{className:"flex flex-wrap gap-4 text-sm text-gray-500 mb-6",children:[(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)(l.Briefcase,{className:"w-4 h-4 mr-1"})," ",a.category]}),(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)(m.MapPin,{className:"w-4 h-4 mr-1"})," ",a.location]})]}),a.keyMetric&&(0,b.jsxs)("div",{className:"mb-8 p-4 bg-brand-50 border-l-4 border-brand-500 rounded-r-lg",children:[(0,b.jsx)("p",{className:"text-2xl font-bold text-brand-900",children:a.keyMetric}),(0,b.jsx)("p",{className:"text-xs text-brand-700 uppercase font-semibold",children:"Performance validée"})]}),(0,b.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4",children:[(0,b.jsx)(i.default,{href:`/directory/${a.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,b.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,b.jsx)(n.ArrowRight,{className:"w-4 h-4 ml-2"})]})]})]})]})})]}):null,p=()=>{let[a,i]=(0,c.useState)("All"),[j,k]=(0,c.useState)(""),l=(0,d.useSearchParams)();(0,c.useEffect)(()=>{let a=l.get("q");a&&k(a)},[l]);let m=(0,c.useMemo)(()=>f.MOCK_BUSINESSES.find(a=>a.isFeatured),[]),n=(0,c.useMemo)(()=>f.MOCK_BUSINESSES.filter(b=>{let c="All"===a||b.category===a,d=b.name.toLowerCase().includes(j.toLowerCase())||b.description.toLowerCase().includes(j.toLowerCase())||b.tags.some(a=>a.toLowerCase().includes(j.toLowerCase()));return c&&d}),[a,j]);return(0,b.jsxs)("div",{children:[m&&(0,b.jsx)(o,{featuredBusiness:m}),(0,b.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:(0,b.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,b.jsx)("div",{className:"w-full md:w-64 flex-shrink-0",children:(0,b.jsxs)("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100 sticky top-24",children:[(0,b.jsxs)("h3",{className:"font-bold text-lg mb-4 flex items-center",children:[(0,b.jsx)(e.Search,{className:"w-4 h-4 mr-2"})," Filtres"]}),(0,b.jsxs)("div",{className:"mb-6",children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Recherche"}),(0,b.jsx)("input",{type:"text",value:j,onChange:a=>k(a.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,b.jsxs)("div",{className:"mb-6",children:[(0,b.jsx)("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Catégorie"}),(0,b.jsxs)("div",{className:"space-y-2",children:[(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)("input",{id:"cat-all",name:"category",type:"radio",checked:"All"===a,onChange:()=>i("All"),className:"focus:ring-brand-500 h-4 w-4 text-brand-600 border-gray-300"}),(0,b.jsx)("label",{htmlFor:"cat-all",className:"ml-3 text-sm text-gray-600",children:"Toutes"})]}),g.CATEGORIES.map(c=>(0,b.jsxs)("div",{className:"flex items-center",children:[(0,b.jsx)("input",{id:`cat-${c}`,name:"category",type:"radio",checked:a===c,onChange:()=>i(c),className:"focus:ring-brand-500 h-4 w-4 text-brand-600 border-gray-300"}),(0,b.jsx)("label",{htmlFor:`cat-${c}`,className:"ml-3 text-sm text-gray-600 truncate",title:c,children:c})]},c))]})]})]})}),(0,b.jsxs)("div",{className:"flex-1",children:[(0,b.jsxs)("div",{className:"mb-4 flex justify-between items-center",children:[(0,b.jsx)("h1",{className:"text-2xl font-bold font-serif text-gray-900",children:"Annuaire des entreprises"}),(0,b.jsxs)("span",{className:"text-sm text-gray-500",children:[n.length," résultats"]})]}),n.length>0?(0,b.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map(a=>(0,b.jsx)(h.default,{business:a},a.id))}):(0,b.jsxs)("div",{className:"text-center py-20 bg-white rounded-xl border border-gray-100 border-dashed",children:[(0,b.jsx)("div",{className:"mx-auto h-12 w-12 text-gray-400",children:(0,b.jsx)(e.Search,{className:"h-12 w-12"})}),(0,b.jsx)("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"Aucun résultat"}),(0,b.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:"Essayez d'ajuster vos filtres de recherche."})]})]})]})})]})};a.s(["default",0,()=>(0,b.jsx)(c.Suspense,{fallback:(0,b.jsx)("div",{className:"min-h-screen flex items-center justify-center",children:"Chargement..."}),children:(0,b.jsx)(p,{})})],12711)}];
|
|
|
|
//# sourceMappingURL=Documents_00%20-%20projet_afropreunariat_a5cdad4b._.js.map
|