diff --git a/src/app/search/page.tsx b/src/app/search/page.tsx index 88d60c1..5bf16bf 100644 --- a/src/app/search/page.tsx +++ b/src/app/search/page.tsx @@ -1,48 +1,27 @@ 'use client'; -import { ThemeProvider } from '@/components/ThemeProvider'; -import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple'; +import { ThemeProvider } from '@/components/theme/ThemeProvider'; +import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; +import HeroOverlay from '@/components/sections/hero/HeroOverlay'; +import ContactSplitForm from '@/components/sections/contact/ContactSplitForm'; +import BlurBottomBackground from '@/components/background/BlurBottomBackground'; import { useState } from 'react'; -import { Search, Filter, X } from 'lucide-react'; -const products = [ - { id: '1', name: 'Premium Service A', category: 'Services', price: '$99', tags: ['featured', 'popular'] }, - { id: '2', name: 'Enterprise Package', category: 'Enterprise', price: '$499', tags: ['enterprise', 'new'] }, - { id: '3', name: 'Starter Plan', category: 'Plans', price: '$29', tags: ['beginner', 'affordable'] }, - { id: '4', name: 'Professional Suite', category: 'Services', price: '$199', tags: ['professional', 'popular'] }, - { id: '5', name: 'Team Collaboration', category: 'Tools', price: '$149', tags: ['team', 'collaboration'] }, - { id: '6', name: 'Advanced Analytics', category: 'Analytics', price: '$79', tags: ['analytics', 'insights'] }, +const navItems = [ + { name: 'Home', id: '/' }, + { name: 'Brands', id: '/brands' }, + { name: 'Search', id: '/search' }, + { name: 'Browse', id: '/browse' }, ]; export default function SearchPage() { - const [searchQuery, setSearchQuery] = useState(''); - const [selectedFilters, setSelectedFilters] = useState([]); - const [priceRange, setPriceRange] = useState<[number, number]>([0, 500]); + const [searchResults, setSearchResults] = useState(null); - const navItems = [ - { name: 'Home', id: '/' }, - { name: 'Brands', id: '/brands' }, - { name: 'Search', id: '/search' }, - { name: 'Browse', id: '/browse' }, - ]; - - const categories = ['Services', 'Enterprise', 'Plans', 'Tools', 'Analytics']; - const tags = ['featured', 'popular', 'new', 'beginner', 'affordable', 'professional', 'team', 'collaboration', 'analytics', 'insights']; - - const toggleFilter = (filter: string) => { - setSelectedFilters((prev) => - prev.includes(filter) ? prev.filter((f) => f !== filter) : [...prev, filter] - ); + const handleSearch = (data: Record) => { + console.log('Advanced search query:', data); + setSearchResults(`Results for: ${data.query || 'all'} (Category: ${data.category || 'all'})`); }; - const filteredProducts = products.filter((product) => { - const matchesSearch = product.name.toLowerCase().includes(searchQuery.toLowerCase()); - const matchesCategory = selectedFilters.length === 0 || selectedFilters.includes(product.category); - const price = parseInt(product.price.replace('$', '')); - const matchesPrice = price >= priceRange[0] && price <= priceRange[1]; - return matchesSearch && matchesCategory && matchesPrice; - }); - return ( - -
-
-
-

Advanced Search

-

Find exactly what you're looking for with advanced filters

-
+ - {/* Search Bar */} -
- - setSearchQuery(e.target.value)} - className="w-full pl-10 pr-4 py-3 border border-card rounded-lg focus:outline-none focus:border-primary-cta bg-background" - /> -
+
+ +
-
- {/* Filters Sidebar */} -
-
-
- -

Filters

-
+
+ +
- {/* Category Filter */} -
-

Category

-
- {categories.map((category) => ( - - ))} -
-
- - {/* Price Range */} -
-

Price Range

-
-
- ${priceRange[0]} - ${priceRange[1]} -
- setPriceRange([priceRange[0], parseInt(e.target.value)])} - className="w-full" - /> -
-
- - {/* Clear Filters */} - {selectedFilters.length > 0 && ( - - )} -
-
- - {/* Results */} -
-
-

{filteredProducts.length} results found

-
-
- {filteredProducts.map((product) => ( -
-
-

{product.name}

- {product.price} -
-

{product.category}

-
- {product.tags.map((tag) => ( - - {tag} - - ))} -
- -
- ))} -
- {filteredProducts.length === 0 && ( -
-

No products found matching your filters

-
- )} -
-
+ {searchResults && ( +
+

{searchResults}

-
+ )} + +
); }