Skip to content

Commit

Permalink
fix the image path for build production
Browse files Browse the repository at this point in the history
  • Loading branch information
isushmoy committed Apr 18, 2024
1 parent 0a7f978 commit 202526b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Binary file modified public/screenshots/s-dark.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/screenshots/s-lg-dark.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/screenshots/s-lg.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/screenshots/s.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions src/components/lightbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ const pressed = ref(false);
const currentIndex = ref(0);
const product_src = [
"/images/image-product-1.jpg",
"/images/image-product-2.jpg",
"/images/image-product-3.jpg",
"/images/image-product-4.jpg",
"./images/image-product-1.jpg",
"./images/image-product-2.jpg",
"./images/image-product-3.jpg",
"./images/image-product-4.jpg",
];
const product_thumb_src = [
"/images/image-product-1-thumbnail.jpg",
"/images/image-product-2-thumbnail.jpg",
"/images/image-product-3-thumbnail.jpg",
"/images/image-product-4-thumbnail.jpg",
"./images/image-product-1-thumbnail.jpg",
"./images/image-product-2-thumbnail.jpg",
"./images/image-product-3-thumbnail.jpg",
"./images/image-product-4-thumbnail.jpg",
];
// default product
Expand All @@ -38,7 +38,7 @@ function changePro(index) {
<button @click="pressed = !pressed">
<button class="absolute left-3 top-1/2 -translate-y-1/2 rotate-180 lg:hidden opacity-70 hover:opacity-80" @click="changePro((currentIndex - 1) % product_src.length)">
<div class="bg-white px-3 py-2.5 rounded-full">
<img src="/public/images/icon-next.svg" class="w-2.5" alt="icon-next">
<img src="/images/icon-next.svg" class="w-2.5" alt="icon-next">
</div>
</button>
<img :src="defPro" class="w-96 rounded-lg lg:rounded-xl lg:mb-6 cursor-auto lg:cursor-pointer" alt="product" />
Expand Down

0 comments on commit 202526b

Please sign in to comment.