Skip to content

Commit 22c01cd

Browse files
committed
chore: change images paths
1 parent fa296d3 commit 22c01cd

File tree

14 files changed

+69
-65
lines changed

14 files changed

+69
-65
lines changed

examples/kendo-react-e-commerce-astro-app/src/components/AllProductsListView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ export const AllProductsListView = () => {
3030

3131
const cards: CardDescriptor[] = [
3232
{
33-
img: "/necklace_1.jfif",
33+
img: "/kendo-react/kendo-react-e-commerce-astro-app/necklace_1.jfif",
3434
collectionText: 'Collection "SERENE"',
3535
},
3636
{
37-
img: "/ring_1.jfif",
37+
img: "/kendo-react/kendo-react-e-commerce-astro-app/ring_1.jfif",
3838
collectionText: 'Collection "AURELIA"',
3939
},
4040
{
41-
img: "/1111.jfif",
41+
img: "/kendo-react/kendo-react-e-commerce-astro-app/1111.jfif",
4242
collectionText: 'Collection "RAVINA"',
4343
},
4444
];
@@ -61,7 +61,7 @@ export const AllProductsListView = () => {
6161
title={title}
6262
subtitle={subtitle}
6363
contentText={contentText}
64-
img="/bracelets.png"
64+
img="/kendo-react/kendo-react-e-commerce-astro-app/bracelets.png"
6565
order={order}
6666
link={null}
6767
/>

examples/kendo-react-e-commerce-astro-app/src/components/BackgroundImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const BackgroundImage = (props: BackgroundImageProps) => {
55
const { img, title, subtitle, buttonText } = props;
66

77
const onButtonClick = () => {
8-
window.location.href="/products"
8+
window.location.href="/kendo-react/kendo-react-e-commerce-astro-app/products"
99
}
1010

1111
return (

examples/kendo-react-e-commerce-astro-app/src/components/Contacts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ const Contacts: React.FC = () => {
7373
</div>
7474
<div className="k-col-span-5 k-col-start-8 k-d-flex k-flex-col k-align-items-start">
7575
<img
76-
src="/contactsImage.png"
76+
src="/kendo-react/kendo-react-e-commerce-astro-app/contactsImage.png"
7777
alt="Contacts"
7878
style={{
7979
maxWidth: '630px',

examples/kendo-react-e-commerce-astro-app/src/components/DetailedCategory.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const cart = [
1919
{
2020
product: {
2121
id: 1,
22-
img: "/sample-item1.png",
22+
img: "/kendo-react/kendo-react-e-commerce-astro-app/sample-item1.png",
2323
title: "Silver Bracelet with Onyx",
2424
newPrice: 49.99,
2525
},
@@ -28,7 +28,7 @@ const cart = [
2828
{
2929
product: {
3030
id: 2,
31-
img: "/sample-item2.png",
31+
img: "/kendo-react/kendo-react-e-commerce-astro-app/sample-item2.png",
3232
title: "Diamond Wedding Ring",
3333
newPrice: 120.0,
3434
},
@@ -37,7 +37,7 @@ const cart = [
3737
{
3838
product: {
3939
id: 3,
40-
img: "/sample-item3.png",
40+
img: "/kendo-react/kendo-react-e-commerce-astro-app/sample-item3.png",
4141
title: "Casual Silver Watch",
4242
newPrice: 85.0,
4343
},

examples/kendo-react-e-commerce-astro-app/src/components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Footer: React.FC = () => {
1515
<div className="k-d-flex k-flex-wrap k-justify-content-between k-gap-8 k-text-align-left">
1616
<div className="k-flex-basis-250 k-flex-grow-1 k-mb-4 k-mt-6" style={{marginLeft: '50px'}}>
1717
<a href="#" className="k-d-block k-mb-4 k-text-align-center">
18-
<img src="/vilora-logo.png" alt="Logo" />
18+
<img src="/kendo-react/kendo-react-e-commerce-astro-app/vilora-logo.png" alt="Logo" />
1919
</a>
2020
<p className="k-m-0">We use cookies to improve your experience.</p>
2121
<p className="k-m-0">All rights reserved.</p>

examples/kendo-react-e-commerce-astro-app/src/components/Header.tsx

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { Menu, MenuSelectEvent } from "@progress/kendo-react-layout";
2+
import { Menu, MenuItemModel, MenuSelectEvent } from "@progress/kendo-react-layout";
33
import { Button } from "@progress/kendo-react-buttons";
44
import { SvgIcon } from "@progress/kendo-react-common";
55
import { InputPrefix, InputSeparator, TextBox, Switch } from "@progress/kendo-react-inputs";
@@ -10,38 +10,42 @@ import { AppBar, AppBarSection } from "@progress/kendo-react-layout";
1010
import { isAdmin } from "../helpers/adminStore";
1111
import { useStore } from "@nanostores/react";
1212

13+
interface CustomMenuItemModel extends MenuItemModel {
14+
page?: string;
15+
}
16+
1317
const Header: React.FC = () => {
1418
const isAdminValue = useStore(isAdmin);
1519

1620
const handleCartClick = () => {
17-
window.location.href = "/shoppingcart";
21+
window.location.href = "/kendo-react/kendo-react-e-commerce-astro-app/shoppingcart";
1822
};
1923

2024
const handleSwitchChange = () => {
2125
isAdmin.set(!isAdminValue);
2226
};
2327

2428
const handleMenuSelect = (event: MenuSelectEvent) => {
25-
const selectedItem = event.item;
29+
const selectedItem: CustomMenuItemModel = event.item;
2630

27-
if (selectedItem.url) {
28-
window.location.href = selectedItem.url;
31+
if (selectedItem.page) {
32+
window.location.href = selectedItem.page;
2933
return;
3034
}
3135

3236
const selectedCategory = selectedItem.text;
3337
if (selectedCategory === "All") {
34-
window.location.href = `/products`; // No category filter applied
38+
window.location.href = `/kendo-react/kendo-react-e-commerce-astro-app/products`; // No category filter applied
3539
} else {
36-
window.location.href = `/products?category=${encodeURIComponent(selectedCategory)}`;
40+
window.location.href = `/kendo-react/kendo-react-e-commerce-astro-app/products?category=${encodeURIComponent(selectedCategory)}`;
3741
}
3842
};
3943

4044
return (
4145
<AppBar themeColor="inherit">
4246
<AppBarSection className="k-flex-basis-0 k-flex-grow k-gap-2 k-align-items-center" style={{ paddingLeft: "50px" }}>
4347
<a href="/" className="k-d-sm-flex" style={{ marginRight: "50px" }}>
44-
<img src="/vilora-logo.png" alt="Logo" />
48+
<img src="/kendo-react/kendo-react-e-commerce-astro-app/vilora-logo.png" alt="Logo" />
4549
</a>
4650
<Menu items={items} onSelect={handleMenuSelect} />
4751
</AppBarSection>

examples/kendo-react-e-commerce-astro-app/src/components/Home.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ import { useStore } from '@nanostores/react';
1111
import AdminView from '../components/AdminView';
1212

1313
const data: CardDescriptor[] = [
14-
{ img: '/listViewImages/silverBraceletOnyx.png', collectionText: "Silver Bracelet with Onyx" },
15-
{ img: '/listViewImages/weddingBandsPearl.png', collectionText: "Wedding Bands with Pearls" },
16-
{ img: '/listViewImages/roseGoldEarringsOpal.png', collectionText: "Rose Gold Earrings with Opal" }
14+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/listViewImages/silverBraceletOnyx.png', collectionText: "Silver Bracelet with Onyx" },
15+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/listViewImages/weddingBandsPearl.png', collectionText: "Wedding Bands with Pearls" },
16+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/listViewImages/roseGoldEarringsOpal.png', collectionText: "Rose Gold Earrings with Opal" }
1717
];
1818

1919
const ringsData: CardDescriptor[] = [
20-
{ img: '/listViewImages/diamondWeddingRing.png', collectionText: "Diamond Wedding Ring" },
21-
{ img: '/listViewImages/diamondWeddingBands.png', collectionText: "Diamond Wedding Bands" }
20+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/listViewImages/diamondWeddingRing.png', collectionText: "Diamond Wedding Ring" },
21+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/listViewImages/diamondWeddingBands.png', collectionText: "Diamond Wedding Bands" }
2222
];
2323

2424
const watchData: CardDescriptor[] = [
25-
{ img: '/brownWatch.jpg', collectionText: "Brown Leather Watch" },
26-
{ img: '/listViewImages/casualSilverWatch.png', collectionText: "Casual Silver Watch" },
27-
{ img: '/vintageWatch.jpg', collectionText: "Vintage Silver Watch" }
25+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/brownWatch.jpg', collectionText: "Brown Leather Watch" },
26+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/listViewImages/casualSilverWatch.png', collectionText: "Casual Silver Watch" },
27+
{ img: '/kendo-react/kendo-react-e-commerce-astro-app/vintageWatch.jpg', collectionText: "Vintage Silver Watch" }
2828
];
2929

3030
const Home: React.FC = () => {
@@ -39,7 +39,7 @@ const Home: React.FC = () => {
3939
title={title}
4040
subtitle={subtitle}
4141
buttonText={buttonText}
42-
img="/model_1.png"
42+
img="/kendo-react/kendo-react-e-commerce-astro-app/model_1.png"
4343
/>
4444

4545
{isAdminValue ? (
@@ -64,7 +64,7 @@ const Home: React.FC = () => {
6464
title='Timeless Classics'
6565
subtitle='Get our unique handmade collections'
6666
contentText='Jewelry enhances style and adds elegance, with each piece telling a unique story.'
67-
img="/homeModel2.png"
67+
img="/kendo-react/kendo-react-e-commerce-astro-app/homeModel2.png"
6868
order='first'
6969
link="Shop Now"
7070
/>
@@ -76,7 +76,7 @@ const Home: React.FC = () => {
7676
title='Fine Jewelry'
7777
subtitle='Get our unique handmade collections'
7878
contentText="Jewelry elevates one's style and brings sophistication, with every piece narrating a distinct tale."
79-
img="/homeModel3.png"
79+
img="/kendo-react/kendo-react-e-commerce-astro-app/homeModel3.png"
8080
order='last'
8181
link="Shop Now"
8282
/>
@@ -93,7 +93,7 @@ const Home: React.FC = () => {
9393
title='Always On Time'
9494
subtitle='Get our unique watches'
9595
contentText='High-end gold watches for men are the epitome of luxury, combining precision with sophisticated craftsmanship.'
96-
img="/homeWatch1.png"
96+
img="/kendo-react/kendo-react-e-commerce-astro-app/homeWatch1.png"
9797
order='first'
9898
link="Shop Now"
9999
/>
@@ -110,7 +110,7 @@ const Home: React.FC = () => {
110110
title='Services'
111111
subtitle='Explore expert repairs to elevate your experience'
112112
contentText='Vilora provides services like custom designs, repairs, and appraisals to enhance the customer experience.'
113-
img="/homeServicesImage.png"
113+
img="/kendo-react/kendo-react-e-commerce-astro-app/homeServicesImage.png"
114114
order='last'
115115
link="Learn More"
116116
/>

examples/kendo-react-e-commerce-astro-app/src/components/PaymentDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121

2222
const PaymentDetails: React.FC = () => {
2323
const onSubmitClick = () => {
24-
window.location.href = "/thankyou";
24+
window.location.href = "/kendo-react/kendo-react-e-commerce-astro-app/thankyou";
2525
};
2626

2727
return (

examples/kendo-react-e-commerce-astro-app/src/components/ProductDetails.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ export const ProductDetails: React.FC<ProductDetailsProps> = ({ product }) => {
1515
const existingCart = JSON.parse(localStorage.getItem('cart') || '[]');
1616
const updatedCart = [...existingCart, product];
1717
localStorage.setItem('cart', JSON.stringify(updatedCart));
18-
window.location.href = '/shoppingcart';
18+
window.location.href = '/kendo-react/kendo-react-e-commerce-astro-app/shoppingcart';
1919
};
2020

2121
const data: CardDescriptor[] = [
2222
{
23-
img: '/homemadePinkDiamondRing.jpg',
23+
img: '/kendo-react/kendo-react-e-commerce-astro-app/homemadePinkDiamondRing.jpg',
2424
collectionText: 'Handmade Pink Diamond Ring',
2525
},
2626
{
27-
img: '/diamondRingPinkRuby.jpg',
27+
img: '/kendo-react/kendo-react-e-commerce-astro-app/diamondRingPinkRuby.jpg',
2828
collectionText: 'Diamond Ring with Pink Ruby',
2929
},
3030
{
31-
img: '/whiteSandDiamondRing.jpg',
31+
img: '/kendo-react/kendo-react-e-commerce-astro-app/whiteSandDiamondRing.jpg',
3232
collectionText: 'White Sand Diamond Ring',
3333
},
3434
];

examples/kendo-react-e-commerce-astro-app/src/components/ShoppingCartList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ export const ShoppingCartList: React.FC = () => {
1717
}, []);
1818

1919
const onBackClick = () => {
20-
window.location.href = "/products";
20+
window.location.href = "/kendo-react/kendo-react-e-commerce-astro-app/products";
2121
};
2222

2323
const onProceedClick = () => {
24-
window.location.href = "/paymentdetails";
24+
window.location.href = "/kendo-react/kendo-react-e-commerce-astro-app/paymentdetails";
2525
};
2626

2727
const updateQuantity = (index: number, value: number) => {

0 commit comments

Comments
 (0)