PageSourceSearch

https://tesana.com/assets/LandingPageNew-DECjhTGJ.js

js tesana.com collected 2026-10-09 22:40:05 UTC 11,188 bytes, 1 lines download raw bytes

1import{j as e}from"./vendor-motion-hRg_q8lq.js";import{r as i,i as L}from"./vendor-react-E98sgxjj.js";import{u as x,L as m,d as p,ao as P,H as M}from"./index-BKzE8EQ8.js";import{C as k,B as I,H as R,u as S,a as A,L as j,P as E,b as z,S as F}from"./rotatorArt-3czN8AJd.js";import{u as C,o as G}from"./marketplaceMe-C31_JRd_.js";import"./vendor-fa-Bn2dnpnC.js";import"./tabBarStore-624ukDKJ.js";import{P as T}from"./PublicChrome-Ci8QPupK.js";import{i as D,h as O}from"./GameRow-BewUztqS.js";import"./FeaturedCard-CyVcJ61O.js";import{G as w}from"./GameGrid-DDIfZYbN.js";import{M as H}from"./MediaImage-DKgx-nW4.js";import"./vendor-query-bOUN_gKe.js";import"./playingNowApi-CB_pr25U.js";import"./usePlayingNow-D0BSBy1C.js";import"./LandingFooter-DjCjfhwD.js";import"./useLocaleNavigate-BNriJdRU.js";import"./UserAvatarMenu-BoKKInby.js";import"./Tooltip-C8AvPGtA.js";import"./Avatar-B60wpoS5.js";import"./socialLinks-DmmZmq5v.js";import"./MediaVideo-CBR0-TKg.js";function B({className:t,observeRef:n}){const{t:s}=x("revamp");return e.jsxs(m,{to:"/create","data-section":"ai-banner",className:p("group relative isolate mx-auto flex h-[204px] w-full max-w-[960px] flex-col items-center justify-center overflow-hidden rounded-[22px] px-6 text-center","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/50 focus-visible:ring-offset-2 focus-visible:ring-offset-background",t),children:[e.jsx("span",{ref:n,"aria-hidden":"true",className:"absolute inset-0 -z-10",children:e.jsx(k,{images:I,width:960,sizes:"(min-width: 768px) 960px, 100vw",priority:!0})}),e.jsx("span",{className:"font-expanded text-2xl font-[650] leading-8 text-[#161616]",children:s("home.banner.title")}),e.jsxs("span",{className:"mt-3 max-w-[320px] text-base leading-6 text-[#161616] md:max-w-none",children:[e.jsx("span",{className:"block",children:s("home.banner.line1")}),e.jsx("span",{className:"block",children:s("home.banner.line2")})]}),e.jsx("span",{className:"mt-4 inline-flex h-9 items-center rounded-full bg-[#161616] px-5 text-sm text-white transition-colors group-hover:bg-black",children:s("home.banner.cta")})]})}const W="(min-width: 1024px)",N="tesana_ai_card_dismissed",u="#F4F3F2";function $(){try{return sessionStorage.getItem(N)==="1"}catch{return!1}}function U(t){const[n,s]=i.useState(()=>typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia(t).matches);return i.useEffect(()=>{if(typeof window.matchMedia!="function")return;const r=window.matchMedia(t),o=()=>s(r.matches);return o(),r.addEventListener?.("change",o),()=>r.removeEventListener?.("change",o)},[t]),n}function Y({anchorRef:t}){const{t:n}=x("revamp"),s=U(W),[r,o]=i.useState($),[a,g]=i.useState(!1),[l,d]=i.useState(!1),f=s&&!r;i.useEffect(()=>{if(!f)return;const c=t.current;if(!c||typeof IntersectionObserver>"u")return;const b=new IntersectionObserver(([v])=>{const y=!v.isIntersecting&&v.boundingClientRect.bottom<=0;g(y),y&&d(!0)});return b.observe(c),()=>b.disconnect()},[f,t]);const h=i.useCallback(()=>{o(!0);try{sessionStorage.setItem(N,"1")}catch{}},[]),_=c=>{c.key==="Escape"&&(c.stopPropagation(),h())};return!f||typeof document>"u"?null:L.createPortal(e.jsx("section",{"aria-label":n("home.floatingCard.label"),onKeyDown:_,"data-floating-card":a?"shown":"hidden",className:p("fixed bottom-6 right-6 z-40 w-[360px]","transition-[opacity,transform,visibility] duration-300 ease-[cubic-bezier(0.215,0.61,0.355,1)] motion-reduce:transition-none",a?"visible translate-y-0 opacity-100":"pointer-events-none invisible translate-y-5 opacity-0 motion-reduce:translate-y-0"),children:e.jsxs("div",{className:"relative overflow-hidden rounded-2xl bg-[#F4F3F2] text-center text-[#161616] shadow-[0_20px_56px_rgba(0,0,0,0.38)]",children:[e.jsxs("div",{className:"relative aspect-video w-full overflow-hidden",children:[l&&e.jsx(k,{images:R,width:360,sizes:"360px",loading:"eager",paused:!a}),e.jsx("span",{"aria-hidden":"true",className:"pointer-events-none absolute inset-x-0 bottom-0 h-1/4",style:{background:`linear-gradient(180deg, ${u}00 0%, ${u}9e 72%, ${u} 96%)`}})]}),e.jsxs("div",{className:"flex flex-col items-center px-3 pb-[18px] pt-3",children:[e.jsx("p",{className:"text-balance text-xl font-[510] leading-[1.15] tracking-[-0.01em]",children:n("home.floatingCard.headline")}),e.jsx(m,{to:"/create",className:"mt-3.5 inline-flex h-9 items-center rounded-full bg-[#161616] px-5 text-sm text-white transition-colors hover:bg-black focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#161616]/50 focus-visible:ring-offset-2 focus-visible:ring-offset-[#F4F3F2]",children:n("home.banner.cta")})]}),e.jsx("button",{type:"button",onClick:h,"aria-label":n("home.floatingCard.close"),className:"absolute right-2.5 top-2.5 z-10 flex size-8 items-center justify-center rounded-full border border-white/28 bg-black/62 text-white transition-colors hover:border-white/42 hover:bg-black/76 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-white",children:e.jsx("svg",{"aria-hidden":"true",viewBox:"0 0 24 24",className:"size-4",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:e.jsx("path",{d:"M6 6 18 18M18 6 6 18"})})})]})}),document.body)}const J=[{key:"topPicks",href:"/play/section/top"},{key:"popular",href:"/play/section/popular"},{key:"mostPopular",href:"/play/charts?metric=played"},{key:"highestRated",href:"/play/charts?metric=rated"}
1,{key:"newArrivals",href:"/play/section/new"},{key:"trendingWeek",href:"/play/charts?metric=trending"},{key:"fps",href:"/play/category/shooter"},{key:"strategy",href:"/play/category/strategy"},{key:"roguelikes",href:"/play/tag/roguelike"},{key:"cozy",href:"/play/category/cozy"},{key:"darkFantasy",href:"/play/tag/fantasy"},{key:"racing",href:"/play/category/racing"},{key:"sports",href:"/play/category/sports"}],K=[{src:"/images/revamp/genre-left.webp",className:"z-0 [transform:translate(-77px,11px)_rotate(-15deg)]"},{src:"/images/revamp/genre-right.webp",className:"z-0 [transform:translate(77px,11px)_rotate(15deg)]"},{src:"/images/revamp/genre-center.webp",className:"z-10"}];function Q({className:t}){const{t:n}=x("revamp");return e.jsxs("section",{"data-section":"genres","aria-labelledby":"home-genres-title",className:p("relative isolate overflow-hidden pt-[74px] pb-[66px] md:pt-[116px] md:pb-[113px]",t),children:[e.jsx("div",{"aria-hidden":"true","data-genres-glow":"",className:"pointer-events-none absolute inset-x-0 bottom-0 -z-10 h-[300px]",style:{backgroundImage:"radial-gradient(ellipse min(460px, 75vw) 300px at 50% 100%, var(--color-glow) 0%, color-mix(in srgb, var(--color-glow) 32%, transparent) 50%, transparent 100%)"}}),e.jsxs("div",{className:"page-container flex flex-col items-center text-center",children:[e.jsx("div",{"aria-hidden":"true",className:"relative h-20 w-[140px]",children:K.map(s=>e.jsx(H,{sources:[s.src],alt:"",layout:"inline",width:140,className:p("absolute inset-0 h-20 w-[140px] rounded-[6px] object-cover shadow-[0_4px_16px_rgba(0,0,0,0.35)]",s.className)},s.src))}),e.jsxs("h2",{id:"home-genres-title",className:"mt-[53px] max-w-[345px] text-h3-sm font-normal text-foreground md:mt-[63px] md:max-w-none md:text-h3",children:[e.jsx("span",{className:"block",children:n("home.genres.titleLine1")}),e.jsx("span",{className:"block",children:n("home.genres.titleLine2")})]}),e.jsx("ul",{className:"mt-5 flex max-w-[640px] flex-wrap justify-center gap-2 md:mt-[31px]",children:J.map(s=>e.jsx("li",{children:e.jsx(m,{to:s.href,"data-genre-pill":s.key,className:"inline-flex h-9 items-center rounded-full border border-line px-4 text-sm leading-5 text-foreground transition-colors hover:border-foreground
1/40 hover:bg-pill focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/40",children:n(`home.genres.pills.${s.key}`)})},s.key))}),e.jsx(m,{to:"/play/tags",className:"mt-6 inline-flex h-10 items-center rounded-full bg-foreground px-6 text-base text-background transition-opacity hover:opacity-85 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/40 focus-visible:ring-offset-2 focus-visible:ring-offset-background md:mt-8",children:n("home.genres.browseAll")})]})]})}const V={hero:[],trending:[],top:[],viral:[]},X="inline-flex h-10 items-center rounded-full bg-foreground px-6 text-base text-background transition-opacity hover:opacity-85 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground/40 focus-visible:ring-offset-2 focus-visible:ring-offset-background";function ye(){const{t}=x(["revamp","marketing"]),n=P(),{data:s,isPending:r}=S(),o=C(),a=i.useMemo(()=>G(s??V,o),[s,o]),g=i.useMemo(()=>[...a.hero,...a.trending,...a.top],[a]),l=A(g),d=i.useRef(null);return e.jsxs(T,{navInFlow:!0,banner:void 0,children:[e.jsxs(M,{children:[e.jsx("title",{children:t("marketing:landing.meta.title")}),e.jsx("meta",{name:"description",content:t("marketing:landing.meta.description")}),e.jsx("meta",{property:"og:title",content:t("marketing:landing.meta.title")}),e.jsx("meta",{property:"og:description",content:t("marketing:landing.meta.description")}),e.jsx("meta",{property:"og:type",content:"website"}),e.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),e.jsx("meta",{name:"twitter:title",content:t("marketing:landing.meta.title")}),e.jsx("meta",{name:"twitter:description",content:t("marketing:landing.meta.description")}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:"Tesana",url:"https://tesana.ai",logo:"https://tesana.ai/logos/logo.png",description:t("marketing:landing.meta.orgDescription"),sameAs:[]})}),e.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:"Tesana",url:n})})]}),e.jsxs(D,{children:[e.jsxs("main",{className:"pb-6 md:pb-10",children:[e.jsxs("div",{className:"page-container pt-8 md:pt-[69px]",children:[e.jsx(B,{observeRef:d}),e.jsxs("header",{"data-section":"hero",className:"mt-10 flex flex-col items-center text-center md:mt-[55px]",children:[e.jsx("h1",{className:"max-w-[361px] text-foreground font-expanded text-[40px] font-[540] leading-[48px] md:max-w-[640px] md:text-[52px] md:leading-[60px] lg:max-w-[800px] lg:text-[64px] lg:leading-[70px]",children:t("home.title")}),e.jsx("p",{className:"mt-[17px] max-w-[320px] text-base leading-6 text-muted-foreground md:mt-6 md:max-w-none md:text-xl md:leading-[30px]",children:t("home.subtitle")})]}),e.jsx(w,{variant:"large",games:a.hero,loading:r,playingNow:l,priority:!0,className:"mt-12 md:mt-[68px]"}),e.jsx("div",{className:"mt-9 flex justify-center md:mt-12",children:e.jsx(m,{to:"/play",className:X,children:t("home.browseAllGames")})})]}),e.jsx(j,{sticky:!1,className:"mt-[68px] md:mt-24"}),e.jsxs("div",{className:"page-container",children:[e.jsx(w,{variant:"small",title:t("home.trending"),games:a.trending,loading:r,phoneLimit:10,playingNow:l,className:"mt-16 md:mt-20"}),e.jsx(O,{variant:"top10",title:t("home.topGames"),games:a.top,loading:r,playingNow:l,className:"mt-16 md:mt-20"})]}),e.jsx(Q,{}),e.jsx(j,{sticky:!1}),e.jsx(E,{}),e.jsx(z,{}),e.jsx(F,{})]}),e.jsx(Y,{anchorRef:d})]})]})}export{ye 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.