GithubHelp home page GithubHelp logo

Comments (3)

peterdesmet avatar peterdesmet commented on July 29, 2024

Here are two ways of implementing this:

Thumbnails

Each image takes up the same space and is shown on a thumbnail grid. The screenshot is an early version: I still have to update the CSS so that portrait images take up the same space. Does not require any additional library.

thumbnails

Mosaic

Images are shown as a mosaic. Needs an additional library. The simplest library (Salvattore.js) makes a mosaic by grouping the images in columns. The disadvantage is that it doesn't take into consideration the image height, some columns (e.g. second one) are much higher than others. Another library (Masonry.js) exists, but I had overlapping images and it will probably take too much time to make it work for this POC.

tiles

So, what's your preference: simple thumbnail grid or mosaic with some issues?

from gbif-dataset-metrics.

peterdesmet avatar peterdesmet commented on July 29, 2024

I'll pick this up again in this release.

from gbif-dataset-metrics.

peterdesmet avatar peterdesmet commented on July 29, 2024

This is now part of the code and works. Because of some issues in extracting #86, many broken images are still shown.

from gbif-dataset-metrics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.