(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[601],{237:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/news/[title]",function(){return t(3371)}])},7805:function(e,n,t){"use strict";var i=t(5893),s=t(5675),r=t.n(s),o=t(1664),a=t.n(o),l=t(7927),c=t(4373),d=t(3812),x=t(2326),u=function(e){null==e||e.createdAtTime;var n,t,s,o,u,p,h=e.title,m=null===(n=e.tagsOriginal)||void 0===n?void 0:n.split(",").reverse().slice(-1);if(void 0!=h)var j="/news/"+h.replaceAll(" ","-")+"?id="+e.id+"&cat="+m;else var j="/news/"+h+"?id="+e.id+"?cat="+m;return(0,i.jsxs)(l.xu,{boxShadow:"2xl",rounded:"md",p:6,overflow:"hidden",id:e.id,children:[(0,i.jsx)(l.xu,{h:"190px",bg:"gray.100",mt:-6,mx:-6,mb:6,pos:"relative",children:(0,i.jsx)(a(),{as:j,href:j,children:(0,i.jsx)("a",{children:null!=e.image?(0,i.jsx)(r(),{src:x.Z.ipfsURL+e.image,layout:"fill",objectFit:"cover",alt:null==e?void 0:e.title}):(0,i.jsx)(r(),{src:"/adv_placeholder.jpg",layout:"fill",objectFit:"cover",alt:null==e?void 0:e.title})})},j)}),(0,i.jsx)(l.Ug,{mb:3,spacing:1,children:""!=e.tagsOriginal&&(null===(t=e.tagsOriginal)||void 0===t?void 0:t.split(",").reverse().slice(-2).map(function(e){return(0,i.jsx)(a(),{href:"/categoria/".concat(e),children:(0,i.jsx)("a",{children:(0,i.jsx)(c.Vp,{size:"sm",variant:"solid",children:e})})},e)}))}),(0,i.jsxs)(l.Kq,{children:[(0,i.jsx)(a(),{as:j,href:j,children:(0,i.jsx)("a",{children:(0,i.jsx)(l.X6,{as:"h3",fontSize:"xl",children:null==e?void 0:e.title})})},j),(0,i.jsx)(l.xv,{children:null===(s=e.summary)||void 0===s?void 0:s.substring(0,150)})]}),(0,i.jsxs)(l.Kq,{mt:6,direction:"row",spacing:4,align:"center",children:["7218"==e.space.id?(0,i.jsx)(d.qE,{src:x.Z.ipfsURL+(null===(o=e.space)||void 0===o?void 0:o.image)}):(0,i.jsx)(d.qE,{src:x.Z.ipfsURL+(null===(u=e.ownedByAccount.profileSpace)||void 0===u?void 0:u.image)}),(0,i.jsx)(l.Kq,{direction:"column",spacing:0,fontSize:"sm",children:"11025"==e.space.id?(0,i.jsx)(l.xv,{children:"Polkadot Hungary"}):(0,i.jsx)(l.xv,{fontWeight:600,children:null===(p=e.ownedByAccount.profileSpace)||void 0===p?void 0:p.name})})]})]})};n.Z=u},6954:function(e,n,t){"use strict";t.d(n,{Z:function(){return x}});var i=t(5893),s=t(8395),r=t(9653),o=t(7927),a=t(3569),l=t(3887),c=t(3382),d=t(8087);function x(){var e=(0,s.If)(),n=e.colorMode,t=e.toggleColorMode,x=(0,r.qY)(),u=x.isOpen,p=x.onOpen,h=x.onClose;return(0,i.jsx)("header",{children:(0,i.jsxs)(o.xu,{bg:(0,s.ff)("gray.100","gray.900"),px:{base:0,md:32},py:1,children:[(0,i.jsxs)(o.kC,{h:16,alignItems:"center",justifyContent:"space-between",children:[(0,i.jsx)(a.hU,{size:"md",icon:u?(0,i.jsx)(c.Tw,{}):(0,i.jsx)(c.Uq,{}),"aria-label":"Open Menu",display:{md:"none"},onClick:u?h:p}),(0,i.jsxs)(o.Ug,{spacing:10,alignItems:"center",children:[(0,i.jsx)(o.xu,{children:(0,i.jsx)(o.rU,{href:"/",children:(0,i.jsx)(l.Ee,{boxSize:"42px",src:(0,s.ff)("/logo-bk.svg","/logo.svg"),alt:"logo"})})}),(0,i.jsx)(o.Ug,{as:"nav",spacing:0,display:{base:"none",md:"flex"},children:(0,i.jsx)(d.Z,{})})]}),(0,i.jsx)(o.kC,{alignItems:"center",children:(0,i.jsx)(o.Kq,{direction:"row",spacing:7,children:(0,i.jsx)(a.zx,{onClick:t,children:"dark"===n?(0,i.jsx)(c.kL,{}):(0,i.jsx)(c.NW,{})})})})]}),u?(0,i.jsx)(o.xu,{pb:4,display:{md:"none"},children:(0,i.jsx)(o.Kq,{as:"nav",spacing:5,children:(0,i.jsx)(d.Z,{})})}):null]})})}},2326:function(e,n){"use strict";n.Z={ipfsURL:"https://gateway.ipfs.io/ipfs/"}},3371:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return U},default:function(){return E}});var i=t(1799),s=t(9396),r=t(5893),o=t(7294),a=t(6954),l=t(1163),c=t.n(l),d=t(5675),x=t.n(d),u=t(1664),p=t.n(u),h=t(7927),m=t(3238),j=t(4373),g=t(2326),f=t(3985),v=t(6540),y=t.n(v),b=t(3382),w=function(e){return(0,r.jsx)(r.Fragment,{children:e.downvotesCount<=3&&(0,r.jsxs)("article",{className:y().article,children:[(0,r.jsx)(h.xu,{maxW:{base:"100%",md:"870px"},m:3,children:(0,r.jsx)(m.aG,{separator:(0,r.jsx)(b.XC,{color:"gray.500"}),children:(0,r.jsx)(m.gN,{children:(0,r.jsx)(m.At,{href:"#",onClick:function(){return c().back()},color:"#E9208A",fontWeight:"bold",fontSize:"lg",p:2,border:"2px solid #E9208A",borderRadius:"md",_hover:{textDecoration:"none",bg:"#E9208A",color:"#FFF"},children:"← Vissza"})})})}),(0,r.jsx)(h.M5,{mt:10,children:(0,r.jsxs)(h.xu,{maxW:{base:"100%",md:"870px"},boxShadow:"2xl",rounded:"md",p:6,overflow:"hidden",children:[(0,r.jsx)(h.xu,{h:{base:"230px",md:"450px"},bg:"gray.100",mt:-6,mx:-6,mb:6,pos:"relative",children:null!=e.image?(0,r.jsx)(x(),{src:g.Z.ipfsURL+e.image,layout:"fill",objectFit:"cover",alt:null==e?void 0:e.title}):(0,r.jsx)(x(),{src:"/adv_placeholder.jpg",layout:"fill",objectFit:"cover",alt:null==e?void 0:e.title})}),(0,r.jsx)(h.Ug,{p:{base:1,md:6},sx:{overflow:"auto"},children:e.tagsOriginal.split(",").map(function(n){return(0,r.jsx)(p(),{href:"../categoria/"+n,children:(0,r.jsx)("a",{children:(0,r.jsx)(j.Vp,{size:"sm",variant:"solid",children:n})})},e.id)})}),(0,r.jsxs)(h.Kq,{px:{base:1,md:6},py:{base:4,md:0},children:[(0,r.jsx)("header",{children:(0,r.jsx)(h.X6,{as:"h1",children:e.title})}),(0,r.jsx)("section",{children:(0,r.jsx)(f.D,{children:e.body})})]})]})})]})})},k=t(9008),_=t.n(k),Z="https://polkadothungary.net",C=function(e){var n=(0,l.useRouter)();return(0,r.jsxs)(_(),{children:[(0,r.jsx)("meta",{charSet:"utf-8"}),(0,r.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"}),(0,r.jsx)("title",{children:e.title}),(0,r.jsx)("link",{rel:"shortcut icon",type:"image/ico",href:"https://www.polkadothungary.net/favicon.ico"}),(0,r.jsx)("meta",{name:"author",content:"Polkadot Hungary Community"}),(0,r.jsx)("meta",{name:"description",content:e.summary}),(0,r.jsx)("meta",{name:"robots",content:"index, follow"}),(0,r.jsx)("meta",{name:"medium",content:"blog"}),(0,r.jsx)("meta",{property:"og:locale",content:"Hu"}),(0,r.jsx)("meta",{property:"og:site_name",content:"Polkadot Hungary Community"}),(0,r.jsx)("meta",{property:"og:type",content:"website"}),(0,r.jsx)("meta",{property:"og:description",content:e.summary}),(0,r.jsx)("meta",{property:"og:image",content:g.Z.ipfsURL+e.image}),(0,r.jsx)("meta",{property:"og:url",content:Z+n.asPath}),(0,r.jsx)("meta",{name:"twitter:card",content:e.summary}),(0,r.jsx)("meta",{name:"twitter:site",content:"@PolkadotHungary"}),(0,r.jsx)("meta",{name:"twitter:creator",content:"@PolkadotHungary"}),(0,r.jsx)("script",{type:"application/ld+json",children:'\n                "@context": "https://schema.org",\n                "@type": "NewsArticle",\n                "url": "'.concat(Z+n.asPath,'",\n                "publisher":{\n                    "@type":"Organization",\n                    "name":"Polkadot Hungary Community",\n                    "logo":"').concat("https://polkadothungary.net/polkadotHU.png",'"\n                },\n                "headline": "').concat(e.title,'",\n                "mainEntityOfPage": "').concat(Z+n.asPath,'",\n                "image":"').concat(g.Z.ipfsURL+e.image,'",\n                "datePublished":"').concat(e.createdAtTime,'"\n                ')})]})},P=t(7805),U=!0,E=function(e){var n=e.posts,t=e.morepost;return(0,l.useRouter)().isFallback?(0,r.jsx)("div",{children:"Loading..."}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(C,(0,i.Z)({},n)),(0,r.jsx)(a.Z,{}),(0,r.jsx)(w,(0,i.Z)({},n)),(0,r.jsx)(h.MI,{px:30,py:20,children:(0,r.jsx)(h.xu,{children:(0,r.jsx)(h.MI,{columns:{base:1,md:4},spacing:6,children:t.slice(0,4).map(function(e){return(0,o.createElement)(P.Z,(0,s.Z)((0,i.Z)({},e),{key:e.id}))})})})})]})}},6540:function(e){e.exports={article:"Post_article__pvl1l"}}},function(e){e.O(0,[99,659,171,774,888,179],function(){return e(e.s=237)}),_N_E=e.O()}]);