diff --git a/assets/index-BQNyQEUC.js b/assets/index-fe_0pAxB.js similarity index 99% rename from assets/index-BQNyQEUC.js rename to assets/index-fe_0pAxB.js index 87af69d..23142ab 100644 --- a/assets/index-BQNyQEUC.js +++ b/assets/index-fe_0pAxB.js @@ -3457,7 +3457,7 @@ This typically indicates that your device does not have a healthy Internet conne `,children:[v.jsx("div",{className:"pl-5 w-[90%]",children:v.jsx(yl,{disableUnderline:!0,placeholder:"Search...",onChange:s=>{e(s.target.value),r(!0)},sx:{fontFamily:"Red Hat Mono",width:"100%"},value:t})}),v.jsx("div",{className:`pr-5 ${n?"block":"hidden"}`,children:v.jsx("img",{src:"/Coffee-Thoughts/admin/search.png",alt:"search button"})})]}),v.jsx("div",{className:"cursor-pointer",onClick:()=>i("../addblog"),children:"Add Blog"})]})},QN=()=>{const[t,e]=E.useState([]),[n,r]=E.useState(!1),i=async()=>{const s=await U_(!1);console.log(s),e(s)};return console.log(t),E.useEffect(()=>{n||(i(),r(!0))},[n]),v.jsxs("div",{className:"flex-col justify-center w-screen items-center flex gap-10",children:[v.jsx($_,{}),v.jsx(kJ,{}),t.map((s,o)=>v.jsx(IJ,{blog:s},o))]})},AJ=t=>{const[e,n]=E.useState(t.images),r=E.useRef(null);E.useEffect(()=>{console.log(e)},[e]);const i=o=>{const{files:a}=o.target;if(a&&a.length){const l=[...e,a[0]];n(l),t.setImage(l)}},s=()=>{r.current!=null&&r.current.click()};return v.jsxs("div",{className:"flex flex-col justify-end h-[62px]",children:[v.jsx("input",{style:{display:"none"},accept:".jpg,.jpeg,.heic,.png",ref:r,onChange:i,type:"file"}),v.jsx("div",{className:`w-[11vw] bg-[#547E88] text-[16px] text-center pt-2 pb-2 rounded-[27.5px] text-white flex flex-row justify-center items-center hover:cursor-pointer hover:text-black`,onClick:s,children:v.jsx("p",{children:"UPLOAD IMAGE"})})]})},YN=()=>{const[t,e]=E.useState(""),[n,r]=E.useState(""),[i,s]=E.useState(""),[o,a]=E.useState(""),[l,u]=E.useState(!1),[c,d]=E.useState(!1),[f,h]=E.useState([]),p=ji(),y=async()=>{const _=await PJ(f);if(_.status==200)throw new Error("Image Upload Failed");if(_.status==100)return _.imageUrls},x=async()=>{d(!0);const _=await y();d(!1),await CJ({bodyText:i,title:t,description:n,images:_||[],category:o}),d(!1)};return v.jsxs("div",{className:"flex flex-col items-center gap-10 pb-10",children:[v.jsx("div",{className:`w-full h-full bg-[#D9D9D9]/40 fixed flex-row justify-center items-center ${c?"flex":"hidden"} z-[1]`}),v.jsx($_,{}),v.jsxs("div",{className:"w-[70vw] flex-col flex gap-5",children:[v.jsxs("div",{className:"flex flex-row gap-5 items-end justify-between",children:[v.jsxs("div",{className:"flex flex-row gap-5 text-[36px] items-center text-white cursor-default pt-2",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",children:[v.jsx("circle",{cx:"13",cy:"13",r:"13",fill:"#547E88"}),v.jsx("line",{x1:"13",y1:"6",x2:"13",y2:"20",stroke:"white",strokeWidth:"2"}),v.jsx("line",{x1:"20",y1:"13",x2:"6",y2:"13",stroke:"white",strokeWidth:"2"})]}),v.jsx("p",{children:"ADD POST"})]}),v.jsxs("div",{className:`flex flex-row items-center gap-1 hover:text-[#547E88] underline hover:underline-[#547E88] cursor-pointer`,onClick:()=>p("/admin/dashboard"),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"11",height:"14",viewBox:"0 0 11 14",fill:"none",children:v.jsx("path",{d:"M11 7L0.5 0.937822V13.0622L11 7Z",fill:l?"#547E88":"#404040"})}),v.jsx("p",{className:"font-RedHat text-[14px]",children:"Return to Dashboard"})]})]}),v.jsxs("div",{className:"text-black flex-row flex justify-between items-center",children:[v.jsx($N,{stateFunction:e,value:t}),v.jsx(AJ,{images:f,setImage:h}),v.jsx("div",{onClick:()=>console.log("here"),children:v.jsx(Fu,{title:"SAVE DRAFT"})}),v.jsx("div",{onClick:()=>{x()},children:v.jsx(Fu,{title:"PUBLISH"})})]}),v.jsxs("div",{className:"flex flex-row justify-between w-[100%]",children:[v.jsx("div",{className:"w-[70%]",children:v.jsx(UN,{stateFunction:r,value:n})}),v.jsx("div",{className:"w-[25%] flex flex-col text-[20px] items-end",children:v.jsx(BN,{stateFunction:a,value:o})})]}),v.jsx("div",{className:"w-[100%]",children:v.jsx(zN,{stateFunction:s,value:i})})]}),v.jsx("div",{onClick:()=>{x()},children:"Button"})]})},OJ=()=>{const[t,e]=E.useState(!1);return E.useEffect(()=>{localStorage.getItem("uid")!=null&&e(!0)}),v.jsxs(eI,{children:[v.jsx(Mn,{path:"/",element:v.jsx(vJ,{})}),v.jsx(Mn,{path:"/dashboard",element:t?v.jsx(QN,{}):v.jsx(va,{})}),v.jsx(Mn,{path:"/editor/:topic/:id?",element:t?v.jsx(HN,{}):v.jsx(va,{})}),v.jsx(Mn,{path:"/addblog",element:t?v.jsx(YN,{}):v.jsx(va,{})}),v.jsx(Mn,{path:"/*",element:v.jsx(va,{})})]})},$s=()=>{const[t,e]=E.useState(!1),n=ji();return v.jsxs("div",{className:"flex flex-col justify-center items-center text-[#9B8F84] z-[1]",children:[v.jsxs("div",{className:"min-w-[80vw] flex flex-row md:justify-evenly items-center h-[10vh] justify-between",children:[v.jsxs("div",{className:"sm:flex justify-evenly w-[20vw] hidden",children:[v.jsx("p",{onClick:()=>n("/",{state:{land:!0}}),className:"hover:text-[#7B695A] hover:cursor-pointer",children:"home"}),v.jsx(Vt,{to:"/blogs",className:"hover:text-[#7B695A]",children:"blogs"})]}),v.jsxs("div",{onClick:()=>n("/",{state:{land:!0}}),className:"flex justify-evenly font-bold md:text-[40px] sm:text-[36px] text-[24px] cursor-default gap-5",children:[v.jsx("p",{children:"COFFEE "})," ",v.jsx("p",{children:"THOUGHTS"})]}),v.jsxs("div",{className:"sm:hidden",children:[v.jsx("img",{src:t?"./close.svg":"./menu.svg",alt:"Menu",onClick:()=>e(!t)}),v.jsx("div",{className:`${t?"flex":"hidden"} p-6 - absolute right-0 mx-4 my-2 min-w[140px] z-10 rounded-xl bg-white`,children:v.jsxs("ul",{className:"list-none flex justify-end items-start flex-col gap-4",children:[v.jsx("li",{children:v.jsx(Vt,{to:"/",children:"HOME"})}),v.jsx("li",{children:v.jsx(Vt,{to:"/blogs",children:"BLOGS"})}),v.jsx("li",{children:v.jsx(Vt,{to:"/about",children:"ABOUT"})}),v.jsx("li",{children:v.jsx(Vt,{to:"/contact",children:"CONTACT"})})]})})]}),v.jsxs("div",{className:"sm:flex justify-evenly w-[20vw] hidden",children:[v.jsx(Vt,{to:"/about",className:"hover:text-[#7B695A]",children:"about"}),v.jsx(Vt,{to:"/contact",className:"hover:text-[#7B695A]",children:"contact"})]})]}),v.jsx("div",{className:"w-[80vw] border-[#9B8F84] border-[1px]"})]})},NJ={show:{y:-40,opacity:1},hidden:{opacity:0}},tC={show:{opacity:1},move:{opacity:0,x:-500}},nC={show:{opacity:1},move:{x:500,opacity:0}},DJ=({setStatus:t})=>{const[e,n]=E.useState(!1),[r,i]=E.useState(!1),[s,o]=E.useState(!1),a=async()=>{i(!0),await new Promise(()=>{setTimeout(()=>{o(!0),t(!0)},1e3)})};return v.jsxs("div",{className:"overflow-hidden h-fit",children:[v.jsxs(Zn.div,{className:"flex-col flex items-center justify-center min-h-[100vh] h-fit",initial:"show",animate:r?"hidden":"show",variants:NJ,transition:{duration:1},children:[v.jsx("img",{src:"landing/CoffeeText.png",alt:"Coffee Thoughts"}),v.jsxs(Zn.div,{className:"flex justify-center items-center hover:cursor-pointer",onClick:()=>a(),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),initial:{y:-10},children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"154",height:"64",viewBox:"0 0 154 64",fill:"none",children:v.jsx("path",{d:"M106.899 58.8924L107.728 58.7318C126.313 55.1307 148.166 59.126 153.09 43.2882C156.559 32.1295 149.545 24.7297 141.625 15.4039C120.551 -9.41057 84.6754 1.18342 50.4025 9.827C28.8283 15.268 -1.47572 14.5479 0.0558387 33.8504C1.33429 49.9629 21.0342 52.6928 38.4389 58.7318C63.2715 67.348 80.9551 63.9207 106.899 58.8924Z",fill:e?"#547E88":"white"})}),v.jsx("p",{className:`absolute ${e?"text-white":"text-[#547E88]"} hover:cursor-pointer`,children:"enter site"})]}),v.jsx(Zn.img,{src:"landing/MitskiThots.png",alt:"Mitski in Coffee",initial:{x:30}})]}),v.jsx(Zn.div,{className:`hidden xl:left-20 top-[200px] lg:block absolute left-2 ${s?"hidden":"block"}`,variants:tC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:v.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),v.jsx(Zn.div,{className:"hidden lg:block absolute xl:right-20 top-[400px] right-10",variants:nC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:v.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),v.jsxs("div",{className:"overflow-hidden",children:[v.jsx(Zn.div,{className:`absolute bottom-0 right-0 ${s?"hidden":"block"}`,variants:nC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("img",{src:"landing/Cloud2.png",alt:"Clouds"})}),v.jsx(Zn.div,{className:"absolute bottom-0 left-0",variants:tC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("img",{src:"landing/Cloud1.png",alt:"Clouds"})})]})]})};function ol(t){const[e,n]=E.useState(0),[r,i]=E.useState(""),s=new Date(t.blog.date.seconds*1e3+t.blog.date.nanoseconds/1e6),o=ji(),a=()=>{o(`/${t.blog.category}/${t.blog.id}`,{state:{title:t.blog.title,images:t.blog.images,body:t.blog.bodyText,date:t.blog.date}})},l=async()=>{t.blog.images.length!=0&&i(await GN(t.blog.images[0]))};return E.useEffect(()=>{t.index&&n(t.index),t.blog.images.length!=0&&r==""&&l()},[]),v.jsxs("div",{className:`flex w-[75vw] ${e%2==0?"flex-row":"flex-row-reverse"} flex-wrap justify-between z-[1] gap-2`,children:[v.jsx("div",{className:"md:w-[45%] bg-[#D9D9D9] md:h-[301px] h-[20vh] w-full flex justify-center items-center hover:cursor-pointer",children:v.jsx("img",{src:r,alt:"Photo",className:""})}),v.jsxs("div",{className:"md:w-[45%] h-full flex flex-col gap-5 md:text-left w-full text-teal",children:[v.jsxs("p",{className:"font-NovoMono text-[16px]",children:[s.getMonth()+1,".",s.getDate(),".",s.getFullYear()]}),v.jsx("p",{className:"font-semibold text-[32px]",children:t.blog.title}),v.jsx("p",{className:"font-RedHat text-[20px]",children:t.blog.description}),v.jsx("div",{className:"w-fit border-b-[2px] border-teal hover:border-coffee hover:text-coffee cursor-pointer",onClick:()=>a(),children:v.jsx("p",{className:"font-RedHat text-[20px]",children:"Read More"})})]})]})}function dy(t){return v.jsx(Vt,{to:`${t.link}`,className:`text-center text-[#547E88] bg-[#F6DEC9] + absolute right-0 mx-4 my-2 min-w[140px] z-10 rounded-xl bg-white`,children:v.jsxs("ul",{className:"list-none flex justify-end items-start flex-col gap-4",children:[v.jsx("li",{children:v.jsx(Vt,{to:"/",children:"HOME"})}),v.jsx("li",{children:v.jsx(Vt,{to:"/blogs",children:"BLOGS"})}),v.jsx("li",{children:v.jsx(Vt,{to:"/about",children:"ABOUT"})}),v.jsx("li",{children:v.jsx(Vt,{to:"/contact",children:"CONTACT"})})]})})]}),v.jsxs("div",{className:"sm:flex justify-evenly w-[20vw] hidden",children:[v.jsx(Vt,{to:"/about",className:"hover:text-[#7B695A]",children:"about"}),v.jsx(Vt,{to:"/contact",className:"hover:text-[#7B695A]",children:"contact"})]})]}),v.jsx("div",{className:"w-[80vw] border-[#9B8F84] border-[1px]"})]})},NJ={show:{y:-40,opacity:1},hidden:{opacity:0}},tC={show:{opacity:1},move:{opacity:0,x:-500}},nC={show:{opacity:1},move:{x:500,opacity:0}},DJ=({setStatus:t})=>{const[e,n]=E.useState(!1),[r,i]=E.useState(!1),[s,o]=E.useState(!1),a=async()=>{i(!0),await new Promise(()=>{setTimeout(()=>{o(!0),t(!0)},1e3)})};return v.jsxs("div",{className:"overflow-hidden h-fit",children:[v.jsxs(Zn.div,{className:"flex-col flex items-center justify-center min-h-[100vh] h-fit",initial:"show",animate:r?"hidden":"show",variants:NJ,transition:{duration:1},children:[v.jsx("img",{src:"landing/CoffeeText.png",alt:"Coffee Thoughts"}),v.jsxs(Zn.div,{className:"flex justify-center items-center hover:cursor-pointer",onClick:()=>a(),onMouseEnter:()=>n(!0),onMouseLeave:()=>n(!1),initial:{y:-10},children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"154",height:"64",viewBox:"0 0 154 64",fill:"none",children:v.jsx("path",{d:"M106.899 58.8924L107.728 58.7318C126.313 55.1307 148.166 59.126 153.09 43.2882C156.559 32.1295 149.545 24.7297 141.625 15.4039C120.551 -9.41057 84.6754 1.18342 50.4025 9.827C28.8283 15.268 -1.47572 14.5479 0.0558387 33.8504C1.33429 49.9629 21.0342 52.6928 38.4389 58.7318C63.2715 67.348 80.9551 63.9207 106.899 58.8924Z",fill:e?"#547E88":"white"})}),v.jsx("p",{className:`absolute ${e?"text-white":"text-[#547E88]"} hover:cursor-pointer`,children:"enter site"})]}),v.jsx(Zn.img,{src:"landing/MitskiThots.png",alt:"Mitski in Coffee",initial:{x:30}})]}),v.jsx(Zn.div,{className:`hidden xl:left-20 top-[200px] lg:block absolute left-2 ${s?"hidden":"block"}`,variants:tC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:v.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),v.jsx(Zn.div,{className:"hidden lg:block absolute xl:right-20 top-[400px] right-10",variants:nC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"247",height:"105",viewBox:"0 0 247 105",fill:"none",children:v.jsx("path",{d:"M110.75 0.633141C94.6516 -1.96812 84.4204 3.6113 70.7292 14.3327C64.2488 19.4074 55.9847 31.6061 55.9847 31.6061C55.9847 31.6061 36.1492 26.4191 24.9162 31.6061C9.83679 38.5693 -1.52327 51.8577 0.166778 64.9616C2.16105 80.4244 11.2613 88.2018 24.9162 90.5739C34.6324 92.2617 49.1391 89.3826 49.1391 89.3826C49.1391 89.3826 64.7995 100.575 74.9418 102.487C87.5799 104.869 95.7252 105.258 110.223 104.869C123.748 104.506 141.292 92.3608 141.292 92.3608C141.292 92.3608 154.516 100.712 163.408 102.487C190.264 107.847 205.009 89.3826 205.009 89.3826C205.009 89.3826 227.453 86.8805 234.405 80.4545L234.631 80.2454C242.473 72.998 247 68.8144 247 57.2727C247 49.7727 240.703 41.5909 229.507 36.1364C219.707 31.3617 199.743 31.6061 199.743 31.6061C199.743 31.6061 192.897 17.8212 178.153 13.7371C160.249 8.7778 148.664 25.6498 148.664 25.6498C148.664 25.6498 132.866 4.20692 110.75 0.633141Z",fill:"#F6DEC9"})})}),v.jsxs("div",{className:"overflow-hidden",children:[v.jsx(Zn.div,{className:`absolute bottom-0 right-0 ${s?"hidden":"block"}`,variants:nC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("img",{src:"landing/Cloud2.png",alt:"Clouds"})}),v.jsx(Zn.div,{className:"absolute bottom-0 left-0",variants:tC,initial:"show",animate:r?"move":"show",transition:{duration:1},children:v.jsx("img",{src:"landing/Cloud1.png",alt:"Clouds"})})]})]})};function ol(t){const[e,n]=E.useState(0),[r,i]=E.useState(""),s=new Date(t.blog.date.seconds*1e3+t.blog.date.nanoseconds/1e6),o=ji(),a=()=>{o(`/${t.blog.category}/${t.blog.id}`,{state:{title:t.blog.title,images:t.blog.images,body:t.blog.bodyText,date:t.blog.date}})},l=async()=>{t.blog.images.length!=0&&i(await GN(t.blog.images[0]))};return E.useEffect(()=>{t.index&&n(t.index),t.blog.images.length!=0&&r==""&&l()},[]),v.jsxs("div",{className:`flex w-[75vw] ${e%2==0?"flex-row":"flex-row-reverse"} flex-wrap justify-between z-[1] gap-2`,children:[v.jsx("div",{className:"md:w-[45%] md:h-[301px] h-[20vh] w-full flex justify-center items-center hover:cursor-pointer",children:v.jsx("img",{src:r,alt:"Photo",className:"object-contain h-[100%] w-[100%]"})}),v.jsxs("div",{className:"md:w-[45%] h-full flex flex-col gap-5 md:text-left w-full text-teal",children:[v.jsxs("p",{className:"font-NovoMono text-[16px]",children:[s.getMonth()+1,".",s.getDate(),".",s.getFullYear()]}),v.jsx("p",{className:"font-semibold text-[32px]",children:t.blog.title}),v.jsx("p",{className:"font-RedHat text-[20px]",children:t.blog.description}),v.jsx("div",{className:"w-fit border-b-[2px] border-teal hover:border-coffee hover:text-coffee cursor-pointer",onClick:()=>a(),children:v.jsx("p",{className:"font-RedHat text-[20px]",children:"Read More"})})]})]})}function dy(t){return v.jsx(Vt,{to:`${t.link}`,className:`text-center text-[#547E88] bg-[#F6DEC9] max-w-[226px] max-h-[226px] flex flex-wrap items-center justify-center rounded-full text-[32px] font-RedHat hover:text-[#FFF7ED] w-[25vw] h-[25vw] min-w-[192px] min-h-[192px] `,children:v.jsx("p",{className:"w-[80%]",children:t.title})})}const Us=()=>{const t=ji();return v.jsxs("div",{className:"flex flex-col bottom-0",children:[v.jsx("div",{className:"w-[80vw] border-[#9B8F84] border-[1px]"}),v.jsxs("div",{className:"min-w-[80vw] flex flex-row justify-between text-[#9B8F84] h-[7.5vh] items-center",children:[v.jsx("div",{className:"cursor-default",onClick:()=>t("/admin"),children:"Coffee Thoughts"}),v.jsxs("div",{className:"flex flex-row gap-2",children:[v.jsx(Vt,{to:"https://www.instagram.com/lawrence.tlee/",children:v.jsx(xJ,{size:25})}),v.jsx(Vt,{to:"https://github.com/lawtlee",children:v.jsx(EJ,{size:25})})]})]})]})},MJ=[{title:"TITLE",description:"These are words I am typing to fill up space so we get a better sense of how it can be visualized.",image:"asdf",date:{seconds:1701422701,nanoseconds:0},id:"asdf",images:[],category:"deez",bodyText:"lolol"},{title:"TITLE",description:"These are words I am typing to fill up space so we get a better sense of how it can be visualized.",image:"asdf",date:{seconds:1701422701,nanoseconds:0},id:"asdf",images:[],category:"deez",bodyText:"lolol"}],LJ=()=>{const[t,e]=E.useState(!1),[n,r]=E.useState([]),[i,s]=E.useState(!1),o=No(),a=async()=>{const l=await U_(!1);l.length>=2?r([l[0],l[1]]):l.length==1&&r([l[0]])};return E.useEffect(()=>{o.state!=null&&o.state.land!=null&&e(!0),i||(s(!0),a())}),t?v.jsxs(Zn.div,{className:"min-h-screen min-w-screen bg-white flex flex-col items-center gap-10",initial:{opacity:0},animate:{opacity:1},transition:{duration:1},children:[v.jsx($s,{}),v.jsxs("div",{className:"flex flex-col gap-10 items-center",children:[v.jsx("div",{className:"flex w-[75vw]",children:v.jsxs("div",{className:"flex justify-center items-center text-[#547E88]",children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"472",height:"85",viewBox:"0 0 472 85",fill:"none",className:"md:block hidden",children:v.jsx("path",{d:"M81.0095 76.9999C158.03 89.82 274.516 84.5303 355.533 76.9999C412.572 71.6982 459.033 82.4999 469.887 54.5065C475.872 39.0686 464.697 27.9999 433.121 18.6702C329.091 -12.0673 261.35 4.41235 145.797 4.41235C78.2325 4.41235 5.03258 4.41234 0.2242 40.6115C-2.94182 64.4464 27.5941 68.1088 81.0095 76.9999Z",fill:"#547E88"})}),v.jsxs("div",{className:"md:absolute flex gap-2 md:text-white",children:[v.jsx("p",{className:"font-semibold text-[28px]",children:"RECENT"}),v.jsx("p",{className:"font-semibold text-[28px]",children:"POSTS"})]})]})}),n.length==0?v.jsx(v.Fragment,{children:MJ.map((l,u)=>v.jsx(ol,{blog:l,index:u},u))}):v.jsx(v.Fragment,{children:n.map((l,u)=>v.jsx(ol,{blog:l,index:u},u))})]}),v.jsx("div",{className:"relative w-full",children:v.jsx(Zn.div,{className:"absolute bottom-0 right-0 z-0 xl:block hidden",initial:{scale:1},children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"561",height:"538",viewBox:"0 0 561 538",fill:"none",children:v.jsx("path",{d:"M417.715 22.6488C475.431 -9.46067 560.715 3.64887 560.715 3.64887V537.149H116.715C116.715 537.149 18.1079 457.359 4.71533 402.149C-11.1172 336.881 27.6324 293.188 46.2154 228.649C69.037 149.39 122.215 106.617 185.215 98.6488C227.77 93.2663 277.56 110.738 318.715 98.6488C363.764 85.4164 376.686 45.4749 417.715 22.6488Z",fill:"#547E88",stroke:"#547E88"})})})}),v.jsxs("div",{className:"bg-coffee w-full flex flex-col items-center mt-[-2.5rem] gap-10 pb-10",children:[v.jsx("div",{className:"font-bold text-[48px] text-grey md:w-[80vw] flex gap-5 pt-10 text-center w-full",children:v.jsx("p",{children:"MORE COFFEE THOUGHTS "})}),v.jsxs("div",{className:"flex flex-row flex-wrap justify-center items-center",children:[v.jsx("img",{src:"home/categoryBG.png",className:"md:block hidden"}),v.jsxs("div",{className:`flex md:absolute justify-evenly w-full xl:w-[75%] diff --git a/index.html b/index.html index 64e6261..00593a9 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Coffee Thoughts - +