HugoDzz's picture
feat: update credits
a89a924
raw
history blame
6.06 kB
import{S as re,i as ae,s as ie,k as i,q as E,a as j,l as o,m as n,r as k,h as r,c as A,n as s,b as L,G as t,H as ee,I as oe,o as ce,J as le,K as ne,L as fe,u as ue}from"../chunks/index.0d3f7c7a.js";import{p as de}from"../chunks/stores.de52cb1e.js";const pe=""+new URL("../assets/preview.69504cb0.png",import.meta.url).href;function te(D){let e,l,_,y,u,v,b,g,m,C,d,c,I,f,p;return{c(){e=i("div"),l=i("iframe"),y=j(),u=i("div"),v=j(),b=i("div"),g=j(),m=i("div"),C=j(),d=i("div"),c=j(),I=i("div"),f=i("p"),p=E("Use arrow keys. SPACE to fire."),this.h()},l(h){e=o(h,"DIV",{class:!0});var a=n(e);l=o(a,"IFRAME",{src:!0,frameborder:!0,title:!0,height:!0,width:!0,class:!0}),n(l).forEach(r),y=A(a),u=o(a,"DIV",{class:!0}),n(u).forEach(r),v=A(a),b=o(a,"DIV",{class:!0}),n(b).forEach(r),g=A(a),m=o(a,"DIV",{class:!0}),n(m).forEach(r),C=A(a),d=o(a,"DIV",{class:!0}),n(d).forEach(r),a.forEach(r),c=A(h),I=o(h,"DIV",{class:!0});var z=n(I);f=o(z,"P",{});var F=n(f);p=k(F,"Use arrow keys. SPACE to fire."),F.forEach(r),z.forEach(r),this.h()},h(){le(l.src,_="game/index.html")||s(l,"src",_),s(l,"frameborder","0"),s(l,"title","Spaceship Drift"),s(l,"height","512"),s(l,"width","512"),s(l,"class",""),s(u,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -top-[3px] -left-[3px]"),s(b,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -bottom-[3px] -left-[3px]"),s(m,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -top-[3px] -right-[3px]"),s(d,"class","h-[3px] bg-[#0C0F19] w-[3px] z-10 absolute -bottom-[3px] -right-[3px]"),s(e,"class","relative mt-10 border-slate-800 border-[3px]"),s(I,"class","flex flex-row justify-center items-center text-[9px] mt-4 text-slate-500")},m(h,a){L(h,e,a),t(e,l),t(e,y),t(e,u),t(e,v),t(e,b),t(e,g),t(e,m),t(e,C),t(e,d),L(h,c,a),L(h,I,a),t(I,f),t(f,p)},d(h){h&&r(e),h&&r(c),h&&r(I)}}}function se(D){let e,l,_,y,u,v,b,g,m,C=D[1]?"Copied!":"Copy the link for later",d,c,I;return{c(){e=i("div"),l=i("img"),y=j(),u=i("p"),v=E("Looks like you're on mobile! Please visit on your laptop."),b=j(),g=i("button"),m=i("p"),d=E(C),this.h()},l(f){e=o(f,"DIV",{class:!0});var p=n(e);l=o(p,"IMG",{src:!0,alt:!0,class:!0,height:!0,width:!0}),y=A(p),u=o(p,"P",{class:!0});var h=n(u);v=k(h,"Looks like you're on mobile! Please visit on your laptop."),h.forEach(r),b=A(p),g=o(p,"BUTTON",{class:!0});var a=n(g);m=o(a,"P",{class:!0});var z=n(m);d=k(z,C),z.forEach(r),a.forEach(r),p.forEach(r),this.h()},h(){le(l.src,_=pe)||s(l,"src",_),s(l,"alt","Preview of the game"),s(l,"class","w-60 border-slate-800 border-[2px]"),s(l,"height","64"),s(l,"width","64"),s(u,"class","text-xs text-slate-500 mt-6"),s(m,"class","mt-1"),s(g,"class","flex flex-row justify-center items-center px-3 py-5 text-xs w-full bg-slate-800 mt-6"),s(e,"class","flex flex-col justify-center items-center mt-10 text-center")},m(f,p){L(f,e,p),t(e,l),t(e,y),t(e,u),t(u,v),t(e,b),t(e,g),t(g,m),t(m,d),c||(I=ne(g,"click",fe(D[2])),c=!0)},p(f,p){p&2&&C!==(C=f[1]?"Copied!":"Copy the link for later")&&ue(d,C)},d(f){f&&r(e),c=!1,I()}}}function he(D){let e,l,_,y,u,v,b,g,m,C,d,c,I,f,p,h,a,z,F,H,q,R,M,B,J,T,K,G,w=!D[0]&&te(),x=D[0]&&se(D);return{c(){e=i("div"),l=i("div"),_=i("h1"),y=E("Spaceship freeride"),u=j(),v=i("p"),b=E("Take a break and enjoy a little freeride."),g=j(),w&&w.c(),m=j(),x&&x.c(),C=j(),d=i("div"),c=i("p"),I=E("Made by "),f=i("a"),p=E("Hugo"),h=E(`
with
`),a=i("a"),z=E("Godot"),F=E(`,
`),H=i("a"),q=E("Svelte"),R=E(`,
`),M=i("a"),B=E("Scenario"),J=E(`, and
`),T=i("a"),K=E("Pixelicious"),this.h()},l(S){e=o(S,"DIV",{class:!0});var P=n(e);l=o(P,"DIV",{class:!0});var U=n(l);_=o(U,"H1",{class:!0});var N=n(_);y=k(N,"Spaceship freeride"),N.forEach(r),u=A(U),v=o(U,"P",{class:!0});var O=n(v);b=k(O,"Take a break and enjoy a little freeride."),O.forEach(r),U.forEach(r),g=A(P),w&&w.l(P),m=A(P),x&&x.l(P),C=A(P),d=o(P,"DIV",{class:!0});var W=n(d);c=o(W,"P",{});var V=n(c);I=k(V,"Made by "),f=o(V,"A",{href:!0,target:!0,class:!0});var Q=n(f);p=k(Q,"Hugo"),Q.forEach(r),h=k(V,`
with
`),a=o(V,"A",{href:!0,target:!0,class:!0});var X=n(a);z=k(X,"Godot"),X.forEach(r),F=k(V,`,
`),H=o(V,"A",{href:!0,target:!0,class:!0});var Y=n(H);q=k(Y,"Svelte"),Y.forEach(r),R=k(V,`,
`),M=o(V,"A",{href:!0,target:!0,class:!0});var Z=n(M);B=k(Z,"Scenario"),Z.forEach(r),J=k(V,`, and
`),T=o(V,"A",{href:!0,target:!0,class:!0});var $=n(T);K=k($,"Pixelicious"),$.forEach(r),V.forEach(r),W.forEach(r),P.forEach(r),this.h()},h(){s(_,"class","text-xl capitalize"),s(v,"class","text-xs"),s(l,"class","flex flex-col justify-center items-center space-y-4 text-center sm:mt-20 mt-12"),s(f,"href","https://twitter.com/HugoDuprez"),s(f,"target","_blank"),s(f,"class","underline"),s(a,"href","https://godotengine.org/"),s(a,"target","_blank"),s(a,"class","underline"),s(H,"href","https://svelte.dev/"),s(H,"target","_blank"),s(H,"class","underline"),s(M,"href","https://www.scenario.com/"),s(M,"target","_blank"),s(M,"class","underline"),s(T,"href","https://www.pixelicious.xyz/"),s(T,"target","_blank"),s(T,"class","underline"),s(d,"class",G="flex flex-row justify-center items-center text-center "+(D[0]?"mt-20":"fixed bottom-6")+" text-[9px] text-slate-500"),s(e,"class","flex flex-col justify-center text-slate-100 font-Hellovetica items-center p-4 w-full")},m(S,P){L(S,e,P),t(e,l),t(l,_),t(_,y),t(l,u),t(l,v),t(v,b),t(e,g),w&&w.m(e,null),t(e,m),x&&x.m(e,null),t(e,C),t(e,d),t(d,c),t(c,I),t(c,f),t(f,p),t(c,h),t(c,a),t(a,z),t(c,F),t(c,H),t(H,q),t(c,R),t(c,M),t(M,B),t(c,J),t(c,T),t(T,K)},p(S,[P]){S[0]?w&&(w.d(1),w=null):w||(w=te(),w.c(),w.m(e,m)),S[0]?x?x.p(S,P):(x=se(S),x.c(),x.m(e,C)):x&&(x.d(1),x=null),P&1&&G!==(G="flex flex-row justify-center items-center text-center "+(S[0]?"mt-20":"fixed bottom-6")+" text-[9px] text-slate-500")&&s(d,"class",G)},i:ee,o:ee,d(S){S&&r(e),w&&w.d(),x&&x.d()}}}function me(D,e,l){let _;oe(D,de,b=>l(3,_=b));let y=!1,u=!1;ce(()=>{window.innerWidth<768&&l(0,y=!0)});function v(){navigator.clipboard.writeText(_.url.toString()),l(1,u=!0)}return[y,u,v]}class _e extends re{constructor(e){super(),ae(this,e,me,he,ie,{})}}export{_e as component};