diff --git a/frontend/app/components/ui/hero-section.tsx b/frontend/app/components/ui/hero-section.tsx index 3bc1548..664f892 100644 --- a/frontend/app/components/ui/hero-section.tsx +++ b/frontend/app/components/ui/hero-section.tsx @@ -22,14 +22,10 @@ export function HeroSection() {

- SafeSwap -

-

- The Future of Secure Trading -

The Future of Secure Trading +

Experience trustless trading with built-in Stellar escrow protection. Your gateway to secure, decentralized commerce. diff --git a/frontend/app/components/ui/input.tsx b/frontend/app/components/ui/input.tsx index a926ab6..761550d 100644 --- a/frontend/app/components/ui/input.tsx +++ b/frontend/app/components/ui/input.tsx @@ -1,25 +1,3 @@ - -import { cn } from "@/lib/utils"; -import * as React from "react"; - -const Input = React.forwardRef< - HTMLInputElement, - React.InputHTMLAttributes ->(({ className, type, ...props }, ref) => { - return ( - - ); -}); -Input.displayName = "Input"; - import * as React from "react"; import { cn } from "@/lib/utils"; diff --git a/frontend/app/marketplace/page.tsx b/frontend/app/marketplace/page.tsx index b6691fd..eb6cb55 100644 --- a/frontend/app/marketplace/page.tsx +++ b/frontend/app/marketplace/page.tsx @@ -18,16 +18,8 @@ import { SidebarTrigger, } from "@/app/components/ui/sidebar"; import { Slider } from "@/app/components/ui/slider"; - -import { Menu as HamIcon, Search } from "lucide-react"; -import { Dispatch, SetStateAction, useState } from "react"; - -interface Product { - id: number; - import ImageCarousel from "../components/ui/image-carrousel"; import { usePathname, useRouter } from "next/navigation"; - import { Menu as HamIcon, MessageSquareMore, @@ -62,89 +54,6 @@ interface ProductListProps { } const products: Product[] = [ - - { id: 1, name: "Laptop Pro", price: 1299, category: "Electronics" }, - { id: 2, name: "Smartphone X", price: 699, category: "Electronics" }, - { id: 3, name: "Ergonomic Chair", price: 299, category: "Furniture" }, - { id: 4, name: "Coffee Maker", price: 89, category: "Appliances" }, - { id: 5, name: "Running Shoes", price: 129, category: "Sports" }, - { id: 6, name: "Wireless Earbuds", price: 159, category: "Electronics" }, - { - id: 1, - name: "MacBook Pro 14", - price: 1299, - category: "Electronics", - images: [ - { src: "/images/macbook-pro-14.webp", alt: "MacBook Pro 14" }, - { src: "/images/macbook-pro-14.webp", alt: "MacBook Pro 14" }, - { src: "/images/macbook-pro-14.webp", alt: "MacBook Pro 14" }, - ], - }, - { - id: 2, - name: "Samsung Galaxy S24 FE", - price: 699, - category: "Electronics", - images: [ - { - src: "/images/samsung-galaxy-s24-fe.webp", - alt: "Samsung Galaxy S24 FE", - }, - { - src: "/images/samsung-galaxy-s24-fe.webp", - alt: "Samsung Galaxy S24 FE", - }, - { - src: "/images/samsung-galaxy-s24-fe.webp", - alt: "Samsung Galaxy S24 FE", - }, - ], - }, - { - id: 3, - name: "Ergonomic Chair", - price: 299, - category: "Furniture", - images: [ - { src: "/images/ergonomic-chair.jpg", alt: "Ergonomic Chair" }, - { src: "/images/ergonomic-chair.jpg", alt: "Ergonomic Chair" }, - { src: "/images/ergonomic-chair.jpg", alt: "Ergonomic Chair" }, - ], - }, - { - id: 4, - name: "Coffee Maker", - price: 89, - category: "Appliances", - images: [ - { src: "/images/coffee-maker.webp", alt: "Coffee Maker" }, - { src: "/images/coffee-maker.webp", alt: "Coffee Maker" }, - { src: "/images/coffee-maker.webp", alt: "Coffee Maker" }, - ], - }, - { - id: 5, - name: "Running Shoes", - price: 129, - category: "Sports", - images: [ - { src: "/images/running-shoes.jpg", alt: "Running Shoes" }, - { src: "/images/running-shoes.jpg", alt: "Running Shoes" }, - { src: "/images/running-shoes.jpg", alt: "Running Shoes" }, - ], - }, - { - id: 6, - name: "Wireless Earbuds", - price: 159, - category: "Electronics", - images: [ - { src: "/images/wireless-earbuds.jpg", alt: "Wireless Earbuds" }, - { src: "/images/wireless-earbuds.jpg", alt: "Wireless Earbuds" }, - { src: "/images/wireless-earbuds.jpg", alt: "Wireless Earbuds" }, - ], - }, -======= { id: 1, name: "MacBook Pro 14", @@ -272,132 +181,6 @@ function SidebarComponent({ selectedCategories, handleCategoryChange, }: SidebarComponentProps) { - - const handleSliderChange = (value: number[]) => { - if (value.length === 2) { - setPriceRange([value[0], value[1]]); - } - }; - return ( - - -

Filters

- - -
-
-

Price range

- - setPriceRange(value as [number, number]) - } - className="mb-3" - /> -
- ${priceRange[0]} - ${priceRange[1]} -
-
-
-

Categories

-
- {["Electronics", "Furniture", "Appliances", "Sports"].map( - (category) => ( -
- handleCategoryChange(category)} - /> - -
- ), - )} -
-
-
-
- - ); -} - -function HeaderComponent({ searchTerm, setSearchTerm }: HeaderComponentProps) { - return ( -
- - - -
-
- setSearchTerm(e.target.value)} - className="w-[16rem] h-[3rem]" - className="w-full h-[3rem] md:w-[16rem]" - /> - -
-
- ); -} - -function ProductList({ products }: ProductListProps) { - return ( -
-

Products

-
- {products?.map((product) => ( - - - -
- {products?.map((product) => ( - - - - - {product.name} - - - -

{product.category}

-
- - ${product.price} - - - ${product.price} -
- - -
-
-
- ))} -
-
- ); - return (