-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f5d50de
commit ecf06cb
Showing
5 changed files
with
45 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 12 additions & 26 deletions
38
sites/next.skeleton.dev/src/examples/resources/cookbook/image-layouts/ExampleFeatured.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
48 changes: 13 additions & 35 deletions
48
sites/next.skeleton.dev/src/examples/resources/cookbook/image-layouts/ExampleGrid.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
25 changes: 12 additions & 13 deletions
25
sites/next.skeleton.dev/src/examples/resources/cookbook/image-layouts/ExampleMasonry.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
22 changes: 5 additions & 17 deletions
22
sites/next.skeleton.dev/src/examples/resources/cookbook/image-layouts/ExampleQuad.astro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |