diff --git a/astro.config.mjs b/astro.config.mjs index 16534b20..1e26bc4a 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,4 +8,5 @@ export default defineConfig({ integrations: [react()], site: 'https://creativetimofficial.github.io', base: '/astro-ecommerce', + trailingSlash: 'always' }); \ No newline at end of file diff --git a/public/data.json b/public/data.json index 5b3a08d5..e8fa04bc 100644 --- a/public/data.json +++ b/public/data.json @@ -2,7 +2,7 @@ "products": [ { "id": "01", - "thumb_src": "../images/suit-3.jpg", + "thumb_src": "/images/suit-3.jpg", "thumb_alt": "watch-image", "images": [ { @@ -69,7 +69,7 @@ }, { "id": "02", - "thumb_src": "../images/suit-1.jpg", + "thumb_src": "/images/suit-1.jpg", "thumb_alt": "watch-image", "images": [ { @@ -129,7 +129,7 @@ }, { "id": "03", - "thumb_src": "../images/suit-2.jpg", + "thumb_src": "/images/suit-2.jpg", "thumb_alt": "iMac-image", "images": [ { @@ -172,7 +172,7 @@ }, { "id": "04", - "thumb_src": "../images/suit-5.jpg", + "thumb_src": "/images/suit-5.jpg", "thumb_alt": "iPhone_thumb", "color": "Blue", "title": "iPhone", @@ -191,37 +191,37 @@ ], "categories": [ { - "thumb_src": "../images/category1.jpg", + "thumb_src": "/images/category1.jpg", "title": "Silk Dresses", "collection": "Pre-fall" }, { - "thumb_src": "../images/category2.jpg", + "thumb_src": "/images/category2.jpg", "title": "Suits", "collection": "Designers" }, { - "thumb_src": "../images/category3.jpg", + "thumb_src": "/images/category3.jpg", "title": "Festival", "collection": "Summer" }, { - "thumb_src": "../images/category4.jpg", + "thumb_src": "/images/category4.jpg", "title": "Showroom", "collection": "Sale" }, { - "thumb_src": "../images/product10.jpg", + "thumb_src": "/images/product10.jpg", "title": "Living Sofas", "collection": "Interior Design" }, { - "thumb_src": "../images/category5.jpg", + "thumb_src": "/images/category5.jpg", "title": "Chairs by Designers", "collection": "Sale" }, { - "thumb_src": "../images/product9.jpg", + "thumb_src": "/images/product9.jpg", "title": "Home care", "collection": "Products" } diff --git a/src/components/complexNavbar.tsx b/src/components/complexNavbar.tsx index 3103c470..61253c6e 100644 --- a/src/components/complexNavbar.tsx +++ b/src/components/complexNavbar.tsx @@ -57,7 +57,7 @@ const ComplexNavbar = () => {
- user image + user image
@@ -127,7 +127,7 @@ const ComplexNavbar = () => {
  • - profile_image + profile_image
  • diff --git a/src/components/complexNavbarDark.tsx b/src/components/complexNavbarDark.tsx index 7c8df966..1af2a8b1 100644 --- a/src/components/complexNavbarDark.tsx +++ b/src/components/complexNavbarDark.tsx @@ -57,7 +57,7 @@ const ComplexNavbarDark = () => {
    - user image + user image
    @@ -127,7 +127,7 @@ const ComplexNavbarDark = () => {
  • - profile_image + profile_image
  • diff --git a/src/components/products/cardCategory.tsx b/src/components/products/cardCategory.tsx index 60a073a9..71a0094a 100644 --- a/src/components/products/cardCategory.tsx +++ b/src/components/products/cardCategory.tsx @@ -21,7 +21,7 @@ export default function CardProduct({ <>
    -
    +

    {collection}

    diff --git a/src/components/products/cardProduct.tsx b/src/components/products/cardProduct.tsx index 11494d64..fee291dc 100644 --- a/src/components/products/cardProduct.tsx +++ b/src/components/products/cardProduct.tsx @@ -29,7 +29,7 @@ export default function CardProduct({
    - {thumb_alt} + {thumb_alt}
    {(color) && diff --git a/src/components/products/productFeature2.tsx b/src/components/products/productFeature2.tsx index 97d9e944..f481d47b 100644 --- a/src/components/products/productFeature2.tsx +++ b/src/components/products/productFeature2.tsx @@ -65,16 +65,16 @@ export default function ProductOverview({
    - +
    - +
    - +
    - +
    diff --git a/src/components/products/productFeatureImg.tsx b/src/components/products/productFeatureImg.tsx index 18254296..3daa8b88 100644 --- a/src/components/products/productFeatureImg.tsx +++ b/src/components/products/productFeatureImg.tsx @@ -12,14 +12,14 @@ export default function ProductGallery({ return ( <>
    - {images[0].alt} + {images[0].alt}
    - {images[2].alt} + {images[2].alt}
    - {images[3].alt} + {images[3].alt}
    diff --git a/src/pages/index.astro b/src/pages/index.astro index b8e5a032..9148c0c4 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -241,7 +241,7 @@ data.orders.forEach((order) => {

    With large size selector

    x.productID == "01"); - - ---