1import{f as d,c as f,d as e,m as p,o as T,i as M,s as j,b as o,t as g,e as c,j as i,n as x,E as b,k as w,T as A,F as S,r as z}from"./entry.ff824838.js";import{H as B,g as F,F as V}from"./Footer.56818c9d.js";import{u as E,R as G,h as N,y as O,M as H}from"./ua-parser.e1f3155c.js";import{r as L}from"./CheckIcon.e213a156.js";import"./use-tree-walker.21a991eb.js";import"./_commonjsHelpers.725317a4.js";function R(_,r){return d(),f("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},[e("path",{"fill-rule":"evenodd",d:"M13.887 3.182c.396.037.79.08 1.183.128C16.194 3.45 17 4.414 17 5.517V16.75A2.25 2.25 0 0114.75 19h-9.5A2.25 2.25 0 013 16.75V5.517c0-1.103.806-2.068 1.93-2.207.393-.048.787-.09 1.183-.128A3.001 3.001 0 019 1h2c1.373 0 2.531.923 2.887 2.182zM7.5 4A1.5 1.5 0 019 2.5h2A1.5 1.5 0 0112.5 4v.5h-5V4z","clip-rule":"evenodd"})])}const W={id:"main-content",tabindex:"-1",class:"bg-white"},$={class:"px-6 py-12 sm:px-6 sm:py-16 lg:px-8"},I={class:"mx-auto max-w-2xl text-center"},P=e("h2",{class:"text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl"},"Get started with Gitea",-1),q=e("p",{class:"mx-auto mt-6 max-w-xl text-base sm:text-lg leading-7 sm:leading-8 text-gray-600"},"Every feature you need is packaged into a single ~100MB binary or container. Download Gitea, pull the Docker image, or try it online in seconds.",-1),J={class:"mt-10 flex items-center justify-center gap-x-6"},K=e("a",{href:"https://gitea.com/user/login",class:"rounded-lg bg-blue-600 px-3.5 py-2.5 text-base sm:text-lg font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"},"Try online",-1),Q={class:"inline-flex rounded-md shadow-sm"},U=["href"],X=e("span",{class:"sr-only"},"Open options",-1),Y={class:"py-1"},Z=["href"],ee=w('<div class="mt-10 flex items-center justify-center" aria-hidden="true"><div class="flex w-full max-w-md items-center gap-x-4"><span class="h-px flex-1 bg-gray-200"></span><span class="text-xs font-semibold uppercase tracking-[0.2em] text-gray-400">or</span><span class="h-px flex-1 bg-gray-200"></span></div></div>',1),te={class:"mt-10 flex items-center justify-center"},ae={class:"flex w-full max-w-xl items-center gap-2 pt-4"},se=e("label",{for:"docker-pull",class:"sr-only"},"Docker pull command",-1),oe=["aria-label"],ie=w('<div class="px-6 py-12 sm:px-6 sm:py-32 lg:px-8"><div class="mx-auto max-w-2xl text-center"><h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">Choose a plan thatâs right for you</h2><p class="mx-auto mt-6 max-w-xl text-base sm:text-lg leading-7 sm:leading-8 text-gray-600">Gitea isn't just for personal projects. Find the plan that empowers your team and streamlines your DevOps.</p><div class="mt-10 flex items-center justify-center gap-x-6"><a href="/pricing" class="whitespace-nowrap font-semibold text-main-600">
1See pricing <span aria-hidden="true">â</span></a></div></div></div>',1),h="docker pull gitea/gitea:latest",me={__name:"get-started",setup(_){let r=3;const v=p(""),y=p(""),u=[{name:"Download for Mac - Intel Chip",href:"https://dl.gitea.com/gitea/1.27.3/gitea-1.27.3-darwin-10.12-arm64"},{name:"Download for Mac - Apple Chip",href:"https://dl.gitea.com/gitea/1.27.3/gitea-1.27.3-darwin-10.12-amd64"},{name:"Download for Linux",href:"https://dl.gitea.com/gitea/1.27.3/gitea-1.27.3-linux-amd64"},{name:"Download for Windows",href:"https://dl.gitea.com/gitea/1.27.3/gitea-1.27.3-gogit-windows-4.0-amd64.exe"}];T(()=>{const n=E(navigator.userAgent),a=n.os.name;a==="Mac OS"?n.cpu.architecture==null?r=1:r=2:a==="Windows"?r=3:a==="Linux"&&(r=2),v.value=u[r].name,y.value=u[r].href});const k=M(),{showNav:C}=j(k),s=p("idle");let l=null;const D=async()=>{var a;l&&(clearTimeout(l),l=null);const n=(t,m)=>{s.value=t,l=setTimeout(()=>{s.value="idle",l=null},m)};try{if((a=navigator==null?void 0:navigator.clipboard)!=null&&a.writeText)await navigator.clipboard.writeText(h);else{const t=document.createElement("textarea");t.value=h,t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}n("copied",2e3)}catch{n("error",3e3)}};return(n,a)=>(d(),f("div",{class:x(i(C)?"bg-slate-300/50":"")},[o(B),e("main",W,[e("div",$,[e("div",I,[P,q,e("div",J,[K,e("div",Q,[e("a",{href:y.value,class:"relative inline-flex items-center rounded-l-lg bg-white px-3 py-2 text-lg font-semibold text-gray-900 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10"},g(v.value),9,U),o(i(H),{as:"div",class:"relative -ml-px block"},{default:c(()=>[o(i(G),{class:"relative inline-flex items-center rounded-r-lg bg-white px-2 py-2 text-gray-400 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 focus:z-10"},{default:c(()=>[X,o(i(F),{class:"h-8 w-5","aria-hidden":"true"})]),_:1}),o(A,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:c(()=>[o(i(N),{class:"absolute right-0 z-10 -mr-1 mt-2 w-80 origin-top-right rounded-lg bg-white shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none"},{default:c(()=>[e("div",Y,[(d(),f(S,null,z(u,t=>o(i(O),{key:t.name},{default:c(({active:m})=>[e("a",{href:t.href,class:x([m?"bg-gray-100 text-gray-900":"text-gray-700","block px-4 py-2 text-lg"])},g(t.name),11,Z)]),_:2},1024)),64))])]),_:1})]),_:1})]),_:1})])]),ee,e("div",te,[e("div",ae,[se,e("input",{id:"docker-pull",type:"text",readonly:"",value:h,class:"flex h-12 min-w-0 flex-1 rounded-lg border border-gray-200 bg-white px-3 py-1 text-sm sm:text-base font-mono text-gray-800 shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-600",onFocus:a[0]||(a[0]=t=>t.target.select())},null,32),e("button",{type:"button","aria-live":"polite","aria-label":s.value==="copied"?"Copied to clipboard":"Copy docker pull command",class:x([s.value==="copied"?"bg-emerald-600 hover:bg-emerald-600 text-white":s.value==="error"?"bg-red-600 hover:bg-red-600 text-white":"bg-blue-600 hover:bg-blue-500 text-white","inline-flex h-12 shrink-0 items-center justify-center gap-x-1.5 rounded-lg px-3 text-sm font-semibold shadow-sm transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"]),onClick:D},[s.value==="copied"?(d(),b(i(L),{key:0,class:"h-4 w-4","aria-hidden":"true"})):(d(),b(i(R),{key:1,class:"h-4 w-4","aria-hidden":"true"})),e("span",null,g(s.value==="copied"?"Copied!":s.value==="error"?"Try again":"Copy"),1)],10,oe)])])])]),ie]),o(V)],2))}};export{me 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.