Skip to content

Commit 88c2ddc

Browse files
committed
docs: update example image URLs to use random seed for more varied images
1 parent aa5afbb commit 88c2ddc

9 files changed

+10
-10
lines changed

docs/examples/ExampleActiveClasses.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Carousel, Slide, Navigation } from '../../dist/carousel.mjs'
44
55
const images = Array.from({ length: 10 }, (_, index) => ({
66
id: index + 1,
7-
url: `https://picsum.photos/800/600?random=${index + 1}`,
7+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
88
}))
99
1010
const carouselConfig = {

docs/examples/ExampleAutoplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Carousel, Slide, Navigation } from '../../dist/carousel.mjs'
44
55
const images = Array.from({ length: 10 }, (_, index) => ({
66
id: index + 1,
7-
url: `https://picsum.photos/800/600?random=${index + 1}`,
7+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
88
}))
99
1010
const config = {

docs/examples/ExampleBasic.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Carousel, Slide, Pagination, Navigation } from '../../dist/carousel.mjs
44
55
const images = Array.from({ length: 10 }, (_, index) => ({
66
id: index + 1,
7-
url: `https://picsum.photos/800/600?random=${index + 1}`,
7+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
88
}))
99
1010
const config = {

docs/examples/ExampleBreakpoints.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Carousel, Slide, Navigation } from '../../dist/carousel.mjs'
44
55
const images = Array.from({ length: 10 }, (_, index) => ({
66
id: index + 1,
7-
url: `https://picsum.photos/800/600?random=${index + 1}`,
7+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
88
}))
99
1010
// Carousel configuration

docs/examples/ExampleCustomNavigation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup>
2-
import '../../dist/dist/carousel.css'
2+
import '../../dist/carousel.css'
33
import { ref } from 'vue'
44
import { Carousel, Slide } from '../../dist/carousel.mjs'
55
@@ -11,7 +11,7 @@ const prev = () => carouselRef.value.prev()
1111
1212
const images = Array.from({ length: 10 }, (_, index) => ({
1313
id: index + 1,
14-
url: `https://picsum.photos/800/600?random=${index + 1}`,
14+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
1515
}))
1616
1717
const config = {

docs/examples/ExampleGallery.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const thumbnailsConfig = {
2626
2727
const images = Array.from({ length: 10 }, (_, index) => ({
2828
id: index + 1,
29-
url: `https://picsum.photos/800/600?random=${index + 1}`,
29+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
3030
}))
3131
</script>
3232

docs/examples/ExampleMouseWheel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import '../../dist/carousel.css'
44
55
const images = Array.from({ length: 10 }, (_, index) => ({
66
id: index + 1,
7-
url: `https://picsum.photos/800/600?random=${index + 1}`,
7+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
88
}))
99
1010
const config = {

docs/examples/ExampleVertical.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const carouselConfig = {
1313
1414
const images = Array.from({ length: 10 }, (_, index) => ({
1515
id: index + 1,
16-
url: `https://picsum.photos/800/600?random=${index + 1}`,
16+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
1717
}))
1818
</script>
1919

docs/examples/ExampleWrapAround.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Carousel, Slide, Navigation } from '../../dist/carousel.mjs'
44
55
const images = Array.from({ length: 10 }, (_, index) => ({
66
id: index + 1,
7-
url: `https://picsum.photos/800/600?random=${index + 1}`,
7+
url: `https://picsum.photos/seed/${Math.random()}/800/600`,
88
}))
99
1010
const config = {

0 commit comments

Comments
 (0)