Skip to content

Collect information about screen resolution #35

Open
alexbruy wants to merge 5 commits intoexplodingcamera:mainfrom
alexbruy:collect-screen-size
Open

Collect information about screen resolution #35
alexbruy wants to merge 5 commits intoexplodingcamera:mainfrom
alexbruy:collect-screen-size

Conversation

@alexbruy
Copy link

Currently Liwan only distinguish between desktop and mobile clients, and does not provide any insight on the visitor's screen sizes/resolution. Knowing most used screen size for instance can help with defining breakpoints and creating optimized images.

In this PR I tried to add support for screen size tracking. I'm new to Rust, so my code probably not that good.

Also, as I have no experience with Astro and TS, Gemini helped me to understand which changes are necessary on the frontend (dashboard) side. I hope I got them right.

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.

1 participant