import{r as p,F as c,L as x,D as g,M as s,I as e,E as a,N as f,Q as l,J as o}from"./index-CoQ-x5A8.js";import{Q as i,a as n,b as d}from"./QCard-7tL_iMin.js";import{P as w}from"./LocalStorage-Cw9j6RTB.js";import"./use-dark-dqtTUvyg.js";const h="/assets/quasar-logo-vertical-Dh1dpsZJ.svg",v={class:"q-pa-lg flex flex-center",style:{gap:"24px"}},z={__name:"IndexPage",setup(_){const u=c(),m=p({username:"",id:0}),r=w.getItem("user");return r?(console.log(r),m.value=r):u.push("/user/username"),(y,t)=>(g(),x(f,null,[t[2]||(t[2]=s("h1",{style:{"text-align":"center"}}," Digitale Helfer für Dart ",-1)),s("div",v,[e(i,{class:"q-pa-lg shadow-3",style:{width:"400px","max-width":"90vw","border-radius":"16px"}},{default:a(()=>[e(n,{class:"text-center"},{default:a(()=>[e(l,{name:"bi-controller",size:"48px",color:"primary"}),t[0]||(t[0]=s("div",{class:"text-h6 q-mt-md"},"Create a Game",-1))]),_:1}),e(d,{align:"center"},{default:a(()=>[e(o,{label:"Go!",color:"primary",to:"/game/select",rounded:"",unelevated:"",size:"lg",class:"full-width"})]),_:1})]),_:1}),e(i,{class:"q-pa-lg shadow-3",style:{width:"400px","max-width":"90vw","border-radius":"16px"}},{default:a(()=>[e(n,{class:"text-center"},{default:a(()=>[e(l,{name:"public",size:"48px",color:"primary"}),t[1]||(t[1]=s("div",{class:"text-h6 q-mt-md"},"Join a Game",-1))]),_:1}),e(d,{align:"center"},{default:a(()=>[e(o,{label:"Go!",color:"primary",to:"/game/online/join",rounded:"",unelevated:"",size:"lg",class:"full-width"})]),_:1})]),_:1})]),t[3]||(t[3]=s("div",{class:"flex flex-center"},[s("img",{alt:"Quasar logo",src:h,style:{width:"200px",height:"200px"}})],-1))],64))}};export{z as default};
