Skip to content

Conversation

@kfranqueiro
Copy link
Collaborator

@kfranqueiro kfranqueiro commented May 20, 2025

This moves the cookie banner instance to BaseLayout so it will appear on every page of the Museum (excluding the top-level "meta" index, which does not involve BaseLayout).

This also adds a "Clear local storage" button to the top-level index to provide an easy-to-access way to reset all state including the cookie banner, sign-in/registration, gift shop, etc.

Preview of the "Clear local storage" button, which appears below the existing "Visit the Museum of Broken Things" link, with a note that any other tabs the site is open in will need to be reloaded.

The cookie banner component itself includes one fix to specify text color, to avoid white-on-white on the Early Home Computers Event page.

Screenshot of the Early Home Computers Event page, with the cookie banner appearing correctly over the otherwise white-on-black color scheme.

I have removed the end slot from Layout to avoid confusion, as this was the only thing it was used for, and the layout it was provided within is not used across all Museum pages.

I'm adding those with whom I discussed this yesterday as reviewers; as discussed, I'll merge it myself after a day or so if no feedback is received. In the meantime, I will also work to apply this behind #89 and sync that after this is merged.

@kfranqueiro kfranqueiro merged commit d4e6ee4 into main May 28, 2025
1 check passed
@kfranqueiro kfranqueiro deleted the kgf-ac-cookie branch May 28, 2025 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants