%PDF- %PDF-
Direktori : /home/opti/public_html/ncf/static/js/ |
Current File : /home/opti/public_html/ncf/static/js/31.54494438.chunk.js |
(this["webpackJsonpncf-nigeria"]=this["webpackJsonpncf-nigeria"]||[]).push([[31],{104:function(e,t,s){},105:function(e,t,s){"use strict";var n=s(48),c=s(1),a=s(21),l=(s(106),s(107),s(108),s(2));t.a=function(){var e=localStorage.getItem("loggedInUser"),t=Object(c.useState)([]),s=Object(n.a)(t,2),i=s[0],r=s[1];Object(c.useEffect)((function(){fetch("".concat(a.SERVER_URL,"/cart/all/").concat(e)).then((function(e){return e.json()})).then((function(e){200===e.status?r(e.data):console.log(e)}))}),[]);var o=i.length;return Object(l.jsx)("div",{className:"sliderbardiv sm:mb-20",children:Object(l.jsxs)("div",{className:"flex sliderbar shadow-sm -mt-9 field-bottom",children:[Object(l.jsxs)("a",{href:"/shop",className:"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48 broder-0 border-r border-solid",children:[Object(l.jsx)("span",{className:"mb-2",children:Object(l.jsx)("img",{src:"/assets/images/icons/shop.svg",alt:""})}),Object(l.jsx)("span",{children:"Shop"})]}),Object(l.jsxs)("a",{href:"/cart",className:"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48 broder-0 border-r border-solid",children:[Object(l.jsx)("span",{className:"mb-2",children:Object(l.jsx)("img",{src:"/assets/images/icons/shopping-cart.svg",alt:""})}),Object(l.jsxs)("span",{children:["Cart ",Object(l.jsxs)("span",{className:"cartNumber",children:[" ",o]})]})]}),Object(l.jsxs)("a",{href:"/donate",className:"no-underline bg-white sliderbar-link text-black flex flex-col items-center justify-center md:py-0 py-8 w-48",children:[Object(l.jsx)("span",{className:"mb-2",children:Object(l.jsx)("img",{src:"/assets/images/icons/donation.svg",alt:""})}),Object(l.jsx)("span",{children:"Donate"})]})]})})}},108:function(e,t,s){},146:function(e,t,s){},159:function(e,t,s){"use strict";var n=s(48),c=s(1),a=s(518),l=s(502),i=s(521),r=(s(160),s(21)),o=s(2);t.a=function(){var e=Object(c.useState)([]),t=Object(n.a)(e,2),s=t[0],d=t[1];Object(c.useEffect)((function(){fetch("".concat(r.SERVER_URL,"/blog/category")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?d(e.data):console.log("Oops couldn't fetch data")}))}),[]);var b=s.slice(0,5);return Object(o.jsx)(a.a,{collapseOnSelect:!0,expand:"lg",className:"bg-gray-200",variant:"light",children:Object(o.jsxs)(l.a,{children:[Object(o.jsx)(a.a.Toggle,{"aria-controls":"responsive-navbar-nav"}),Object(o.jsx)(a.a.Collapse,{id:"responsive-navbar-nav",children:Object(o.jsx)(i.a,{className:"navbarNav",children:b.map((function(e){return Object(o.jsx)(i.a.Link,{className:"font-bold text-black",href:"/blog/tag?id=".concat(e.id),children:e.name})}))})})]})})}},160:function(e,t,s){},162:function(e,t,s){"use strict";s(1);var n,c=s(127),a=s(50),l=s(49).a.div(n||(n=Object(a.a)(["\n position: relative;\n height: 700px;\n\tborder: 1px solid #eee\n\n background: #eee;\n font-family: 'Roboto', Helvetica Neue, Helvetica, Arial, sans-serif;\n font-size: 14px;\n color: rgb(39, 38, 38);\n margin: 0;\n padding: 0;\n\n\t.swiper-container {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t}\n\n\t.swiper-slide {\n\t\tfont-size: 18px;\n\t\tbackground: transparent;\n\n\t\t/* Center slide text vertically */\n\t\tdisplay: -webkit-box;\n\t\tdisplay: -ms-flexbox;\n\t\tdisplay: -webkit-flex;\n\t\tdisplay: flex;\n\t\t-webkit-box-pack: center;\n\t\t-ms-flex-pack: center;\n\t\t-webkit-justify-content: center;\n\t\tjustify-content: center;\n\t\t-webkit-box-align: center;\n\t\t-ms-flex-align: center;\n\t\t-webkit-align-items: center;\n\t\talign-items: center;\n\t}\n\n\t.swiper-slide img {\n\t\tdisplay: block;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\t.swiper-slide .slider-wrapper {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tobject-fit: cover;\n\t}\n\n\t.slider-text {\n\t\tposition: absolute;\n\t\theight: 100%;\n\t\twidth: 100%;\n\t}\n\n\t.field-bottom {\n\t\ttransform: translate(10%, 320px);\n\t}\n\n\t@media screen and (max-width: 640px) {\n\t\t.field-bottom {\n\t\t\ttransform: translate(0%, 0%);\n\t\t}\n\t}\n"]))),i=(s(105),s(106),s(107),s(514)),r=s(133),o=s(2);i.a.use([r.a]);t.a=function(){return Object(o.jsx)(l,{className:"mt-6",children:Object(o.jsx)(c.a,{children:Object(o.jsx)("div",{className:"slider-wrapper bg-black",children:Object(o.jsx)("div",{className:"",children:Object(o.jsx)("div",{className:"max-w-7xl mx-auto pb-16 pt-48 md:px-16 px-8",children:Object(o.jsx)("div",{className:"grid md:grid-cols-1 text-center grid-cols-1 gap-x-8 gap-y-8",children:Object(o.jsxs)("div",{className:"content blogBanner",children:[Object(o.jsx)("h1",{className:"text-6xl font-bold text-white mt-32 mb-8",children:"Welcome to our blog"}),Object(o.jsxs)("p",{className:"text-light text-sm text-white mb-6",children:["stay updated with the newest info and development Stories, ",Object(o.jsx)("br",{}),"case studies and insights share by NCF"]}),Object(o.jsx)("button",{className:"text-white text-sm font-bold py-2 px-8 rounded",children:"Learn More"})]})})})})})})})}},219:function(e,t,s){"use strict";var n=s(4),c=s(17),a=s(1),l=s.n(a),i=s(3),r=s.n(i),o=s(26),d=s.n(o),b=s(15),j=["className","cssModule","tag"],m={tag:b.n,className:r.a.string,cssModule:r.a.object},h=function(e){var t=e.className,s=e.cssModule,a=e.tag,i=Object(c.a)(e,j),r=Object(b.j)(d()(t,"card-text"),s);return l.a.createElement(a,Object(n.a)({},i,{className:r}))};h.propTypes=m,h.defaultProps={tag:"p"},t.a=h},249:function(e,t,s){"use strict";var n=s(48),c=s(1),a=s(21),l=s(460),i=s(461),r=(s(146),s(52),s(520)),o=s(2),d=r.a.Search;t.a=function(){var e=Object(c.useState)([]),t=Object(n.a)(e,2),s=t[0],r=t[1],b=Object(c.useState)([]),j=Object(n.a)(b,2),m=j[0],h=j[1];Object(c.useEffect)((function(){fetch("".concat(a.SERVER_URL,"/blog/all")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?r(e.data.data):console.log("Oops couldn't fetch data")}))}),[]),Object(c.useEffect)((function(){fetch("".concat(a.SERVER_URL,"/blog/category")).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),200===e.status?h(e.data):console.log("Oops couldn't fetch data")}))}),[]);var x=s.slice(0,3);return Object(o.jsx)("nav",{children:Object(o.jsxs)("div",{className:"",children:[Object(o.jsxs)("div",{className:"p-3 mb-3 shadow-md rounded",children:[Object(o.jsx)("span",{className:"pr-1 text-md text-black font-bold flex-1",children:"Search"}),Object(o.jsx)("div",{className:"pl-4 py-5",children:Object(o.jsx)(d,{placeholder:"Type Here",className:"rounded",size:"large",onSearch:function(e){console.log(e),window.location.href="".concat(a.CLIENT_URL,"blog/search?q=").concat(e)}})})]}),Object(o.jsxs)("div",{className:"p-3 mb-3 shadow-md rounded",children:[Object(o.jsx)("span",{className:"pr-1 text-md text-black font-bold flex-1",children:"Categories"}),Object(o.jsx)("div",{className:"pl-4",children:m.map((function(e){return Object(o.jsx)("a",{className:"block text-sm font-medium my-3 text-black px-4 py-2",href:"/blog/tag?id=".concat(e.id),children:e.name})}))})]}),Object(o.jsxs)("div",{className:"pl-4 pt-3 shadow-md rounded",children:[Object(o.jsx)("span",{className:"pr-1 text-md text-black font-bold flex-1",children:"Recent Post"}),x.map((function(e){return Object(o.jsxs)(l.a,{xs:"2",className:"w-full shadow-sm mt-3",children:[Object(o.jsx)(i.a,{className:"w-full blogSidebarcardImg",md:"3",children:Object(o.jsx)("img",{src:"https://admin.ncfnigeria.org/images/blog/".concat(e.image),alt:"Card image cap"})}),Object(o.jsxs)(i.a,{md:"9",className:" py-3",children:[Object(o.jsx)("h4",{className:"text-xs",children:e.title}),Object(o.jsx)("a",{href:"blog/post?id=".concat(e.id),children:Object(o.jsx)("h4",{className:"text-sm text-bold",children:"Learn More"})})]})]})}))]})]})})}},504:function(e,t,s){"use strict";s.r(t);var n=s(48),c=s(1),a=s(162),l=s(159),i=(s(52),s(249)),r=(s(104),s(146),s(197)),o=s(282),d=s(198),b=s(199),j=s(219),m=s(21),h=s(2);t.default=function(){var e=window.location.search,t=new URLSearchParams(e).get("id"),s=Object(c.useState)({image:"",title:"",description:"",created_at:"",cat:{name:""}}),x=Object(n.a)(s,2),p=x[0],f=x[1];return Object(c.useEffect)((function(){fetch("".concat(m.SERVER_URL,"/blog/single/").concat(t)).then((function(e){return e.json()})).then((function(e){console.log(e.message,"json"),"operation successful"===e.message?(f(e.status),console.log(p)):console.log("Oops couldn't fetch data")}))}),[]),Object(h.jsxs)("div",{children:[Object(h.jsx)(a.a,{}),Object(h.jsx)(l.a,{}),Object(h.jsx)("div",{className:"w-full md:px-16",children:Object(h.jsxs)("div",{className:"grid md:grid-cols-12 md:gap-x-0 gap-y-2 z-index-3",children:[Object(h.jsx)("div",{className:"md:col-span-8 col-span-12 p-4",children:Object(h.jsx)("div",{className:"grid md:grid-cols-1 gap-y-8",children:Object(h.jsx)("div",{className:"rounded overflow-hidden h-full shadow-md h-full",children:Object(h.jsx)("div",{className:"rounded overflow-hidden h-full shadow-md h-full",children:Object(h.jsxs)(r.a,{children:[Object(h.jsx)(o.a,{top:!0,width:"100%",src:"https://admin.ncfnigeria.org/images/blog/".concat(p.image),alt:"Card image cap"}),Object(h.jsxs)(d.a,{className:"px-6 py-4",children:[Object(h.jsxs)("p",{className:" text-sm mt-4 mb-4",children:[Object(h.jsx)("span",{className:"font-bold uppercase",children:p.cat.name}),Object(h.jsx)("span",{className:"text-gray-300 pl-5",children:p.created_at})]}),Object(h.jsx)(b.a,{className:"font-bold text-2xl mb-2",children:p.title}),Object(h.jsx)(j.a,{className:"text-gray-900 txt-justify text-md mb-2",children:Object(h.jsx)("div",{dangerouslySetInnerHTML:{__html:p.description}})})]})]})})})})}),Object(h.jsx)("aside",{className:"md:col-span-4 col-span-12 min-h-screen py-4 border-0 border-r border-solid border-gray-200",children:Object(h.jsx)(i.a,{})})]})})]})}}}]); //# sourceMappingURL=31.54494438.chunk.js.map