1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[185],{2975:function(e,t,s){Promise.resolve().then(s.bind(s,4360)),Promise.resolve().then(s.bind(s,2919)),Promise.resolve().then(s.bind(s,9371)),Promise.resolve().then(s.t.bind(s,2445,23))},4360:function(e,t,s){"use strict";s.r(t);var n=s(7437),r=s(2265),o=s(8792),l=s(4678);t.default=()=>{let[e,t]=(0,r.useState)(!0),[s,i]=(0,r.useState)(!1),[c,a]=(0,r.useState)(!0),[d,h]=(0,r.useState)(!1),x="https://github.com/sprintup/ivystreetblog";return(0,r.useEffect)(()=>{let e=window.matchMedia("(max-width: 767px)"),t=e=>{h(e.matches)};return(h(e.matches),e.addEventListener)?(e.addEventListener("change",t),()=>e.removeEventListener("change",t)):(e.addListener(t),()=>e.removeListener(t))},[]),(0,r.useEffect)(()=>{if(d){t(!0),i(!1),a(!0);return}let e=()=>{let e=window.pageYOffset||document.documentElement.scrollTop,s=document.documentElement.scrollHeight,n=window.innerHeight;e>0&&e+n<s-20?t(!1):t(!0),i(s>n),a(0===e)};return window.addEventListener("scroll",e),e(),()=>{window.removeEventListener("scroll",e)}},[d]),(0,n.jsxs)("footer",{className:"bg-primary border-t-2 border-solid border-accent-100 ".concat(d?"relative mt-10 py-4":"fixed bottom-0 left-0 right-0 py-4 transition-opacity duration-300 ".concat(e?"opacity-100":"opacity-0 pointer-events-none")),style:{paddingBottom:d?"calc(env(safe-area-inset-bottom, 0px) + 1rem)":void 0},children:[!d&&e&&s&&c&&(0,n.jsx)("div",{className:"absolute top-0 left-1/2 transform -translate-x-1/2 -translate-y-full",children:(0,n.jsx)("div",{className:"flex flex-col items-center",children:(0,n.jsx)(l.RiI,{className:"text-yellow hover:text-orange focus:text-orange mb-1"})})}),(0,n.jsx)("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,n.jsx)("div",{className:"flex justify-center items-center",children:(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsxs)("div",{className:"flex flex-col items-end border-r border-accent pr-3",children:[(0,n.jsx)(o.default,{href:"/faqs",className:"text-yellow hover:text-orange focus:text-orange block px-1 rounded-md text-base font-medium",children:"FAQs"}),(0,n.jsx)(o.default,{href:"/terms",className:"text-yellow hover:text-orange focus:text-orange block px-1 rounded-md text-base font-medium",children:"Terms of use (5.23.2024)"}),x?(0,n.jsx)("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"text-yellow hover:text-orange focus:text-orange block px-1 rounded-md text-base font-medium",children:"Edit on Github"}):null]}),(0,n.jsxs)("div",{className:"flex flex-col items-start pl-3",children:[(0,n.jsx)(o.default,{href:"/public-bookshelf",className:"text-yellow hover:text-orange focus:text-orange block px-1 rounded-md text-base font-medium",children:"Public Bookshelf"}),(0,n.jsx)(o.default,{href:"/",className:"text-yellow hover:text-orange focus:text-orange block px-1 rounded-md text-base font-medium",children:"About"}),(0,n.jsx)(o.default,{href:"/resources",className:"text-yellow hover:text-orange focus:text-orange block px-1 rounded-md text-base font-medium",children:"Resources"}),(0,n.jsx)(o.default,{href:"/word-garden-info",className:"text-yellow hover:text-orange focus:text-orange block px-1 rounded-md text-base font-medium",children:"Word Garden"})]})]})})})]})}},2919:function(e,t,s){"use strict";s.r(t);var n=s(7437),r=s(2265),o=s(8792),l=s(703),i=s(1126),c=s(7907);t.default=()=>{let{data:e}=(0,i.useSession)(),t=(0,c.usePathname)(),[s,a]=(0,r.useState)(!1),d=e=>t===e,h=()=>{a(!1)},x=e=>{let{href:t,children:s,onClick:r}=e;return(0,n.jsx)(o.default,{href:t,className:"text-yellow hover:text-orange focus:text-orange ".concat(d(t)?"font-bold":""),onClick:r,children:s})},u=e=>{let{href:t,children:s,onClick:r}=e;return(0,n.jsx)(o.default,{href:t,className:"text-yellow hover:text-orange focus:text-orange block px-3 py-2 rounded-md text-base font-medium ".concat(d(t)?"bg-primary":""),onClick:r,children:s})};return(0,n.jsxs)("header",{className:"bg-secondary sticky top-0 z-50 border-b-2 border-solid border-accent-100",children:[(0,n.jsx)("nav",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8",children:(0,n.jsxs)("div",{className:"flex items-center justify-between h-16",children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(o.default,{href:"/",onClick:h,style:{textDecoration:"none"},children:(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)(l.default,{src:"/logo.png",alt:"Logo",width:40,height:40,className:"rounded-full"})})}),(0,n.jsx)(o.default,{href:"/",onClick:h,style:{textDecoration:"none"},children:(0,n.jsx)("div",{className:"flex items-center",children:(0,n.jsx)("span",{className:"ml-2 text-yellow font-bold",children:"Ivy Street Blog"})})})]}),(0,n.jsx)("div",{className:"hidden md:block",children:(0,n.jsxs)("div",{className:"ml-10 flex items-baseline space-x-4",children:[e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{children:["Welcome, ",e.user.name,"!"]}),(0,n.jsx)(x,{href:"/my-collection",isActive:d,onClick:h,children:"My Collection"}),(0,n.jsx)(x,{href:"/my-bookshelf",isActive:d,onClick:h,children:"My Bookshelf"}),(0,n.jsx)(x,{href:"/my-reading-list",isActive:d,onClick:h,children:"My Reading List"}
1),(0,n.jsx)(x,{href:"/word-garden",isActive:d,onClick:h,children:"Word Garden"}),(0,n.jsx)(x,{href:"/profile",isActive:d,onClick:h,children:"Profile"})]}),!e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(x,{href:"/",isActive:d,onClick:h,children:"About"}),(0,n.jsx)(x,{href:"/register",isActive:d,onClick:h,children:"Register"})]}),e?(0,n.jsx)(x,{href:"/api/auth/signout?callbackUrl=/",onClick:h,children:"Logout"}):(0,n.jsx)(x,{href:"/api/auth/signin?callbackUrl=/my-bookshelf",onClick:h,children:"Login"})]})}),(0,n.jsx)("div",{className:"-mr-2 flex md:hidden",children:(0,n.jsxs)("button",{onClick:()=>{a(!s)},type:"button",className:"inline-flex items-center justify-center p-2 rounded-md text-yellow hover:text-orange focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-primary focus:ring-yellow","aria-expanded":"false",children:[(0,n.jsx)("span",{className:"sr-only",children:"Open main menu"}),(0,n.jsx)("svg",{className:"".concat(s?"hidden":"block"," h-6 w-6"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})}),(0,n.jsx)("svg",{className:"".concat(s?"block":"hidden"," h-6 w-6"),xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"})})]})})]})}),(0,n.jsx)("div",{className:"".concat(s?"block":"hidden"," md:hidden"),children:(0,n.jsxs)("div",{className:"px-2 pt-2 pb-3 space-y-1 sm:px-3",children:[e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("span",{className:"block px-3 py-2",children:["Welcome, ",e.user.name,"!"]}),(0,n.jsx)(u,{href:"/my-collection",isActive:d,onClick:h,children:"My Collection"}),(0,n.jsx)(u,{href:"/my-bookshelf",isActive:d,onClick:h,children:"My Bookshelf"}),(0,n.jsx)(u,{href:"/my-reading-list",isActive:d,onClick:h,children:"My Reading List"}),(0,n.jsx)(u,{href:"/word-garden",isActive:d,onClick:h,children:"Word Garden"}),(0,n.jsx)(u,{href:"/profile",isActive:d,onClick:h,children:"Profile"})]}),!e&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(u,{href:"/",isActive:d,onClick:h,children:"About"}),(0,n.jsx)(u,{href:"/register",isActive:d,onClick:h,children:"Register"})]}),e?(0,n.jsx)(u,{href:"/api/auth/signout?callbackUrl=/",onClick:h,children:"Logout"}):(0,n.jsx)(u,{href:"/api/auth/signin?callbackUrl=/my-bookshelf",onClick:h,children:"Login"})]})})]})}},9371:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return o}});var n=s(7437),r=s(1126);function o(e){let{children:t}=e;return(0,n.jsx)(r.SessionProvider,{children:t})}},8792:function(e,t,s){"use strict";s.d(t,{default:function(){return r.a}});var n=s(5250),r=s.n(n)},7907:function(e,t,s){"use strict";var n=s(5313);s.o(n,"usePathname")&&s.d(t,{usePathname:function(){return n.usePathname}}),s.o(n,"useRouter")&&s.d(t,{useRouter:function(){return n.useRouter}})},2445:function(){}},function(e){e.O(0,[699,250,34,570,971,69,744],function(){return e(e.s=2975)}),_N_E=e.O()}]);
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.