Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c56446fe94 | |||
| 86a0cd96c7 |
@@ -227,6 +227,34 @@ export default function LandingPage() {
|
|||||||
<ProductCardFour />
|
<ProductCardFour />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div id="product" data-section="product">
|
||||||
|
<ProductCardFour
|
||||||
|
title="Bestsellers"
|
||||||
|
description="Discover our top-selling iPhone models that customers love."
|
||||||
|
tag="Top Picks"
|
||||||
|
tagIcon={Package}
|
||||||
|
textboxLayout="default"
|
||||||
|
useInvertedBackground="noInvert"
|
||||||
|
animationType="slide-up"
|
||||||
|
gridVariant="uniform-all-items-equal"
|
||||||
|
carouselMode="buttons"
|
||||||
|
products={[
|
||||||
|
{
|
||||||
|
id: "1", name: "iPhone 15 Pro Max", price: "$1,199", variant: "Titanium Gray 6 Colors", imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80", imageAlt: "iPhone 15 Pro Max", isFavorited: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "2", name: "iPhone 15 Pro", price: "$999", variant: "Space Black 5 Colors", imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80", imageAlt: "iPhone 15 Pro", isFavorited: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "3", name: "iPhone 15", price: "$799", variant: "Black 5 Colors", imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80", imageAlt: "iPhone 15", isFavorited: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "4", name: "iPhone 14 Pro Max", price: "$999", variant: "Gold 4 Colors", imageSrc: "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=800&q=80", imageAlt: "iPhone 14 Pro Max", isFavorited: false
|
||||||
|
}
|
||||||
|
]}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div id="footer" data-section="footer">
|
<div id="footer" data-section="footer">
|
||||||
<FooterMedia
|
<FooterMedia
|
||||||
imageSrc="https://img.b2bpic.net/free-vector/abstract-technology-science-background-with-connecting-lines_1017-22915.jpg"
|
imageSrc="https://img.b2bpic.net/free-vector/abstract-technology-science-background-with-connecting-lines_1017-22915.jpg"
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ interface ProductCardFourProps {
|
|||||||
textBoxButtonContainerClassName?: string;
|
textBoxButtonContainerClassName?: string;
|
||||||
textBoxButtonClassName?: string;
|
textBoxButtonClassName?: string;
|
||||||
textBoxButtonTextClassName?: string;
|
textBoxButtonTextClassName?: string;
|
||||||
|
backgroundImage?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ProductCardItemProps {
|
interface ProductCardItemProps {
|
||||||
@@ -150,6 +151,7 @@ const ProductCardFour = ({
|
|||||||
textBoxButtonContainerClassName = "",
|
textBoxButtonContainerClassName = "",
|
||||||
textBoxButtonClassName = "",
|
textBoxButtonClassName = "",
|
||||||
textBoxButtonTextClassName = "",
|
textBoxButtonTextClassName = "",
|
||||||
|
backgroundImage = "https://images.unsplash.com/photo-1519681393784-d120267933ba?w=1920&q=80",
|
||||||
}: ProductCardFourProps) => {
|
}: ProductCardFourProps) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const { products: fetchedProducts, isLoading } = useProducts();
|
const { products: fetchedProducts, isLoading } = useProducts();
|
||||||
@@ -193,7 +195,7 @@ const ProductCardFour = ({
|
|||||||
buttons={buttons}
|
buttons={buttons}
|
||||||
textboxLayout={textboxLayout}
|
textboxLayout={textboxLayout}
|
||||||
useInvertedBackground={useInvertedBackground}
|
useInvertedBackground={useInvertedBackground}
|
||||||
className={className}
|
className={cls(className, "bg-cover bg-center", { backgroundImage: `url(${backgroundImage})` })}
|
||||||
containerClassName={containerClassName}
|
containerClassName={containerClassName}
|
||||||
gridClassName={gridClassName}
|
gridClassName={gridClassName}
|
||||||
carouselClassName={carouselClassName}
|
carouselClassName={carouselClassName}
|
||||||
|
|||||||
Reference in New Issue
Block a user