|
| 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