You are browsing as a guest. Sign up (or log in) to start making projects!

4h 57m 8s logged

productive day of UI work today!

  • i started off by taking care of some meta-work within the repo. i added a pre-commit hook for linting and formatting, added tailwind class sorting to my formatter config, pushed more vscode settings and extensions to the repository, updated pnpm, and also put a pre-install hook so that others that try setting up the repository without pnpm will get a warning (at least in theory). in the future i want to add a hook to enforce gitmoji but i’ll leave that for free time when i’m less motivated to code.
  • i added a view transition for the logo going into search. i just put the logo within its own Solid component so that both the home page and search have the same view-transition-name. i also made it adaptable on the search screen so it collapses to its smaller form by just cropping the svg instead of making another network request. though if i wanted that as flexible as possible i’d probably modify the <picture> element to also media-query-match against device width. that way graceful degradation also works JS-less.
  • product cards look a lot nicer! now unfortunately i have a bunch of duplicate js styles across a lot of components, so i’ll probably set down some base styles or classes. what i would love for CSS are tailwind utility classes where the groupings are build-time optimized.

there are still a couple of things on my plate UI-wise:

  • some of the UI cards aren’t occupying the full width. idk why since i set their width via w-full but idk i’m probably going to switch out the UI to more of a grid formation anyways.
  • turn the cards into a grid formation. they’re way too long and taking up valuable space.
  • figure out what to do with text. i tried getting only the first sentence, i tried overlay: hidden, i’m not sure but am currently leaning towards some sort of blur/fade effect.
  • make the <Suspense> boundary narrower. my current desired functionality is for all the cards to “gray out” but with the original item list length, before the resource is fetched and the dom update happens.
  • minimal DOM update on resource fetching. i need to swap out the signal-backed Resource for a store-backed one that reconciles, but i still have to figure out solid.js’s API shape. and also tanstack virtual but i need to do cards first.
  • product pages.
0
1

Comments 0

No comments yet. Be the first!