zinc-collective / convene

An Operating System for the Solidarity Economy
https://convene.zinc.coop
Other
56 stars 19 forks source link

Improve look of section navigation cards when at least one section has an image #2302

Closed anaulin closed 1 month ago

anaulin commented 2 months ago

This PR refines the look of the section navigation component:

Before

image image image

After

image image image

rosschapman commented 2 months ago

@anaulin nice use of clamping!

tumblr_739e7c4118f7faa703eb056660fd6874_2b5c42d9_500

anaulin commented 1 month ago

Hmm, yeah, I sort of don't love this. I was envisioning something more "pictorial" that could be auto-generated as stand-ins for missing pictures, but my result looks more like A VERY LARGE TITLE THAT SOMETIMES DOESN'T FIT.

@zspencer @rosschapman would something like this be better? Or do you like it more with the text? This version randomizes the background color for a more placeholder-y look, and removes the text: image

(The height of the bottom row needs to be adjusted to match the top row with the description, but that's a different issue.)

zspencer commented 1 month ago

ooo, I like that quite a bit! The pastels are lovely!

rosschapman commented 1 month ago

@anaulin looks good. Will passing the no_padding variant option to card.with_header remove the spacing so that colored area is flush against the card container?

anaulin commented 1 month ago

@rosschapman removing that margin is one of several remaining TO-DOs in this PR (see the PR description for my full list so far)

anaulin commented 1 month ago

@zspencer @rosschapman I've gone back and cleaned up the implementation, and updated the screenshots in the PR description. Please have a final look!

anaulin commented 1 month ago

This is in production now. I notice that on Piikup's entrance, some of the sections aren't showing an image, but are also not getting the placeholder image: image

So this needs some revisiting, to make sure that the check to see if there is a hero image for a room is correct.

I also noticed: