<Textboxwidth="50vw"placeholder="Send anything to me here!"style={{margin:'auto',marginTop:'30px',display:'block',marginBottom:'60px'}}submitOnEnter={true}submit={async(e)=>{
setAlert(false)
letreq=awaitfetch("/api/submit",{
method:"POST",
headers:{
"Content-Type":"application/json"
},
body:JSON.stringify({
text:e
})
});
letres=awaitreq.text();
setMessage(res)
setAlert(true)
}}/>
{/* no favicon!!! */}
{/* can you run the website in prod mode and see if its fine? just yarn build and then yarn start */}
// ok so we need to make so that the popsicle would be able to appear and dissapear after 10 seconds (we also need to make so that it could be positioned correctly near the textbox, always aligning correctly)