Skip to content

Commit

Permalink
Updated doc and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
endigo9740 committed Aug 15, 2024
1 parent f5d50de commit ecf06cb
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 94 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
layout: '@layouts/LayoutDoc.astro'
title: Image Layouts
description: Various layouts for displaying images.
description: Layouts for displaying sets of images.
showDocsUrl: true
---

Expand Down Expand Up @@ -61,5 +61,5 @@ import ExampleFeaturedRaw from '@examples/resources/cookbook/image-layouts/Examp
</Preview>

## Attribution
Image layout markup and styles based on [Flowbite](https://flowbite.com/docs/components/gallery/#masonry-grid).
Please [view our guide](https://www.skeleton.dev/blog/skeleton-plus-flowbite) to learn more about integrating Flowbite elements and blocks in your Skeleton projects.

Images courtesy of [Lorem Picsum](https://picsum.photos/). Markup and styles inspired by [Flowbite](https://flowbite.com/docs/components/gallery/#masonry-grid).
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@
<!-- Flex -->
<section class="flex justify-center">
<!-- Grid -->
<div class="grid gap-4">
<!-- Featured -->
<div>
<img class="h-auto max-w-full rounded-lg" src="https://images.unsplash.com/photo-1597077962467-be16edcc6a43" alt="" />
</div>
<!-- Row -->
<div class="grid grid-cols-5 gap-4">
<div class="w-86 h-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1620005839871-7ac4aed5ddbc" alt="" />
</div>
<div class="w-86 h-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1553184570-557b84a3a308" alt="" />
</div>
<div class="w-86 h-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1509130446053-899ae7358ce6" alt="" />
</div>
<div class="w-86 h-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1510111652602-195fc654aa83" alt="" />
</div>
<div class="w-86 h-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1597077917598-97ca3922a317" alt="" />
</div>
</div>
<section class="grid gap-4">
<!-- Featured -->
<header>
<img class="h-auto max-w-full bg-surface-500 rounded-container" src="https://picsum.photos/960/512?random=1" />
</header>
<!-- Row -->
<div class="grid grid-cols-5 gap-4">
<img class="h-full w-full bg-surface-500 rounded-container" src="https://picsum.photos/200/200?random=2" />
<img class="h-full w-full bg-surface-500 rounded-container" src="https://picsum.photos/200/200?random=3" />
<img class="h-full w-full bg-surface-500 rounded-container" src="https://picsum.photos/200/200?random=4" />
<img class="h-full w-full bg-surface-500 rounded-container" src="https://picsum.photos/200/200?random=5" />
<img class="h-full w-full bg-surface-500 rounded-container" src="https://picsum.photos/200/200?random=6" />
</div>
</section>
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
<!-- Flex -->
<section class="flex justify-center">
<!-- Grid -->
<div class="grid grid-cols-2 gap-6 md:grid-cols-3">
<!-- Row -->
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1617296538902-887900d9b592" alt="" />
</div>
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1597077962467-be16edcc6a43" alt="" />
</div>
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1553184570-557b84a3a308" alt="" />
</div>
<!-- Row -->
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1509130446053-899ae7358ce6" alt="" />
</div>
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1620005839871-7ac4aed5ddbc" alt="" />
</div>
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1597531072931-8fceba101e4e" alt="" />
</div>
<!-- Row -->
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1510111652602-195fc654aa83" alt="" />
</div>
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1612145342709-eadb6e22acca" alt="" />
</div>
<div class="h-48 w-48">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1597077917598-97ca3922a317" alt="" />
</div>
</div>
<section class="grid grid-cols-2 gap-6 md:grid-cols-3">
<!-- Row -->
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=1" />
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=2" />
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=3" />
<!-- Row -->
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=4" />
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=5" />
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=6" />
<!-- Row -->
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=7" />
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=8" />
<img class="w-48 h-48 bg-surface-500 rounded-container" src="https://picsum.photos/192/192?random=9" />
</section>
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
<!-- Grid -->
<section class="grid grid-cols-2 gap-4 md:grid-cols-4">
<!-- Column -->
<div class="grid gap-4">
<img class="rounded-lg" src="https://images.unsplash.com/photo-1617296538902-887900d9b592" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1597077962467-be16edcc6a43" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1591775161903-497839a443c1" alt="" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/320?random=1" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/120?random=2" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/280?random=3" />
</div>
<!-- Column -->
<div class="grid gap-4">
<img class="rounded-lg" src="https://images.unsplash.com/photo-1617296539691-67feaadf389e" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1542835435-4fa357baa00b" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1553184570-557b84a3a308" alt="" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/300?random=4" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/280?random=5" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/140?random=6" />
</div>
<!-- Column -->
<div class="grid gap-4">
<img class="rounded-lg" src="https://images.unsplash.com/photo-1603855873822-0931a843ee3a" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1509130446053-899ae7358ce6" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1508931133503-b1944a4ecdd5" alt="" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/280?random=7" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/320?random=8" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/140?random=9" />
</div>
<!-- Column -->
<div class="grid gap-4">
<img class="rounded-lg" src="https://images.unsplash.com/photo-1633053663400-655b31fb88ac" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1578170222009-c7893aa20afd" alt="" />
<img class="rounded-lg" src="https://images.unsplash.com/photo-1610220941077-1ec123e7c043" alt="" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/320?random=10" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/140?random=11" />
<img class="bg-surface-500 rounded-container" src="https://picsum.photos/220/280?random=12" />
</div>
</section>
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
<!-- Flex -->
<section class="flex justify-center">
<!-- Grid -->
<div class="grid grid-cols-2 gap-4">
<div class="h-96 w-96">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1617296538902-887900d9b592" alt="" />
</div>
<div class="h-96 w-96">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1597077962467-be16edcc6a43" alt="" />
</div>
<div class="h-96 w-96">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1553184570-557b84a3a308" alt="" />
</div>
<div class="h-96 w-96">
<img class="h-full w-full rounded-lg object-cover" src="https://images.unsplash.com/photo-1509130446053-899ae7358ce6" alt="" />
</div>
</div>
<section class="grid grid-cols-2 gap-4">
<img class="h-64 w-64 bg-surface-500 rounded-container" src="https://picsum.photos/256/256?random=1" />
<img class="h-64 w-64 bg-surface-500 rounded-container" src="https://picsum.photos/256/256?random=2" />
<img class="h-64 w-64 bg-surface-500 rounded-container" src="https://picsum.photos/256/256?random=3" />
<img class="h-64 w-64 bg-surface-500 rounded-container" src="https://picsum.photos/256/256?random=4" />
</section>

0 comments on commit ecf06cb

Please sign in to comment.