PageSourceSearch

https://on-chain-dreamers.vercel.app/_nuxt/BIBoPKr-.js

js on-chain-dreamers.vercel.app collected 2026-10-03 07:26:35 UTC 10,700 bytes, 1 lines download raw bytes

1import{p as H,_ as j,o,c as m,a as e,d as S,Y as F,x as P,y as R,t as h,F as L,q as W,D as _,w as x,k as n,b as f,e as q,r as T,h as O,i as c,S as M,j as V,z as C,A as D,C as z,aH as J}from"./CYq1rNlD.js";import{T as I}from"./B6GqoHLr.js";import $ from"./C7EFHEhX.js";import U from"./BS6xSVfG.js";import Y from"./DD_o-ABV.js";import{_ as X,a as G,b as K}from"./of9dCAUT.js";import B from"./BPDrSREm.js";import Q from"./Dq6FNEPt.js";import Z from"./C-Rg5LRx.js";import"./Dde72Ml3.js";const ee=H("/images/bell.webp"),te={},se={class:"news-hero"};function re(A,r){return o(),m("section",se,r[0]||(r[0]=[e("h1",{class:"news-hero-heading"},[S("TODAY "),e("br",{"data-mobile":""}),S("ON "),e("img",{src:ee,alt:""}),S(" CHAIN")],-1),e("div",{class:"news-hero-body"},[e("p",null," Stay updated with a blend of created content + curated tweets, videos, and posts, all summarized for quick insights. Your updates at a glance—because we know you're always on the move. ")],-1)]))}const ne=j(te,[["render",re]]),ae={class:"news-category"},le={class:"news-category-heading"},oe={class:"news-category-list"},ie=["src"],de=F({__name:"Category",props:{name:{}},async setup(A){let r,p;const{data:i}=([r,p]=P(()=>R("/api/articles","$MzquJHB7Nq")),r=await r,p(),r);return(u,a)=>{var l,s;const g=q;return o(),m("div",ae,[e("div",le,[e("h3",null,h(u.name),1)]),e("ul",oe,[(o(!0),m(L,null,W((s=(l=n(i))==null?void 0:l.filter(t=>t.categories.includes(u.name)))==null?void 0:s.slice(0,6),t=>(o(),_(g,{prefetch:"",href:"/article/"+t.slug,class:"news-category-item"},{default:x(()=>[e("figure",null,[e("img",{src:t.cover,alt:""},null,8,ie)]),e("div",null,[a[0]||(a[0]=e("h4",null,"Sustainable Practices in Fashion Industry",-1)),e("h5",null,[e("span",null,h(("TimeToReadArticle"in u?u.TimeToReadArticle:n(I))(t.words)),1),f(n($)),e("span",null,"by "+h(t.author),1),f(n($)),e("span",null,h(t.published.split("-").reverse().join("/")),1)])])]),_:2},1032,["href"]))),256))])])}}}),ce={class:"news-created"},ue={class:"news-created-featured"},he=["src"],me={class:"news-created-all"},pe={class:"news-created-all-grid",ref:"allWrapper"},ve=["src"],fe=F({__name:"Created",props:{articles:{},categories:{}},setup(A){const r=T(10);function p(){r.value=r.value+10}const i=T(null),u=T(null),a=T(1.9);function g(){const s=i.value,t=s.querySelector("ul"),y=u.value.querySelectorAll("button");let w=!1,b,k,N;s.addEventListener("mousedown",v=>{w=!0,s.classList.add("active"),b=v.pageX-s.offsetLeft,k=s.scrollLeft,N=new Date().getTime()}),s.addEventListener("mouseleave",()=>{w=!1,s.classList.remove("active")}),s.addEventListener("mouseup",v=>{w=!1,s.classList.remove("active"),new Date().getTime()-N>250&&(v.preventDefault(),v.stopImmediatePropagation(),v.stopPropagation())}),s.addEventListener("mousemove",v=>{if(!w)return;v.preventDefault();const d=(v.pageX-s.offsetLeft-b)*1.5;s.scrollLeft=k-d,a.value=t.clientWidth/(s.scrollLeft+innerWidth)}),y[0].addEventListener("click",v=>{c.to(s,{scrollLeft:s.scrollLeft-innerWidth*.225,onComplete:()=>{a.value=t.clientWidth/(s.scrollLeft+innerWidth)}})}),y[1].addEventListener("click",v=>{c.to(s,{scrollLeft:s.scrollLeft+innerWidth*.225,onComplete:()=>{a.value=t.clientWidth/(s.scrollLeft+innerWidth)}})})}let l;return O(()=>{g(),c.registerPlugin(M);const s=c.matchMedia();s.add("(min-width:761px)",()=>{l=c.timeline({scrollTrigger:{trigger:".news-created",start:`0% ${innerWidth/20}`,end:`${innerWidth/20} ${innerWidth/20}`,scrub:!0,invalidateOnRefresh:!0}}).to(".news-header div",{yPercent:-100},0).to(".header-logo",{"--color":"#1d1700"},0).to(".header-links",{"--color":"#1d1700","--activeNavText":"#1d1700"},0).to(".header-ham",{"--color":"#1d1700"},0)}),s.add("(max-width:760px)",()=>{l=c.timeline({scrollTrigger:{trigger:".news-created",start:`0% ${innerWidth/5}`,end:`${innerWidth/5} ${innerWidth/5}`,scrub:!0,invalidateOnRefresh:!0}}).to(".news-header div",{yPercent:-100},0).to(".header-logo",{"--color":"#1d1700"},0).to(".header-links",{"--color":"#1d1700","--activeNavText":"#1d1700"},0).to(".header-ham",{"--color":"#1d1700"},0).to(".header-open",{"--background3":"#FCF8E6","--navText":"#1d1700","--activeNavText":"#1d1700",duration:.05},0)})}),V(()=>{l==null||l.revert(),l==null||l.kill()}),(s,t)=>{var b,k,N,v,E;const y=q,w=de;return o(),m("section",ce,[e("div",ue,[t[1]||(t[1]=e("h3",{class:"news-created-featured-heading"},"Featured",-1)),e("div",{class:"news-created-featured-ctrls",ref_key:"ctrlsWra
1pper",ref:u},[e("button",{class:C({inactive:n(a)>1.8})},[f(n(U))],2),e("button",{class:C({inactive:n(a)<1.1})},[f(n(Y))],2)],512),e("div",{class:"news-created-featured-grid",ref_key:"featuredWrapper",ref:i},[e("ul",null,[(o(!0),m(L,null,W((b=s.articles)==null?void 0:b.filter(d=>d.featured),d=>(o(),_(y,{href:"/article/"+d.slug,prefetch:""},{default:x(()=>[e("figure",null,[e("img",{src:d.cover,alt:""},null,8,he)]),e("div",null,[t[0]||(t[0]=e("h4",null,"Sustainable Practices in Fashion Industry",-1)),e("h5",null,[e("span",null,h(("TimeToReadArticle"in s?s.TimeToReadArticle:n(I))(d.words)),1),f(n($)),e("span",null,"by "+h(d.author),1),f(n($)),e("span",null,h(d.published.split("-").reverse().join("/")),1)])])]),_:2},1032,["href"]))),256))])],512)]),(o(!0),m(L,null,W((v=(N=(k=s.categories)==null?void 0:k.Categories)==null?void 0:N.multi_select)==null?void 0:v.options,d=>(o(),_(w,{name:d.name,class:C(d.color)},null,8,["name","class"]))),256)),e("div",me,[t[3]||(t[3]=e("h3",{class:"news-created-all-heading"},"All Posts",-1)),e("div",pe,[e("ul",null,[(o(!0),m(L,null,W((E=s.articles)==null?void 0:E.slice(0,n(r)),d=>(o(),_(y,{href:"/article/"+d.slug,prefetch:""},{default:x(()=>[e("figure",null,[e("img",{src:d.cover,alt:""},null,8,ve)]),e("div",null,[t[2]||(t[2]=e("h4",null,"Sustainable Practices in Fashion Industry",-1)),e("h5",null,[e("span",null,h(("TimeToReadArticle"in s?s.TimeToReadArticle:n(I))(d.words)),1),f(n($)),e("span",null,"by "+h(d.author),1),f(n($)),e("span",null,h(d.published.split("-").reverse().join("/")),1)])])]),_:2},1032,["href"]))),256)),s.articles&&n(r)<s.articles.length?(o(),m("button",{key:0,onClick:p},"Load More")):D("",!0)])],512)])])}}}),ge={class:"news-curated"},we={class:"news-curated-highlights"},_e={class:"home-news-news"},ye={class:"news-curated-all"},be={class:"news-curated-all-grid",ref:"allWrapper"},ke=["src"],Te=F({__name:"Curated",props:{articles:{}},setup(A){const r=T(10);function p(){r.value=r.value+10}let i;return O(()=>{c.registerPlugin(M);const u=c.matchMedia();u.add("(min-width:761px)",()=>{i=c.timeline({scrollTrigger:{trigger:".news-curated",start:`0% ${innerWidth/20}`,end:`${innerWidth/20} ${innerWidth/20}`,scrub:!0,invalidateOnRefresh:!0}}).to(".news-header div",{yPercent:-100},0).to(".header-logo",{"--color":"#1d1700"},0).to(".header-links",{"--color":"#1d1700","--activeNavText":"#1d1700"},0).to(".header-ham",{"--color":"#1d1700"},0)}),u.add("(max-width:760px)",()=>{i=c.timeline({scrollTrigger:{trigger:".news-curated",start:`0% ${innerWidth/5}`,end:`${innerWidth/5} ${innerWidth/5}`,scrub:!0,invalidateOnRefresh:!0}}).to(".news-header div",{yPercent:-100},0).to(".header-logo",{"--color":"#1d1700"},0).to(".header-links",{"--color":"#1d1700","--activeNavText":"#1d1700"},0).to(".header-ham",{"--color":"#1d1700"},0).to(".header-open",{"--background3":"#FCF8E6","--navText":"#1d1700","--activeNavText":"#1d1700",duration:.05},0)});const a=c.to(".home-news-cloud:nth-of-type(1)",{left:"-62.3591rem",duration:30,repeat:-1,ease:"none"});c.to(".home-news-cloud:nth-of-type(2)",{left:"-48.2226rem",duration:30,repeat:-1,ease:"none"}),a.progress(.5)}),V(()=>{i==null||i.revert(),i==null||i.kill()}),(u,a)=>{var l,s;const g=q;return o(),m("section",ge,[e("section",we,[a[1]||(a[1]=e("h2",null,"Today’s Highlights",-1)),a[2]||(a[2]=e("img",{src:X,alt:"",class:"home-news-cloud"},null,-1)),a[3]||(a[3]=e("img",{src:G,alt:"",class:"home-news-cloud"},null,-1)),e("div",_e,[(o(!0),m(L,null,W((l=u.articles)==null?void 0:l.slice(0,4),t=>(o(),_(g,{href:t.url,target:"_blank",class:"home-news-new"},{default:x(()=>[f(n(B)),e("h5",null,h(t.source),1),e("h3",null,h(t.title),1),e("article",null,[a[0]||(a[0]=e("h6",null,[S("AI Summary "),e("img",{src:K,alt:""})],-1)),e("p",null,h(t.summary),1)])]),_:2},1032,["href"]))),256))])]),e("div",ye,[a[4]||(a[4]=e("h3",{class:"news-curated-all-heading"},"Earlier Updates",-1)),e("div",be,[e("ul",null,[(o(!0),m(L,null,W((s=u.articles)==null?void 0:s.slice(0,n(r)),t=>(o(),_(g,{href:t.url,target:"_blank"},{default:x(()=>[e("figure",null,[t.thumbnail?(o(),m("img",{key:0,src:t.thumbnail,alt:""},null,8,ke)):D("",!0)]),e("div",null,[e("h4",null,h(t.title)+"y",1),e("p",null,h(t.summary),1)]),e("h5",null,[e("span",null,h(t.source),1),f(n(B))])]),_:2},1032,["href"]))),256)),u.articles&&n(r)<u.articles.length?(o(),m("button",{key:0,onClick:p},"Load More")):D("",!0)])],512)])])}}}),$e={class:"page",id:"news"},Le={class:"news-switcher"},De=F({__name:"news",async setup(A){let r,p;const i=T("created"),{data:u}=([r,p]=P(()=>R("/api/articles",{key:"created"},"$qIwdPfJJUk")),r=await r,p(),r),{data:a}=([r,p]=P(()=>R("/api/curated",{key:"curated"},"$YI8JSbIpcu")),r=await r,p(),r),{data:g}=([r,p]=P(()=>R("/api/articles-meta","$TqL7V09im6")),r=await r,p(),r);let l;return z(i,()=>{c.delayedCall(.2,l.scrollTrigger.refresh)}),O(()=>{c.registerPlugin(M),c.set(".pseudo-header",{opacity:1}),c.set(".header-logo",{"--color":"var(--navText)"}),c.set(".header-links",{"--color":"var(--navText)"}),l=c.timeline({scrollTrigger:{trigger:".last-section",start:"100% 100%",end:`+=${innerWidth/2.25}`,scrub:!0,invalidateOnRefresh:!0}}).set(".pre-footer",{opacity:1,delay:0}).to(".pre-footer, .last-section",{rotate:"-7.16deg",left:"1rem",ease:"none"})}),V(()=>{l==null||l.revert(),l==null||l.kill()}),(s,t)=>{const y=ne,w=fe,b=Te;return o(),m("main",$e,[t[4]||(t[4]=J('<div class="news-header pseudo-header"><div class="brown"></div><div class="purple"></div><div class="black"></div><div class="yellow"></div><div class="orange"></div><div class="blue"></div><div class="white"></div></div>',1)),f(y),e("div",Le,[e("div",{class:C({"news-switch":!0,active:n(i)==="created"}),onClick:t[0]||(t[0]=k=>i.value="created")},[f(n(Q)),t[2]||(t[2]=e("span",null,"From the Team",-1))],2),e("div",{class:C({"news-switch":!0,active:n(i)==="curated"}),onClick:t[1]||(t[1]=k=>i.value="curated")},[f(n(Z)),t[3]||(t[3]=e("span",null,"Curated across the Web",-1))],2),e("div",{class:C({"news-switch-active":!0,active:n(i)==="curated"})},null,2)]),n(i)==="created"?(o(),_(w,{key:0,articles:n(u),categories:n(g)},null,8,["articles","categories"])):(o(),_(b,{key:1,articles:n(a)},null,8,["articles"])),t[5]||(t[5]=e("section",{class:"last-section","data-desktop":""},null,-1))])}}});
1export{De as default};

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.