Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

[WIP] UI rinse #365

Closed
wants to merge 117 commits into from
Closed

[WIP] UI rinse #365

wants to merge 117 commits into from

Conversation

fk
Copy link
Contributor

@fk fk commented Jan 18, 2021

Still a bit to do, but mostly there πŸ˜‰ … sneak preview:

image

TL;DR

  1. UI refresh/realign – no major changes to IA, flows, UI logic, markup structure
  2. Bump almost all dependencies to latest

WIP overview

UI things

  • switch to a nicer Cart icon
  • remove Butler illustration, replace the Butler hand with an arrow icon
  • remove the Sad cart illustration in favor of just the message
  • drop Futura PT as headline font, switch to Inter, add serifs and monospace sprinkles
  • calmer and friendlier 🀞 UI
    • revamp coupon code badges
    • add a CSS loading indicator/spinner and use it in place of the floating Butler head, as well as add it to the Updating cart toast
    • show the avatar image for a user logged in via GitHub
    • drop custom -webkit-scrollbar styles
    • reduce the color palette
    • drop product descriptions on homepage
    • snappier sidebar transitions
    • refined footer: define a max-width, make the links calmer, add minHeight constant to increase whitespace (accounted for in the PageContent layout via the new constant)
  • align radius key nomenclature with other scales and make them friendlier (rounder)
  • add visuallyHidden style utility (and use it to hide the colons after Subtotal, Shipping etc. in the cart
  • smaller GatsbyStore logo (analog to monogram size on gatsbyjs.com; the Gatsby Store word mark is controlled individually and still needs some adjustment to match dotcom)

Components and pages

component styles

  • less magic numbers, more constants (from styles.js)
  • in styles.js
    • reduce number of colors, gradients
    • add shadows, transitions, zIndices, fontSizes, lineHeights, gradients, transitions, and use them
    • add units to the spacing scale

404 page

  • adjust link to Gatsby homepage from gatsbyjs.org to gatsbyjs.com

OpenBar.js

Dependencies, ESLint, Gatsby plugin config

package.json

  • remove unused react-onclickoutside, react-router-dom
  • bump gatsby-plugin-image, gatsby-source-shopify
  • bump react, react-dom
  • bump react-icons to v4
  • update emotion packages to v11 and remove babel-plugin-react-icons
  • bump husky, lint-staged, prettier, stylelint, stylelint-config-standard, stylelint-order, stylelint-processor-styled-components

gatsby-config.js

  • remove (now) obsolete apiKey from the gatsby-source-shopify plugin options

.eslintrc.json

  • remove flowtype plugin and config
  • add jsx-a11y plugin

… (WIP)

fk added 30 commits January 17, 2021 00:55
…and make them friendlier (rounder).
* show `MdCheck` along `CartIndicator` success message
* more concise microcopy for `CartIndicator` along the way
* use `fontSizes`
* increase container gutters for desktop, analog to what we do for the `Contributor` drawer/panel
* increase whitespace for `Costs`, increase margin in between it and `Total`
* calmer `Costs` β€” no `colors.brand`, only emphasize `FREE`
* render `numberEntry` cart item count at `20px` when cart is `closed`, make it cover less of the cart icon
* deemphasize cart icon when cart is empty (grey), emphasize it when items are added (accent)
* deemphasize `CartToggle` state when cart is `open`
* add a new component `<Small>` to deemphasize the `USD` price prefix
* "items in cart" -> "Items in cart"
* add `colors.border` and use it
* remove `border-bottom` for `CartListItem` β€” less visual clutter
* emphasize `CartListItem` `Name`, deemphasize `Meta`, fix a couple `line-height`s
…and actually use it (more).
* define `max-width`
* increase whitespace (`minHeight`)
* use `minHeight` in `PageContent`
fk added 28 commits August 1, 2021 18:38
- UI rinse pt. II
- less magic numbers, more constants (from `styles.js`)

styles.js
- reduce number of `colors`, `gradients`
- add `shadows`, `transitions`, `zIndices`
- add units to the `spacing` scale

package.json
- remove unused react-onclickoutside, react-router-dom
- bump gatsby-plugin-image, gatsby-source-shopify
- bump react, react-dom
- bump husky, lint-staged, prettier, stylelint, stylelint-config-standard, stylelint-order, stylelint-processor-styled-components

404 page
- adjust link to Gatsby homepage from gatsbyjs.org to gatsbyjs.com

OpenBar.js
- refactor to get rid of a bunch of magic numbers – `writing-mode` FTW (https://caniuse.com/css-writing-mode)

.eslintrc.json
- remove flowtype plugin and config
- add jsx-a11y plugin

… will include more details in the PR description ✌️
have role="img", and have an accessible description.
@fk
Copy link
Contributor Author

fk commented Nov 19, 2021

Closing this – won't get back to this in the near future, and don't want to put anyone through reviewing this, either. Will leave the branch around FWIW. ✌️

@fk fk closed this Nov 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Terrible performance using CSS filter blur on FireFox while toggling cart.
1 participant