tvl-depot/website
William Carroll 2fe6d7a10c Responsively size UI
TL;DR: scale down UI for non-mobile devices.

I pulled the screen resolution for my phone, the Google Pixel 4, off of the
internet. I created a device profile in Chrome to develop this application
specifically for my phone. To my surprise, when I opened the app on my phone,
many of elements that looked good in Google Chrome, looked askew on my phone. I
needed to troubleshoot.

Here's how I did that:
I used Tailwind to responsively color the bg for each breakpoint to see if my
device was sm, md, lg, xl (according to Tailwind's breakpoint
terminology). After reading Tailwind's documentation and comparing their
breakpoints with my Pixel 4's width (i.e. 1080px), I figured that my device
would be lg. It's not; it's md, which I confirmed by using ngrok to load
localhost:8000 on my phone and see that the background-color was
"md:bg-green-600".

I'm still unsure why my device is not lg, but knowing that my device was md
was enough to fix many of the styling issues. My current theory is that while
my screen's resolution is 1080 wide, the pixel density affects the media query
for the breakpoint.
2020-04-19 13:05:55 +01:00
..
blog Fix spelling errors in cell-phone-experiment blog 2020-04-03 17:20:13 +01:00
days-of-week-habits Digitize daily habits 2020-03-27 18:26:27 +00:00
goals Change srcs to src for website.goals derivation 2020-03-27 16:02:44 +00:00
habitgarden Prototype my digital habits journal 2020-03-30 20:28:38 +01:00
habits Add a README to //website/habits 2020-04-05 16:31:46 +01:00
learn Run Prettier across projects 2020-03-27 10:59:50 +00:00
sandbox Responsively size UI 2020-04-19 13:05:55 +01:00
default.nix Publish habits as a webpage 2020-03-27 16:02:44 +00:00
index.html Publish habits as a webpage 2020-03-27 16:02:44 +00:00
README.md Add README to //website 2020-04-05 16:29:17 +01:00

wpcarro.dev

https://wpcarro.dev is my personal website. I expose a few subdomains, one of which you are probably visiting right now, git.wpcarro.dev. Here are some of the others:

  • blog.wpcarro.dev: My personal blog
  • learn.wpcarro.dev: Teaching others to code
  • sandbox.wpcarro.dev: Where I deploy some pet projects and code sketches

Visit https://wpcarro.dev for a sitemap.