import{S as U,i as W,s as X,k as i,a as z,q as C,l as c,m as n,h as a,c as M,r as I,J as R,n as t,b as L,G as s,H as J,I as Y,o as $,K as ee,L as te,u as se}from"../chunks/index.0d3f7c7a.js";import{p as le}from"../chunks/stores.0fd75ed6.js";function N(S){let e,l,h,w,f,m,u,x,r,P,o,v,E,d,A,k,D;return{c(){e=i("div"),l=i("iframe"),w=z(),f=i("div"),m=z(),u=i("div"),x=z(),r=i("div"),P=z(),o=i("div"),v=z(),E=i("div"),d=i("p"),A=C("ZQSD to move SPACE to jump. "),k=i("a"),D=C("Full shaders game demo"),this.h()},l(b){e=c(b,"DIV",{class:!0});var p=n(e);l=c(p,"IFRAME",{src:!0,frameborder:!0,title:!0,height:!0,width:!0,class:!0}),n(l).forEach(a),w=M(p),f=c(p,"DIV",{class:!0}),n(f).forEach(a),m=M(p),u=c(p,"DIV",{class:!0}),n(u).forEach(a),x=M(p),r=c(p,"DIV",{class:!0}),n(r).forEach(a),P=M(p),o=c(p,"DIV",{class:!0}),n(o).forEach(a),p.forEach(a),v=M(b),E=c(b,"DIV",{class:!0});var V=n(E);d=c(V,"P",{});var G=n(d);A=I(G,"ZQSD to move SPACE to jump. "),k=c(G,"A",{href:!0,target:!0,class:!0});var H=n(k);D=I(H,"Full shaders game demo"),H.forEach(a),G.forEach(a),V.forEach(a),this.h()},h(){R(l.src,h="smg/index.html")||t(l,"src",h),t(l,"frameborder","0"),t(l,"title","Spaceship Drift"),t(l,"height","512"),t(l,"width","768"),t(l,"class",""),t(f,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -top-[3px] -left-[3px]"),t(u,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -bottom-[3px] -left-[3px]"),t(r,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -top-[3px] -right-[3px]"),t(o,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -bottom-[3px] -right-[3px]"),t(e,"class","relative mt-6 border-slate-800 border-[3px]"),t(k,"href","https://x.com/HugoDuprez/status/1712093324528541831?s=20"),t(k,"target","_blank"),t(k,"class","underline"),t(E,"class","flex flex-row justify-center items-center text-[9px] mt-4 text-slate-500")},m(b,p){L(b,e,p),s(e,l),s(e,w),s(e,f),s(e,m),s(e,u),s(e,x),s(e,r),s(e,P),s(e,o),L(b,v,p),L(b,E,p),s(E,d),s(d,A),s(d,k),s(k,D)},d(b){b&&a(e),b&&a(v),b&&a(E)}}}function O(S){let e,l,h,w,f,m,u=S[1]?"Copied!":"Copy the link for later",x,r,P;return{c(){e=i("div"),l=i("p"),h=C("Looks like you're on mobile! Please visit on your laptop."),w=z(),f=i("button"),m=i("p"),x=C(u),this.h()},l(o){e=c(o,"DIV",{class:!0});var v=n(e);l=c(v,"P",{class:!0});var E=n(l);h=I(E,"Looks like you're on mobile! Please visit on your laptop."),E.forEach(a),w=M(v),f=c(v,"BUTTON",{class:!0});var d=n(f);m=c(d,"P",{class:!0});var A=n(m);x=I(A,u),A.forEach(a),d.forEach(a),v.forEach(a),this.h()},h(){t(l,"class","text-xs text-slate-500 mt-6"),t(m,"class","mt-1"),t(f,"class","flex flex-row justify-center items-center px-3 py-5 text-xs w-full bg-slate-800 mt-6"),t(e,"class","flex flex-col justify-center items-center mt-10 text-center")},m(o,v){L(o,e,v),s(e,l),s(l,h),s(e,w),s(e,f),s(f,m),s(m,x),r||(P=ee(f,"click",te(S[2])),r=!0)},p(o,v){v&2&&u!==(u=o[1]?"Copied!":"Copy the link for later")&&se(x,u)},d(o){o&&a(e),r=!1,P()}}}function ae(S){let e,l,h,w,f,m,u,x,r,P,o,v,E,d,A,k,D,b,p,V,G,H,g=!S[0]&&N(),_=S[0]&&O(S);return{c(){e=i("div"),l=i("div"),h=i("img"),f=z(),g&&g.c(),m=z(),_&&_.c(),u=z(),x=i("div"),r=i("p"),P=C("Made by "),o=i("a"),v=C("Hugo"),E=C(` with `),d=i("a"),A=C("Godot"),k=C(`, `),D=i("a"),b=C("Svelte"),p=C(`, and `),V=i("a"),G=C("Kenney assets"),this.h()},l(j){e=c(j,"DIV",{class:!0});var y=n(e);l=c(y,"DIV",{class:!0});var T=n(l);h=c(T,"IMG",{src:!0,alt:!0,class:!0}),T.forEach(a),f=M(y),g&&g.l(y),m=M(y),_&&_.l(y),u=M(y),x=c(y,"DIV",{class:!0});var q=n(x);r=c(q,"P",{});var F=n(r);P=I(F,"Made by "),o=c(F,"A",{href:!0,target:!0,class:!0});var K=n(o);v=I(K,"Hugo"),K.forEach(a),E=I(F,` with `),d=c(F,"A",{href:!0,target:!0,class:!0});var Q=n(d);A=I(Q,"Godot"),Q.forEach(a),k=I(F,`, `),D=c(F,"A",{href:!0,target:!0,class:!0});var Z=n(D);b=I(Z,"Svelte"),Z.forEach(a),p=I(F,`, and `),V=c(F,"A",{href:!0,target:!0,class:!0});var B=n(V);G=I(B,"Kenney assets"),B.forEach(a),F.forEach(a),q.forEach(a),y.forEach(a),this.h()},h(){R(h.src,w="images/png_title.png")||t(h,"src",w),t(h,"alt","Game title"),t(h,"class","h-48"),t(l,"class","flex flex-col justify-center items-center space-y-4 text-center mt-12"),t(o,"href","https://www.hugoduprez.com/"),t(o,"target","_blank"),t(o,"class","underline"),t(d,"href","https://godotengine.org/"),t(d,"target","_blank"),t(d,"class","underline"),t(D,"href","https://svelte.dev/"),t(D,"target","_blank"),t(D,"class","underline"),t(V,"href","https://www.kenney.nl/tools"),t(V,"target","_blank"),t(V,"class","underline"),t(x,"class",H="flex flex-row justify-center items-center text-center "+(S[0]?"mt-20":"fixed bottom-6")+" text-[9px] text-slate-500"),t(e,"class","flex flex-col justify-center text-slate-100 font-Hellovetica items-center p-4 w-full")},m(j,y){L(j,e,y),s(e,l),s(l,h),s(e,f),g&&g.m(e,null),s(e,m),_&&_.m(e,null),s(e,u),s(e,x),s(x,r),s(r,P),s(r,o),s(o,v),s(r,E),s(r,d),s(d,A),s(r,k),s(r,D),s(D,b),s(r,p),s(r,V),s(V,G)},p(j,[y]){j[0]?g&&(g.d(1),g=null):g||(g=N(),g.c(),g.m(e,m)),j[0]?_?_.p(j,y):(_=O(j),_.c(),_.m(e,u)):_&&(_.d(1),_=null),y&1&&H!==(H="flex flex-row justify-center items-center text-center "+(j[0]?"mt-20":"fixed bottom-6")+" text-[9px] text-slate-500")&&t(x,"class",H)},i:J,o:J,d(j){j&&a(e),g&&g.d(),_&&_.d()}}}function re(S,e,l){let h;Y(S,le,u=>l(3,h=u));let w=!1,f=!1;$(()=>{window.innerWidth<768&&l(0,w=!0)});function m(){navigator.clipboard.writeText(h.url.toString()),l(1,f=!0)}return[w,f,m]}class ce extends U{constructor(e){super(),W(this,e,re,ae,X,{})}}export{ce as component};