-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
163 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,21 @@ | ||
import Header from '@/components/Header'; | ||
import Footer from '@/components/Footer'; | ||
import '@progress/kendo-theme-default/dist/all.css'; | ||
import Header from "@/components/Header"; | ||
import Footer from "@/components/Footer"; | ||
import { AllProductsListView } from "./pages/AllProductsListView"; | ||
import "@progress/kendo-theme-default/dist/all.css"; | ||
import { SizedParent } from "./components/SizedParent"; | ||
|
||
function App() { | ||
|
||
|
||
return ( | ||
<> | ||
<Header/> | ||
<Footer/> | ||
<SizedParent> | ||
<Header /> | ||
<AllProductsListView></AllProductsListView> | ||
<Footer /> | ||
</SizedParent> | ||
</> | ||
) | ||
); | ||
} | ||
|
||
export default App | ||
export default App; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
examples/ecommerce-jewellery-store/src/components/Layout.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export type LayoutProps = { | ||
children: React.ReactNode | ||
} | ||
|
||
|
||
export const Layout = (props: LayoutProps) => { | ||
return <div className="kr-layout k-d-grid k-grid-cols-12 k-justify-content-center k-align-items-center" style={{ | ||
padding: "0px 60px 60px 60px" | ||
}}> | ||
{props.children} | ||
</div>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
examples/ecommerce-jewellery-store/src/components/SizedParent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export type SizedParentProps = { | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const SizedParent = (props: SizedParentProps) => { | ||
return ( | ||
<div | ||
style={{ | ||
maxWidth: "1280px", | ||
}} | ||
> | ||
{props.children} | ||
</div> | ||
); | ||
}; |
101 changes: 100 additions & 1 deletion
101
examples/ecommerce-jewellery-store/src/pages/AllProductsListView.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,100 @@ | ||
import * as react from 'react'; | ||
import { OrderedImgText } from "../components/OrderedImageCard"; | ||
import bracelets from "../assets/bracelets.png?url"; | ||
import necklace from "../assets/necklace_1.jfif?url"; | ||
import ring from "../assets/ring_1.jfif?url"; | ||
import jewel from "../assets/1111.jfif?url"; | ||
import { Layout } from "../components/Layout"; | ||
import { Button } from "@progress/kendo-react-buttons"; | ||
|
||
export const AllProductsListView = () => { | ||
const title = "Fine Selection"; | ||
const subtitle = "Enjoy the real craftsmanship"; | ||
const contentText = | ||
"Jewelry is a meaningful form of self-expression that enhances personal style and adds beauty to any occasion."; | ||
const order = "first"; | ||
|
||
type CardDescriptor = { | ||
img: string; | ||
collectionText: string; | ||
}; | ||
|
||
const cards: CardDescriptor[] = [ | ||
{ | ||
img: necklace, | ||
collectionText: "SERENE", | ||
}, | ||
{ | ||
img: ring, | ||
collectionText: "AURELIA", | ||
}, | ||
{ | ||
img: jewel, | ||
collectionText: "RAVINA", | ||
}, | ||
]; | ||
|
||
return ( | ||
<> | ||
<Layout> | ||
<section | ||
className="k-d-grid k-grid-cols-12 k-justify-content-center k-align-items-center k-col-span-12" | ||
style={{ | ||
paddingTop: "60px", | ||
}} | ||
> | ||
<OrderedImgText | ||
title={title} | ||
subtitle={subtitle} | ||
contentText={contentText} | ||
img={bracelets} | ||
order={order} | ||
/> | ||
</section> | ||
</Layout> | ||
<Layout> | ||
<section className="k-d-grid k-grid-cols-12 k-col-span-12 k-justify-content-center"> | ||
<div className="k-h2 k-font-bold k-text-black k-col-span-12 k-text-center"> | ||
Our Collections | ||
</div> | ||
<div className="k-font-size-xl k-p-5 k-col-span-12 k-text-center" style={{ | ||
paddingBottom: "1rem" | ||
}}> | ||
Enjoy an excellent selection of fine jewelry | ||
</div> | ||
<div className="k-d-grid k-grid-cols-12 k-col-span-12"> | ||
{cards.map((card) => { | ||
return ( | ||
<div className="k-col-span-4 k-text-center"> | ||
<img | ||
width={"360px"} | ||
height={"319px"} | ||
style={{ | ||
minWidth: "360px", | ||
paddingBottom: "1rem" | ||
}} | ||
src={card.img} | ||
/> | ||
<span | ||
className="k-pt-md" | ||
|
||
> | ||
Collection "{card.collectionText}" | ||
</span> | ||
<div | ||
style={{ | ||
paddingTop: "1rem", | ||
}} | ||
> | ||
<Button themeColor={"primary"} size={"large"}> | ||
Buy Now | ||
</Button> | ||
</div> | ||
</div> | ||
); | ||
})} | ||
</div> | ||
</section> | ||
</Layout> | ||
</> | ||
); | ||
}; |