openfoodfacts / search-a-licious

šŸŠšŸ”Ž A pluggable search service for large collections of objects (like Open Food Facts)
https://search.openfoodfacts.org
GNU Affero General Public License v3.0
6 stars 4 forks source link

style: Structure results page #170

Closed Valimp closed 5 days ago

Valimp commented 2 weeks ago

What

Structure the page of results

teolemon commented 2 weeks ago

@Valimp can you add a quick screenshot ?

Valimp commented 2 weeks ago
Capture dā€™eĢcran 2024-06-18 aĢ€ 12 21 02 Capture dā€™eĢcran 2024-06-18 aĢ€ 12 21 20 Capture dā€™eĢcran 2024-06-18 aĢ€ 12 21 38

Next step, add a sidebar to display graphs

Valimp commented 1 week ago

Give space for graphs when there are displayed

Capture dā€™eĢcran 2024-06-19 aĢ€ 13 49 03

Results take all page when no graphs

Capture dā€™eĢcran 2024-06-19 aĢ€ 13 51 11
Valimp commented 1 week ago

TODO: Connect this component with graphs

Valimp commented 1 week ago

@Kout95 Can you give your opinion please?

Kout95 commented 1 week ago

I do some changes :

Result : image

Kout95 commented 1 week ago

image

alexgarel commented 6 days ago

Some remarks @Kout95:

Kout95 commented 6 days ago

Last edit : image

Kout95 commented 6 days ago

Some remarks @Kout95:

  • I'm not keen on the gray background as it makes things look a bit dull. I think it's better to leave a transparent background (but this is a choice for our page). Maybe a thin border for panels is ok. Of course those are choice in off.html styles.
  • When IĀ reveal the graph panel, graph are not displayed. Maybe we have to send some signal to ask a re-render ?
Kout95 commented 6 days ago

Create layout dir to contain :