Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4392b4b9f6 | |||
| ccdba674af | |||
| 84e9ce124a | |||
| 55b8343634 | |||
| b639b15019 | |||
| de61132b3b | |||
| 138cc92963 |
67
src/app/marketplace/page.tsx
Normal file
67
src/app/marketplace/page.tsx
Normal file
@@ -0,0 +1,67 @@
|
||||
"use client";
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import ReactLenis from "lenis/react";
|
||||
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
|
||||
import ProductCatalog from '@/components/ecommerce/productCatalog/ProductCatalog';
|
||||
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
|
||||
import { useState } from 'react';
|
||||
|
||||
export default function MarketplacePage() {
|
||||
const [searchValue, setSearchValue] = useState('');
|
||||
|
||||
const products = [
|
||||
{ id: '1', name: 'Organic Heirloom Seeds', price: '$12.00', rating: 5, imageSrc: 'http://img.b2bpic.net/free-photo/flat-lay-gardening-composition-with-copyspace_23-2148127877.jpg?_wi=1' },
|
||||
{ id: '2', name: 'High-Yield Wheat Crop', price: '$45.00', rating: 4, imageSrc: 'http://img.b2bpic.net/free-photo/aerial-view-beautiful-country-landscape_181624-49667.jpg?_wi=1' },
|
||||
{ id: '3', name: 'Professional Soil Mix', price: '$25.00', rating: 5, imageSrc: 'http://img.b2bpic.net/free-photo/close-up-male-hands-holding-soil-plant_23-2148814122.jpg?_wi=1' },
|
||||
{ id: '4', name: 'Sustainable Fertilizer', price: '$30.00', rating: 4, imageSrc: 'http://img.b2bpic.net/free-photo/diverse-viking-men-outdoors_23-2151689965.jpg?_wi=1' }
|
||||
];
|
||||
|
||||
return (
|
||||
<ThemeProvider
|
||||
defaultButtonVariant="directional-hover"
|
||||
defaultTextAnimation="reveal-blur"
|
||||
borderRadius="rounded"
|
||||
contentWidth="medium"
|
||||
sizing="medium"
|
||||
background="aurora"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="shadow"
|
||||
secondaryButtonStyle="solid"
|
||||
headingFontWeight="semibold"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleApple
|
||||
navItems={[
|
||||
{ name: "Home", id: "/" },
|
||||
{ name: "Marketplace", id: "/marketplace" },
|
||||
{ name: "Contact", id: "/contact" },
|
||||
]}
|
||||
brandName="HarvestHub"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="marketplace" data-section="marketplace" style={{ paddingTop: "100px", paddingBottom: "100px" }}>
|
||||
<ProductCatalog
|
||||
layout="page"
|
||||
products={products}
|
||||
searchValue={searchValue}
|
||||
onSearchChange={setSearchValue}
|
||||
searchPlaceholder="Find seeds, crops, or logistics services..."
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div id="footer" data-section="footer">
|
||||
<FooterBaseCard
|
||||
logoText="HarvestHub"
|
||||
columns={[
|
||||
{ title: "Marketplace", items: [{ label: "Shop", href: "/marketplace" }] },
|
||||
{ title: "Company", items: [{ label: "Home", href: "/" }] },
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
@@ -34,7 +34,7 @@ export default function LandingPage() {
|
||||
{
|
||||
name: "Home", id: "hero"},
|
||||
{
|
||||
name: "Shop", id: "products"},
|
||||
name: "Shop", id: "/marketplace"},
|
||||
{
|
||||
name: "About", id: "about"},
|
||||
{
|
||||
@@ -52,23 +52,23 @@ export default function LandingPage() {
|
||||
description="The ultimate marketplace connecting modern farmers with premium seeds, tools, and sustainable crop solutions."
|
||||
buttons={[
|
||||
{
|
||||
text: "Shop Now", href: "#products"},
|
||||
text: "Shop Now", href: "/marketplace"},
|
||||
{
|
||||
text: "Learn More", href: "#about"},
|
||||
]}
|
||||
mediaItems={[
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/aerial-view-beautiful-country-landscape_181624-49667.jpg", imageAlt: "Farm fields"},
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/aerial-view-beautiful-country-landscape_181624-49667.jpg?_wi=2", imageAlt: "Farm fields"},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/composition-fresh-vegetables-blurred-vegetable-garden-background_169016-39500.jpg", imageAlt: "Produce"},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/elevated-view-colorful-vegetables-wooden-container_23-2147926327.jpg", imageAlt: "Farmers market"},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-gardening-composition-with-copyspace_23-2148127877.jpg", imageAlt: "Seeds"},
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-gardening-composition-with-copyspace_23-2148127877.jpg?_wi=2", imageAlt: "Seeds"},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/diverse-viking-men-outdoors_23-2151689965.jpg", imageAlt: "Farmers working"},
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/diverse-viking-men-outdoors_23-2151689965.jpg?_wi=2", imageAlt: "Farmers working"},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-male-hands-holding-soil-plant_23-2148814122.jpg", imageAlt: "Sprouts growing"},
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-male-hands-holding-soil-plant_23-2148814122.jpg?_wi=2", imageAlt: "Sprouts growing"},
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -214,7 +214,7 @@ export default function LandingPage() {
|
||||
{
|
||||
title: "Marketplace", items: [
|
||||
{
|
||||
label: "Shop", href: "#products"},
|
||||
label: "Shop", href: "/marketplace"},
|
||||
{
|
||||
label: "Sell", href: "#"},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user