Skip to content

Commit

Permalink
add pages
Browse files Browse the repository at this point in the history
  • Loading branch information
svdimitr committed Oct 30, 2024
1 parent a7e5b62 commit fa67032
Show file tree
Hide file tree
Showing 10 changed files with 163 additions and 28 deletions.
20 changes: 13 additions & 7 deletions examples/ecommerce-jewellery-store/src/App.tsx
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.
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,27 @@ export const BackgroundImage = (props: BackgroundImageProps) => {

return (
<section
className="k-h-full k-w-full k-bg-cover"
className="k-d-grid k-grid-cols-12 k-justify-content-center k-align-items-center k-col-span-12 k-bg-cover"
style={{
backgroundImage: `url(${img})`,
backgroundColor: "",
height: "757.8px",
}}
>
<div className="k-w-full k-h-full k-d-flex k-flex-col k-justify-content-center k-align-items-center" style={{
backgroundColor: "rgba(0, 0, 0, 0.3)"
<div className="k-col-span-12" style={{
backgroundColor: "rgba(0, 0, 0, 0.14)",
height: "100%"
}}>
<div className="k-text-center k-text-white">
<h1
className="k-h1 k-font-bold"
style={{
marginTop: "190px",
marginTop: "400px",
}}
>
{title}
</h1>
<p className="k-font-size-lg k-mb-4 k-font-bold">{subtitle}</p>
<p className="k-font-size-lg k-mb-4 k-font-bold k-text-uppercase">{subtitle}</p>
<span className="k-gap-9"></span>
<Button themeColor="primary" className="k-mb-4">
{buttonText}
</Button>
Expand Down
5 changes: 4 additions & 1 deletion examples/ecommerce-jewellery-store/src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ import {
const Header: React.FC = () => {
return (
<>
<AppBar themeColor="inherit">
<AppBar className='k-pt-3 k-pb-3 k-col-span-12' themeColor="inherit" style={{
height: "52.2px",
zIndex: 10000
}}>
<AppBarSection className="k-d-flex k-align-items-center" style={{ paddingLeft: '50px' }}>
<a href="#" className="k-d-sm-flex" style={{ marginRight: '50px' }}>
<img src={viloraLogo} alt="Logo" />
Expand Down
12 changes: 12 additions & 0 deletions examples/ecommerce-jewellery-store/src/components/Layout.tsx
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>;
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,27 @@ type OrderedImgTextProps = {
order: string;
};

//k-d-flex k-flex-wrap k-flex-row k-w-full k-h-full k-justify-content-center k-align-items-center k-gap-5px

export const OrderedImgText = (props: OrderedImgTextProps) => {
const { title, subtitle, contentText, img, order } = props;

return (
<section className="k-d-flex k-flex-wrap k-flex-row k-w-full k-h-full k-justify-content-center k-align-items-center k-gap-5px">
<span
className={`k-w-full k-h-full k-order-${order} k-rounded-lg`}
<>
<div
style={{
backgroundImage: `url(${img})`,
backgroundSize: "cover",
flex: "0 0 70%",
}}
></span>
<div
className="k-text-center"
style={{
flex: "0 0 30%",
height: "508px",
width: "768px",
}}
>
className={`k-col-span-8 k-order-${order} k-rounded-lg`}
/>
<span className="k-text-center k-col-span-4">
<div className="k-h2 k-font-bold k-text-black">{title}</div>
<div className="k-font-size-xl k-p-5">{subtitle}</div>
<span className="k-font-size-md">{contentText}</span>
</div>
</section>
</span>
</>
);
};
15 changes: 15 additions & 0 deletions examples/ecommerce-jewellery-store/src/components/SizedParent.tsx
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 examples/ecommerce-jewellery-store/src/pages/AllProductsListView.tsx
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>
</>
);
};

0 comments on commit fa67032

Please sign in to comment.