JanusGraph / janusgraph.org

JanusGraph website
https://janusgraph.org
Other
8 stars 20 forks source link

Update users generation #70

Closed porunov closed 5 years ago

porunov commented 5 years ago

This PR makes the next changes: 1) It tries to minimize the amount of empty user elements in the users section by choosing either 4 elements per row, 3 elements per row or 5 elements per row. If the amount of empty elements is the same between either of styles, it will prefer 4 elements per row over 3 element per row and 3 element per row over 5 elements per row. For example, If we add 2 more new JanusGraph production users, the style will be changed to 3 elements per row. If we add 3 more new JanusGraph production users, the style will be changed to 5 elements per row. If we add 1 or 4 more new JanusGraph production users, the style will be set to 4 elements per row. 2) It adds a link to all powered by and production users of JanusGraph. If all row are filled with users then the link will be added at the bottom of production users list and be centered in the middle. If the last row isn't full (like now) then the link will be added into the row after the last element.

PREVIEW: https://porunov.github.io/janusgraph.org/

The PR has been tested with different amount of users to be sure that the style correctly changes depending on the amount of JanusGraph production users.

Signed-off-by: Oleksandr Porunov alexandr.porunov@gmail.com

porunov commented 5 years ago

@farodin91 @mbrukman @FlorianHockmann @pluradj @mad Are you OK with this change?

porunov commented 5 years ago

I will merge it with CTR