fossasia / open-event-frontend

The frontend for the Open Event API Server https://test.eventyay.com
https://eventyay.com
Apache License 2.0
2.34k stars 1.82k forks source link

Automatically hide cookie policy after 2 seconds #9183

Open mariobehling opened 3 months ago

mariobehling commented 3 months ago

On top of eventyay is a cookie policy. Many people do not click it away. Therefore please hide the cookie policy automatically after 2 seconds.

03d45e2a-1455-4e92-b1f2-70b2e0b96bfb

theavitw commented 3 months ago

I think it would be fine. You have x icon there to close.

singhkaram commented 3 months ago

need a handleClose function in which aysnc handle close after 2 second with settimeout setTimeout(function() { console.log("This message will appear after 2 seconds."); }, 2000); should i try ?

Sergius-Nyah commented 3 months ago

Greetings @mariobehling. This is the link to the PR: https://github.com/fossasia/open-event-frontend/pull/9187. It should work now.

Sergius-Nyah commented 3 months ago

Hello @mariobehling, do you have any suggestions for code improvements? I'm finalizing my project proposal for GSoC, and I believe it's important to include details about my PR contributions and their status (merged or under review). Your review would be greatly appreciated and very helpful to me.