Re:Show HN: I made a Pinterest clone using SigLIP image embe...
by wucaworld on Friday February 16, 2024 @06:36AM
(#39395650)
Very cool! How did you get the collage layout? I noticed images in each column don’t have the same size. I assume images get Centre cropped?
[ Parent
| on HN ]
Re:Show HN: I made a Pinterest clone using SigLIP image embe...
by jkcxn on Friday February 16, 2024 @08:36AM
(#39396794)
It’s called a masonry grid. Images retain their aspect ratio so they don’t need to be cropped. You can kind of simulate it with css but there’s proposals to add a proper masonry layout to css
Re:Show HN: I made a Pinterest clone using SigLIP image embe...
by verse on Friday February 16, 2024 @02:20PM
(#39401705)
yeah. I actually wrote the logic for the layout myself (wasn't really happy with the available libraries). may open source this if people are interested!
Re:Show HN: I made a Pinterest clone using SigLIP image embe...
by ReD_CoDE on Friday February 16, 2024 @05:16PM
(#39403694)
Can you share your GH to follow updates?
Also, take a look at this, they have a layout too
https://github.com/lit/lit/tree/main/packages/labs/virtualiz...