Skip to content

Revamped Kiwix Serve Welcome page layout #559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jul 8, 2021
Merged

Revamped Kiwix Serve Welcome page layout #559

merged 12 commits into from
Jul 8, 2021

Conversation

MananJethwani
Copy link
Contributor

@MananJethwani MananJethwani commented Jun 18, 2021

@kelson42 this fixes kiwix/kiwix-tools#448 and fixes kiwix/kiwix-tools#370
for now, I have changed the basic layout and updated the cards.

@MananJethwani MananJethwani requested a review from kelson42 June 18, 2021 01:41
@codecov
Copy link

codecov bot commented Jun 18, 2021

Codecov Report

Merging #559 (2ed9a50) into master (0abbeab) will decrease coverage by 2.85%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #559      +/-   ##
==========================================
- Coverage   64.92%   62.07%   -2.86%     
==========================================
  Files          53       53              
  Lines        3738     3388     -350     
  Branches     1881     1881              
==========================================
- Hits         2427     2103     -324     
+ Misses       1309     1282      -27     
- Partials        2        3       +1     
Impacted Files Coverage Δ
src/server.cpp 68.42% <0.00%> (-20.87%) ⬇️
src/tools/otherTools.cpp 82.56% <0.00%> (-9.99%) ⬇️
src/tools/pathTools.cpp 50.27% <0.00%> (-7.77%) ⬇️
src/server/internalServer_catalog_v2.cpp 90.69% <0.00%> (-3.06%) ⬇️
src/manager.cpp 75.78% <0.00%> (-2.20%) ⬇️
src/server/request_context.cpp 63.04% <0.00%> (-1.91%) ⬇️
src/kiwixserve.cpp 35.48% <0.00%> (-1.66%) ⬇️
src/searcher.cpp 45.61% <0.00%> (-1.50%) ⬇️
src/tools/base64.cpp 17.24% <0.00%> (-1.41%) ⬇️
src/server/internalServer.cpp 82.39% <0.00%> (-1.23%) ⬇️
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0abbeab...2ed9a50. Read the comment docs.

Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets go with the review:

  • The "Download" button should point to the ZIM file (to download), not the the demonstration link like today. We should have a "Download" link and a "Preview" link.
  • The style of the download/preview links is not link in the mockup
  • The size of the ZIM file is not displayed, it should (and it should be rounded properly)
  • Each tile background should be grey, not white
  • The tile in itself should not be clickable (only the "Preview" and "Download" links should be clickable).

@MananJethwani
Copy link
Contributor Author

@kelson42 I have updated everything except this ->

Each tile background should be grey, not white

The background color is the same as that in the mock-up and I couldn't find a better color that suits the card background, If you think some other color would be better I am open to suggestions (kindly try to send some color code thx😅 ).

@kelson42
Copy link
Collaborator

@MananJethwani Please rebase on master an request a new review if you are so far.

@kelson42
Copy link
Collaborator

@MananJethwani Can you please rebase?

@MananJethwani
Copy link
Contributor Author

@kelson42 I think this PR is properly rebased.

Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, yes this is rebased ok now. sorry.

  • There is no "url", then the download button should not be displayed. It makes no sense to display a "download" label with link.
  • If there is no "size", nothing should be displayed ("unknown" for the moment)
  • If there is a "size", it should be below the title (not like in the mockup, which is wrong in my sense).
  • Whatever there is a size or not, both title (and size) should centered verticaly on the icon height
  • The tile background is not right like I said earlier already (you need to verify precisely). It's #fcfcfc and it should be #fbfbfb.
  • The font for "Preview" and "Download" is not the right one
  • There should be no shadow, the border of the tiles should be exactly like in the mockup.

@MananJethwani MananJethwani requested a review from kelson42 June 26, 2021 15:42
@kelson42 kelson42 changed the title revamped basic layout and cards Revamped Kiwix Serve Welcome page layout Jun 28, 2021
Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better, but the icon size should be fixed. See:
image

If the favicon has the wrong size it will break the rendering. The size of the icon should be like in the mockup, and the iconv given in the zim should be scaled on the fly by the browser if necessary.

Otherwise, I think it is time now to have a look to the styling of the selec boxes.

Few other remarks:

  • "reset filter" link should not include the space before and the question mark.
  • "Results: 1487 items" should be printed just on the top of the tiles (so not like in the mokcup) and only be "1487 books"
  • Underscore replacement in tags, only applies once. "science in_the_bath" is replace with "science_in_the_bath", it should be "science in the bath"
  • Displayed tags are not matching the reality, for example for https://6c4279ae3f65.ngrok.io/scienceinthebath_en_adventures-wonders_2021-04/M/Tags, I see a value of "science_in_the_bath;_videos:yes", but this is what is displayed "science in_the_bath | videos | pictures | details". Actually, we should hide all "private" tags (starting with _). So we should see only "science in the bath".

@MananJethwani MananJethwani requested a review from kelson42 June 30, 2021 11:41
@kelson42 kelson42 force-pushed the Css_revamp branch 2 times, most recently from 50db2c0 to ff1232c Compare July 4, 2021 12:45
Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New remarks:

  • If no result, the "0 books" should be hidden
  • The blue-grey color of the selector shoudl be replace with #909090
  • The drop-down boxes are not styled at all. They should.
  • The followin screenshot has 3 problems:
    image
  • the grey tobar height is too big
  • the category button is not aligned witht the search button
  • the vertical space above "12 books" is smaller than the one below (the one below should be like the one above).
  • Please remove the "effect" on preview/download. Just color the background when we are over (but no filling effect).
  • It is a good idea that the color is changed in the filter when a special filter is set, but it should be consistent. If I click on "reset" then all filter backgrounds should be white again.

@MananJethwani MananJethwani force-pushed the Css_revamp branch 3 times, most recently from e4f58b9 to 578025e Compare July 6, 2021 03:37
@MananJethwani MananJethwani requested a review from kelson42 July 6, 2021 03:39
@MananJethwani
Copy link
Contributor Author

@kelson42 I have fixed everything as asked, but the dropdown list styling doesn't work in the case of firefox and I can't seem to find a proper reason for that, might need some help here, I will keep on looking, for now, please check everything else.

Copy link
Collaborator

@kelson42 kelson42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why "Category" selectbox is still not aligned with the "Search" button?
image

pulldown parts of select boxes are still not styled

New request: please make first letter uppercase for tags.

If there is only one book, it should not be "1 books", but "1 book"

@MananJethwani
Copy link
Contributor Author

MananJethwani commented Jul 6, 2021

@kelson42 regarding the misalignment of boxes please mention the exact width and height of the screen as well as the browser as when I test it on multiple screen sizes this works fine and I can't seem to have this issue,
as for the dropdown styling please open it on chrome or brave browser it doesn't seem to work on Mozilla and I asked for help regarding that above already

@MananJethwani
Copy link
Contributor Author

found the alignment bug it was on screen size greater than 2100px sorry for that I checked and resolved it for smaller screen size.
still, only the dropdown styling problems persists.

@mgautierfr
Copy link
Member

I've quickly reviewed it. On the technical side I've nothing to say (but I no a js expert).

I would like to mention #549. We start to generated all our html using custom js code and svelte is made especially for this.

@kelson42 kelson42 self-requested a review July 8, 2021 10:32
@kelson42 kelson42 merged commit 60f0f81 into master Jul 8, 2021
@kelson42 kelson42 deleted the Css_revamp branch July 8, 2021 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Propose a welcome page which is fancier Add Download button if url= attribute in XML library
3 participants