PageSourceSearch

https://www.codedex.io/_next/static/chunks/pages/outdated-communit…/[post]-73c1862e0d3cbfbc.js

js codedex.io collected 2026-09-25 14:57:26 UTC 7,529 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4988],{36420:function(n,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/outdated-community/30-nites-of-code/[post]",function(){return t(29085)}])},8956:function(n,e,t){"use strict";var r=t(82729),i=t(85893),o=t(19521);function _templateObject(){let n=(0,r._)(["\n  "," {\n    margin-top: 4rem;\n    display: grid;\n    grid-template-columns: 1fr;\n    gap: 1rem;\n    padding-bottom: 3rem;\n    margin-left: 0rem;\n    margin-right: 0rem;\n\n    .discovery {\n      display: none;\n      position: relative;\n\n      .sticky-bar {\n        position: sticky;\n        top: 4.3rem;\n        height: 80vh;\n        min-width: 226px;\n        overflow: auto;\n        transition-duration: 0.2s;\n\n        /* width */\n        ::-webkit-scrollbar {\n          width: 3px;\n        }\n\n        /* Track */\n        ::-webkit-scrollbar-track {\n          transition-duration: 0.2s;\n          background: transparent;\n          /* background: #f1f1f1; */\n        }\n\n        /* Handle */\n        ::-webkit-scrollbar-thumb {\n          transition-duration: 0.2s;\n\n          background: transparent;\n          /* background: #888; */\n        }\n\n        /* Handle on hover */\n        ::-webkit-scrollbar-thumb:hover {\n          background: #555;\n        }\n\n        :hover {\n          transition-duration: 0.2s;\n          /* Track */\n          ::-webkit-scrollbar-track {\n            transition-duration: 0.2s;\n            /* background: #f1f1f1; */\n          }\n\n          /* Handle */\n          ::-webkit-scrollbar-thumb {\n            transition-duration: 0.2s;\n            background: #888;\n          }\n        }\n      }\n\n      .create-post-btn {\n        position: fixed;\n        width: 226px;\n        top: 93%;\n        font-size: 12px;\n      }\n    }\n\n    .main-container {\n      margin-top: -5px;\n    }\n  }\n\n  "," {\n    grid-template-columns: 1fr 20fr;\n    margin-left: 1rem;\n    margin-right: 1rem;\n\n    .discovery {\n      display: block;\n      z-index: 8;\n\n      .sticky-bar {\n        min-width: 0px;\n      }\n\n      .create-post-btn {\n        display: none;\n      }\n    }\n  }\n\n  "," {\n    grid-template-columns: 1.3fr 5fr;\n\n    margin-left: 0rem;\n    margin-right: 0rem;\n\n    .discovery {\n      .sticky-bar {\n        min-width: 226px;\n      }\n\n      .create-post-btn {\n        display: block;\n      }\n    }\n  }\n"]);return _templateObject=function(){return n},n}let a=o.default.div.withConfig({componentId:"sc-5883e8b8-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md});e.Z=function(n){let{children:e}=n;return(0,i.jsx)(a,{children:e})}},15402:function(n,e,t){"use strict";var r=t(82729),i=t(85893),o=t(19521),a=t(17942),s=t(67294);function _templateObject(){let n=(0,r._)(["\n  ",' {\n    margin: 0rem;\n\n    .banner-image {\n      height: 100px;\n      background-image: url("https://img.freepik.com/premium-photo/landscape-8bit-pixel-art-summer-natural-landscape-mountain-scenery-arcade-video-game-background_776674-410821.jpg");\n      background-size: cover;\n      background-position: 0px 250px;\n    }\n\n    .banner-info {\n      position: relative;\n      height: 80px;\n      background: ',";\n      border-bottom-left-radius: 18px;\n      border-bottom-right-radius: 18px;\n      display: flex;\n      align-items: center;\n\n      .img-container {\n        position: absolute;\n        top: -30%;\n        left: 0.8rem;\n        border-radius: 50%;\n        overflow: hidden;\n        border: 3px solid rgba(15, 21, 36, 1);\n        border-radius: 50%;\n\n        img {\n          width: 75px;\n          height: 75px;\n          border-radius: 50%;\n          transform: scale(0.8);\n        }\n      }\n\n      .banner-copy {\n        color: ",';\n        margin-left: 6.8rem;\n\n        h2 {\n          font-size: 18px;\n          margin: 0px;\n          font-weight: 400;\n        }\n        p {\n          margin: 0px;\n          font-size: 16px;\n          font-family: "Work Sans", sans-serif;\n          color: rgba(128, 128, 128, 1);\n        }\n      }\n    }\n  }\n\n  '," {\n    margin: auto 1rem;\n\n    .banner-info {\n      .img-container {\n        left: 35px;\n        img {\n          width: 85px;\n          height: 85px;\n        }\n      }\n\n      .banner-copy {\n        margin-left: 9rem;\n\n        h2 {\n          font-size: 18px;\n        }\n        p {\n          font-size: 15px;\n        }\n      }\n    }\n  }\n\n  "," {\n    margin: 0rem;\n  }\n"]);
1return _templateObject=function(){return n},n}let c=o.default.div.withConfig({componentId:"sc-6e526a46-0"})(_templateObject(),n=>{let{theme:e}=n;return e.breakpoints.xs},n=>"dark"===n.theme.mode?"#1d2331":"#F9F5FE",n=>"dark"===n.theme.mode?"whitesmoke":"black",n=>{let{theme:e}=n;return e.breakpoints.sm},n=>{let{theme:e}=n;return e.breakpoints.md}),l=[{imageUrl:"/images/code-nights/duck.gif",color:"#FEF089"},{imageUrl:"/images/code-nights/dragon.gif",color:"#CEA9EC"},{imageUrl:"/images/code-nights/dinosaur.gif",color:"#CAE865"}],d=Math.floor(Math.random()*l.length);e.Z=function(){let[n,e]=(0,s.useState)(l[d]);return(0,s.useEffect)(()=>{let n=setInterval(()=>{let n=Math.floor(Math.random()*l.length),t=l[n];e(t)},3e3);return()=>clearInterval(n)},[]),(0,i.jsxs)(c,{children:[(0,i.jsx)("div",{className:"banner-image"}),(0,i.jsxs)("div",{className:"banner-info",children:[(0,i.jsx)("div",{className:"img-container",style:{backgroundColor:n.color},children:(0,i.jsx)("img",{src:n.imageUrl,alt:"banner profile image"})}),(0,i.jsxs)("div",{className:"banner-copy",children:[(0,i.jsx)("h2",{children:"#30NitesOfCode"}),(0,i.jsx)("p",{children:"30 days of learning and building!"})]}),(0,i.jsx)(a.Z,{})]})]})}},29085:function(n,e,t){"use strict";t.r(e),t.d(e,{__N_SSG:function(){return b}});var r=t(85893),i=t(67294),o=t(11163),a=t(27936),s=t(99428),c=t(62069),l=t(87235),d=t(15402),m=t(51539),u=t(8956),p=t(60028),f=t(62347),g=t(9473),h=t(609),b=!0;e.default=function(){let n=(0,o.useRouter)(),[e,t]=(0,i.useState)({}),[b,x]=(0,i.useState)(!1),k=(0,g.v9)(h.f8);return(0,i.useEffect)(()=>{if(!n.isReady)return;let e=n.query.post;async function fetchData(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;try{let n=await fetch("/api/community/getSinglePost",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({postID:e,communityName:"30-nites-of-code"})});if(!n.ok)throw Error("Network response was not ok");let r=await n.json();t(r.post),x(!1)}catch(e){n<4?(console.warn("Retrying fetch (".concat(n+1,"/5)...")),setTimeout(()=>fetchData(n+1),1e3)):(console.error("Max retries reached. Could not fetch post:",e),x(!0))}}fetchData()},[n,n.query.post]),(0,i.useEffect)(()=>{if(!n.isReady)return;let e=n.query.post;(0,f.C)(k,e)},[n,k]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.Z,{}),(0,r.jsx)(a.Z,{h1:"Community"}),(0,r.jsx)(c.Z,{children:(0,r.jsxs)(u.Z,{children:[(0,r.jsx)(p.Z,{path:n.pathname,postLink:"/community/30-nites-of-code/create"}),(0,r.jsx)("div",{className:"main-container",children:(0,r.jsx)(l.Z,{postData:e,communityName:"30-nites-of-code",CommunityBanner:(0,r.jsx)(d.Z,{}),failedToFetch:b})})]})}),(0,r.jsx)(m.Z,{})]})}}},function(n){n.O(0,[1272,8700,1057,3777,3874,955,6556,4617,2013,5937,4774,7603,9401,9866,4153,1622,9280,286,6095,8849,2512,959,9428,2163,4793,1312,7235,9774,2888,179],function(){return n(n.s=36420)}),_N_E=n.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.