(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{8312:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return i(8547)}])},4308:function(e,t,i){"use strict";var s=i(5893);t.Z=e=>{let{children:t,onClick:i,color:n,size:l,disabled:r=!1,formAction:c}=e;return(0,s.jsx)("button",{disabled:r,className:"inline-flex items-center justify-center rounded-lg font-semibold text-white no-underline shadow-md transition hover:shadow-lg disabled:cursor-not-allowed ".concat({primary:"bg-violet-500 hover:bg-violet-600 disabled:bg-violet-400",dark:"bg-gray-800 hover:bg-gray-900 disabled:bg-gray-600",danger:"bg-red-500 hover:bg-red-600 disabled:bg-red-300"}[n]," ").concat({small:"px-6 py-2 text-sm",large:"px-10 py-3 text-lg"}[l]),onClick:i,formAction:c,children:t})}},541:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var s=i(5893),n=i(9008),l=i.n(n),r=i(5675),c=i.n(r),a=i(3299),o=i(3953),d=i(4308),h=i(1664),x=i.n(h),f=i(4149),g=i(7294),u=()=>{let{data:e}=(0,a.useSession)(),[t,i]=(0,g.useState)(!1);return(0,s.jsxs)("header",{className:"fixed top-0 left-0 right-0 z-50 flex flex-row items-center justify-between bg-violet-500 px-4 py-3",children:[(0,s.jsx)(x(),{href:"/",children:(0,s.jsxs)("div",{className:"flex flex-1 flex-row items-center gap-4",children:[(0,s.jsx)(c(),{src:"/logo.png",alt:"logo",className:"h-8 w-8",width:64,height:64}),(0,s.jsx)("h1",{className:"text-2xl font-bold text-white",children:"TwitchMC"})]})}),(0,s.jsxs)("div",{className:"hidden flex-1 flex-row items-center justify-end gap-8 font-semibold text-white md:flex",children:[(0,s.jsx)(x(),{href:"/",children:"Home"}),e&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x(),{href:"/connect",children:"Connect"}),(0,s.jsx)(x(),{href:"/servers",children:"Manage Servers"})]}),(0,s.jsxs)(d.Z,{onClick:e?()=>(0,a.signOut)():()=>(0,a.signIn)("twitch"),color:"dark",size:"small",children:[!e&&(0,s.jsx)(o.Z,{}),e?"Sign out":"Sign in with Twitch"]})]}),(0,s.jsx)("div",{className:"flex flex-1 flex-row items-center justify-end px-4 md:hidden",children:(0,s.jsxs)("div",{className:"rounded-md border border-gray-100 p-1 hover:bg-white/25 ".concat(t&&"bg-white/25"),onClick:()=>i(!t),children:[(0,s.jsx)(f.Z,{className:"h-6 w-6 text-white"}),t&&(0,s.jsxs)("div",{className:"absolute right-0 top-14 flex w-full flex-col items-center justify-center gap-4 bg-violet-500 p-4 text-white",children:[(0,s.jsx)(x(),{href:"/",children:"Home"}),e&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(x(),{href:"/connect",children:"Connect"}),(0,s.jsx)(x(),{href:"/servers",children:"Manage Servers"})]}),(0,s.jsxs)(d.Z,{onClick:e?()=>(0,a.signOut)():()=>(0,a.signIn)("twitch"),color:"dark",size:"small",children:[!e&&(0,s.jsx)(o.Z,{}),e?"Sign out":"Sign in with Twitch"]})]})]})})]})},m=e=>{let{children:t,title:i}=e;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(l(),{children:[(0,s.jsx)("title",{children:i?"".concat(i," - TwitchMC"):"TwitchMC - Sub-only Minecraft server made easy"}),(0,s.jsx)("link",{rel:"icon",href:"/favicon.ico"})]}),(0,s.jsxs)("div",{className:"min-h-screen w-screen bg-slate-100",children:[(0,s.jsx)(u,{}),(0,s.jsx)("main",{className:"relative flex min-h-screen flex-col items-center gap-12 px-4 pt-16",children:t})]})]})}},3953:function(e,t,i){"use strict";var s=i(5893);t.Z=()=>(0,s.jsx)("div",{style:{width:20,height:20,marginRight:10,marginLeft:-5},children:(0,s.jsx)("svg",{viewBox:"0 0 256 268",version:"1.1",fill:"#fff",preserveAspectRatio:"xMidYMid",children:(0,s.jsx)("g",{children:(0,s.jsx)("path",{d:"M17.4579119,0 L0,46.5559188 L0,232.757287 L63.9826001,232.757287 L63.9826001,267.690956 L98.9144853,267.690956 L133.811571,232.757287 L186.171922,232.757287 L256,162.954193 L256,0 L17.4579119,0 Z M40.7166868,23.2632364 L232.73141,23.2632364 L232.73141,151.29179 L191.992415,192.033461 L128,192.033461 L93.11273,226.918947 L93.11273,192.033461 L40.7166868,192.033461 L40.7166868,23.2632364 Z M104.724985,139.668381 L127.999822,139.668381 L127.999822,69.843872 L104.724985,69.843872 L104.724985,139.668381 Z M168.721862,139.668381 L191.992237,139.668381 L191.992237,69.843872 L168.721862,69.843872 L168.721862,139.668381 Z",fill:"#FFFFFF"})})})})},8547:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return d}});var s=i(5893),n=i(3299),l=i(541),r=i(3953),c=i(4308),a=i(7294);let o=a.forwardRef(function({title:e,titleId:t,...i},s){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:s,"aria-labelledby":t},i),e?a.createElement("title",{id:t},e):null,a.createElement("path",{fillRule:"evenodd",d:"M4.25 5.5a.75.75 0 00-.75.75v8.5c0 .414.336.75.75.75h8.5a.75.75 0 00.75-.75v-4a.75.75 0 011.5 0v4A2.25 2.25 0 0112.75 17h-8.5A2.25 2.25 0 012 14.75v-8.5A2.25 2.25 0 014.25 4h5a.75.75 0 010 1.5h-5z",clipRule:"evenodd"}),a.createElement("path",{fillRule:"evenodd",d:"M6.194 12.753a.75.75 0 001.06.053L16.5 4.44v2.81a.75.75 0 001.5 0v-4.5a.75.75 0 00-.75-.75h-4.5a.75.75 0 000 1.5h2.553l-9.056 8.194a.75.75 0 00-.053 1.06z",clipRule:"evenodd"}))});var d=()=>{let{data:e}=(0,n.useSession)();return(0,s.jsx)(l.Z,{children:(0,s.jsxs)("div",{className:"container flex flex-col items-center justify-center gap-8 px-4 py-4",children:[(0,s.jsxs)("div",{className:"flex w-full max-w-prose flex-col gap-4",children:[(0,s.jsxs)("h1",{className:"text-center text-4xl font-extrabold tracking-tight text-gray-800",children:["Simple ",(0,s.jsx)("span",{className:"text-violet-500",children:"Subscriber"})," Servers"]}),(0,s.jsx)("h4",{className:"text-center text-2xl",children:"Welcome to TwitchMC"}),(0,s.jsxs)("p",{children:["This project is still in development - if you notice any issues, please let the moderators of the server you play on know! More information will be added to this page over time, but for now you can learn more on"," ",(0,s.jsxs)("a",{className:"text-violet-500",href:"https://github.com/AlthalusAvan/TwitchMC",target:"_blank",children:["GitHub",(0,s.jsx)(o,{className:"ml-1 inline-block h-4 w-4"})]}),"."]})]}),!e&&(0,s.jsxs)(c.Z,{onClick:()=>(0,n.signIn)("twitch"),size:"large",color:"primary",children:[(0,s.jsx)(r.Z,{})," Sign In With Twitch"]})]})})}}},function(e){e.O(0,[525,888,774,179],function(){return e(e.s=8312)}),_N_E=e.O()}]);