Skip to content

Commit acef7cd

Browse files
committed
add detailed cat page
1 parent 6d3f044 commit acef7cd

File tree

5 files changed

+127
-1
lines changed

5 files changed

+127
-1
lines changed

examples/ecommerce-jewellery-store/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Home from "@/pages/Home";
1010
import "@progress/kendo-theme-default/dist/all.css";
1111
import "@progress/kendo-theme-utils/dist/all.scss";
1212
import { SizedParent } from "./components/SizedParent";
13+
import { DetailedCategory } from './pages/DetailedCategory';
1314

1415
function App() {
1516
return (
@@ -23,6 +24,7 @@ function App() {
2324
<Route path="/thankyou" element={<ThankYou />} />
2425
<Route path="/contacts" element={<Contacts />} />
2526
<Route path="/products" element={<AllProductsListView />} />
27+
<Route path="/category" element={<DetailedCategory />} />
2628
</Routes>
2729
<Footer />
2830
</SizedParent>
336 KB
Loading
Binary file not shown.

examples/ecommerce-jewellery-store/src/pages/AllProductsListView.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ export const AllProductsListView = () => {
2929

3030
const updateUI = (newState: State) => {
3131
const newData = process(listData, newState)
32-
console.log(newState)
3332
setData(newData.data)
3433
};
3534

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
import { Layout } from "../components/Layout";
2+
import { OrderedImgText } from "../components/OrderedImageCard";
3+
import aureliaImg from "../assets/aurelia-detail-page.png";
4+
import { CustomSection } from "../components/CustomizedSection";
5+
import { Button, ButtonGroup } from "@progress/kendo-react-buttons";
6+
import { Breadcrumb } from "@progress/kendo-react-layout";
7+
import { layout2By2Icon, gridLayoutIcon } from "@progress/kendo-svg-icons"
8+
9+
import necklace from "../assets/necklace_1.jfif?url";
10+
import jewel from "../assets/1111.jfif?url";
11+
import tolos from "../assets/tolosCollection.jfif";
12+
13+
type CardDescriptor = {
14+
img: string;
15+
collectionText: string;
16+
};
17+
18+
const cards: CardDescriptor[] = [
19+
{
20+
img: necklace,
21+
collectionText: "SERENE",
22+
},
23+
{
24+
img: jewel,
25+
collectionText: "RAVINA",
26+
},
27+
{
28+
img: tolos,
29+
collectionText: "TOLOS",
30+
},
31+
];
32+
type DataModel = {
33+
text: string;
34+
};
35+
36+
const BreakcrumbData: DataModel[] = [
37+
{
38+
text: "Home",
39+
},
40+
{
41+
text: "Jewelry",
42+
},
43+
];
44+
45+
export const DetailedCategory = () => {
46+
const title = "AURELIA Collection";
47+
const subtitle = "Unique handmade rings";
48+
const contentText =
49+
"Rings are versatile jewelry pieces that symbolize personal style, suitable for both special occasions and everyday wear.";
50+
const order = "first";
51+
52+
return (
53+
<>
54+
<Layout>
55+
<section
56+
className="k-d-grid k-grid-cols-12 k-justify-content-center k-align-items-center k-col-span-12"
57+
style={{
58+
paddingTop: "60px",
59+
}}
60+
>
61+
<OrderedImgText
62+
title={title}
63+
subtitle={subtitle}
64+
contentText={contentText}
65+
img={aureliaImg}
66+
order={order}
67+
/>
68+
</section>
69+
</Layout>
70+
<Layout>
71+
<CustomSection>
72+
<div className="k-h2 k-font-bold k-text-black k-col-span-12 k-text-center">
73+
Our Collections
74+
</div>
75+
<div
76+
className="k-font-size-xl k-p-5 k-col-span-12 k-text-center"
77+
style={{
78+
paddingBottom: "1rem",
79+
}}
80+
>
81+
Enjoy an excellent selection of fine jewelry
82+
</div>
83+
<div className="k-d-grid k-grid-cols-12 k-col-span-12">
84+
{cards.map((card, index) => {
85+
return (
86+
<div key={index} className="k-col-span-4 k-text-center">
87+
<img
88+
width={"360px"}
89+
height={"319px"}
90+
style={{
91+
minWidth: "360px",
92+
paddingBottom: "1rem",
93+
}}
94+
src={card.img}
95+
/>
96+
<span className="k-pt-md">
97+
Collection "{card.collectionText}"
98+
</span>
99+
<div
100+
style={{
101+
paddingTop: "1rem",
102+
}}
103+
>
104+
<Button themeColor={"primary"} size={"large"}>
105+
Buy Now
106+
</Button>
107+
</div>
108+
</div>
109+
);
110+
})}
111+
</div>
112+
</CustomSection>
113+
</Layout>
114+
<Layout>
115+
<section className="k-d-flex k-justify-content-between">
116+
<Breadcrumb data={BreakcrumbData}></Breadcrumb>
117+
<ButtonGroup>
118+
<Button fillMode={"flat"} svgIcon={gridLayoutIcon}></Button>
119+
<Button fillMode={"flat"} svgIcon={layout2By2Icon}></Button>
120+
</ButtonGroup>
121+
</section>
122+
</Layout>
123+
</>
124+
);
125+
};

0 commit comments

Comments
 (0)