+
{product.name}
+
{product.era}
+
{product.description}
+
+
+
+ Condition: {product.condition}
+
+
+ Origin: {product.origin}
+
-
-
{product.name}
-
{product.era}
-
{product.description}
-
-
-
- Condition: {product.condition}
-
-
- Origin: {product.origin}
-
+
+
+ ${product.price}
+ {product.originalPrice && (
+ ${product.originalPrice}
+ )}
-
-
- ${product.price}
- {product.originalPrice && (
- ${product.originalPrice}
- )}
-
-
-
-
+
- );
- }
-}
+
+ );
+});
export default ProductCard;
diff --git a/src/components/ProductList.js b/src/components/ProductList.js
index 5d94b18..72498c3 100644
--- a/src/components/ProductList.js
+++ b/src/components/ProductList.js
@@ -1,111 +1,107 @@
-import React, { Component } from 'react';
+import React, { useState, useCallback, useMemo, memo } from 'react';
import ProductCard from './ProductCard';
+import { useImagePreloader, extractImageUrls } from '../utils/imagePreloader';
-class ProductList extends Component {
- constructor(props) {
- super(props);
- this.state = {
- sortBy: 'name',
- filterBy: 'all',
- products: [
- {
- id: 1,
- name: "Victorian Mahogany Writing Desk",
- era: "Victorian Era (1860s)",
- description: "Exquisite mahogany writing desk with intricate brass fittings and secret compartments.",
- price: 2850,
- originalPrice: 3200,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- },
- {
- id: 2,
- name: "Art Deco Pearl Necklace",
- era: "Art Deco (1920s)",
- description: "Stunning pearl necklace with geometric platinum clasp, typical of the Art Deco period.",
- price: 1650,
- condition: "Very Good",
- origin: "France",
- image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "jewelry"
- },
- {
- id: 3,
- name: "Ming Dynasty Porcelain Vase",
- era: "Ming Dynasty (16th Century)",
- description: "Rare blue and white porcelain vase with traditional dragon motifs.",
- price: 8500,
- condition: "Good",
- origin: "China",
- image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "art"
- },
- {
- id: 4,
- name: "Edwardian Silver Tea Set",
- era: "Edwardian Era (1905)",
- description: "Complete sterling silver tea service with ornate engravings and original hallmarks.",
- price: 1200,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1544787219-7f47ccb76574?w=400&h=300&fit=crop",
- inStock: false,
- isRare: false,
- category: "collectibles"
- },
- {
- id: 5,
- name: "Louis XVI Armchair",
- era: "Louis XVI Period (1780s)",
- description: "Authentic French armchair with original silk upholstery and gilded wood frame.",
- price: 4200,
- condition: "Very Good",
- origin: "France",
- image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- },
- {
- id: 6,
- name: "Victorian Cameo Brooch",
- era: "Victorian Era (1870s)",
- description: "Delicate shell cameo brooch set in 14k gold with intricate detailing.",
- price: 450,
- condition: "Excellent",
- origin: "Italy",
- image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "jewelry"
- }
- ]
- };
- }
+const ProductList = memo(({ onAddToCart, searchTerm }) => {
+ const [sortBy, setSortBy] = useState('name');
+ const [filterBy, setFilterBy] = useState('all');
+ const [products] = useState([
+ {
+ id: 1,
+ name: "Victorian Mahogany Writing Desk",
+ era: "Victorian Era (1860s)",
+ description: "Exquisite mahogany writing desk with intricate brass fittings and secret compartments.",
+ price: 2850,
+ originalPrice: 3200,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ },
+ {
+ id: 2,
+ name: "Art Deco Pearl Necklace",
+ era: "Art Deco (1920s)",
+ description: "Stunning pearl necklace with geometric platinum clasp, typical of the Art Deco period.",
+ price: 1650,
+ condition: "Very Good",
+ origin: "France",
+ image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "jewelry"
+ },
+ {
+ id: 3,
+ name: "Ming Dynasty Porcelain Vase",
+ era: "Ming Dynasty (16th Century)",
+ description: "Rare blue and white porcelain vase with traditional dragon motifs.",
+ price: 8500,
+ condition: "Good",
+ origin: "China",
+ image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "art"
+ },
+ {
+ id: 4,
+ name: "Edwardian Silver Tea Set",
+ era: "Edwardian Era (1905)",
+ description: "Complete sterling silver tea service with ornate engravings and original hallmarks.",
+ price: 1200,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1544787219-7f47ccb76574?w=400&h=300&fit=crop",
+ inStock: false,
+ isRare: false,
+ category: "collectibles"
+ },
+ {
+ id: 5,
+ name: "Louis XVI Armchair",
+ era: "Louis XVI Period (1780s)",
+ description: "Authentic French armchair with original silk upholstery and gilded wood frame.",
+ price: 4200,
+ condition: "Very Good",
+ origin: "France",
+ image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ },
+ {
+ id: 6,
+ name: "Victorian Cameo Brooch",
+ era: "Victorian Era (1870s)",
+ description: "Delicate shell cameo brooch set in 14k gold with intricate detailing.",
+ price: 450,
+ condition: "Excellent",
+ origin: "Italy",
+ image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "jewelry"
+ }
+ ]);
- handleSortChange = (e) => {
- this.setState({ sortBy: e.target.value });
- }
+ const handleSortChange = useCallback((e) => {
+ setSortBy(e.target.value);
+ }, []);
- handleFilterChange = (e) => {
- this.setState({ filterBy: e.target.value });
- }
+ const handleFilterChange = useCallback((e) => {
+ setFilterBy(e.target.value);
+ }, []);
- getSortedAndFilteredProducts = () => {
- let filteredProducts = this.state.products;
+ const filteredProducts = useMemo(() => {
+ let filtered = products;
// Apply search filter if provided
- if (this.props.searchTerm) {
- const searchLower = this.props.searchTerm.toLowerCase();
- filteredProducts = filteredProducts.filter(product =>
+ if (searchTerm) {
+ const searchLower = searchTerm.toLowerCase();
+ filtered = filtered.filter(product =>
product.name.toLowerCase().includes(searchLower) ||
product.description.toLowerCase().includes(searchLower) ||
product.era.toLowerCase().includes(searchLower)
@@ -113,15 +109,15 @@ class ProductList extends Component {
}
// Apply category filter
- if (this.state.filterBy !== 'all') {
- filteredProducts = filteredProducts.filter(product =>
- product.category === this.state.filterBy
+ if (filterBy !== 'all') {
+ filtered = filtered.filter(product =>
+ product.category === filterBy
);
}
// Apply sorting
- filteredProducts.sort((a, b) => {
- switch (this.state.sortBy) {
+ filtered.sort((a, b) => {
+ switch (sortBy) {
case 'price-low':
return a.price - b.price;
case 'price-high':
@@ -134,67 +130,68 @@ class ProductList extends Component {
}
});
- return filteredProducts;
- }
+ return filtered;
+ }, [products, searchTerm, filterBy, sortBy]);
+
+ const imageUrls = useMemo(() => {
+ return extractImageUrls(products);
+ }, [products]);
- render() {
- const { onAddToCart } = this.props;
- const products = this.getSortedAndFilteredProducts();
+ useImagePreloader(imageUrls);
- return (
-
-
-
Our Antique Collection
-
-
-
-
-
-
-
-
-
-
+ return (
+
+
+
Our Antique Collection
+
+
+
+
+
+
+
+
+
+
-
- {products.length > 0 ? (
- products.map(product => (
-
- ))
- ) : (
-
-
No products found matching your criteria.
-
- )}
-
+
+ {filteredProducts.length > 0 ? (
+ filteredProducts.map(product => (
+
+ ))
+ ) : (
+
+
No products found matching your criteria.
+
+ )}
- );
- }
-}
+
+ );
+});
export default ProductList;
diff --git a/src/pages/About.js b/src/pages/About.js
index e69eb43..d9db43e 100644
--- a/src/pages/About.js
+++ b/src/pages/About.js
@@ -1,199 +1,201 @@
-import React, { Component } from 'react';
+import React, { useState, memo, useMemo } from 'react';
+import { useImagePreloader } from '../utils/imagePreloader';
-class About extends Component {
- constructor(props) {
- super(props);
- this.state = {
- teamMembers: [
- {
- name: "Eleanor Whitmore",
- title: "Founder & Chief Curator",
- bio: "With over 30 years in the antiques trade, Eleanor brings unparalleled expertise in European decorative arts.",
- image: "https://images.unsplash.com/photo-1494790108755-2616c9c9b8d3?w=200&h=200&fit=crop&crop=face"
- },
- {
- name: "James Chen",
- title: "Asian Art Specialist",
- bio: "Former museum curator specializing in Chinese and Japanese antiquities with a PhD in Art History.",
- image: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=200&h=200&fit=crop&crop=face"
- },
- {
- name: "Isabella Rodriguez",
- title: "Jewelry Expert",
- bio: "Certified gemologist and vintage jewelry specialist with expertise in authentication and valuation.",
- image: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=200&h=200&fit=crop&crop=face"
- }
- ]
- };
- }
+const About = memo(() => {
+ const [teamMembers] = useState([
+ {
+ name: "Eleanor Whitmore",
+ title: "Founder & Chief Curator",
+ bio: "With over 30 years in the antiques trade, Eleanor brings unparalleled expertise in European decorative arts.",
+ image: "https://images.unsplash.com/photo-1494790108755-2616c9c9b8d3?w=200&h=200&fit=crop&crop=face"
+ },
+ {
+ name: "James Chen",
+ title: "Asian Art Specialist",
+ bio: "Former museum curator specializing in Chinese and Japanese antiquities with a PhD in Art History.",
+ image: "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=200&h=200&fit=crop&crop=face"
+ },
+ {
+ name: "Isabella Rodriguez",
+ title: "Jewelry Expert",
+ bio: "Certified gemologist and vintage jewelry specialist with expertise in authentication and valuation.",
+ image: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=200&h=200&fit=crop&crop=face"
+ }
+ ]);
- render() {
- return (
-
-
-
-
About Vintage Treasures
-
Preserving History, One Treasure at a Time
+ const imageUrls = useMemo(() => {
+ const memberImages = teamMembers.map(member => member.image);
+ const storyImage = "https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?w=500&h=400&fit=crop";
+ return [...memberImages, storyImage];
+ }, [teamMembers]);
+
+ useImagePreloader(imageUrls);
+
+ return (
+
+
+
+
About Vintage Treasures
+
Preserving History, One Treasure at a Time
+
+
+
+
+
+
+
Our Story
+
+ Founded in 1985 by Eleanor Whitmore, Vintage Treasures began as a small antique shop
+ in the heart of London's Portobello Road. What started as a passion for preserving
+ beautiful objects from the past has grown into one of the world's most respected
+ dealers in authenticated antiques and collectibles.
+
+
+ Over the decades, we have built relationships with collectors, estate executors,
+ and auction houses worldwide, allowing us to offer our clients access to exceptional
+ pieces that rarely come to market. Each item in our collection is carefully vetted
+ for authenticity, condition, and provenance.
+
+
+ Today, Vintage Treasures continues Eleanor's original mission: to connect discerning
+ collectors with authentic pieces that tell the story of human craftsmanship and
+ artistic achievement throughout history.
+
-
+
+

+
+
+
-
-
-
-
Our Story
-
- Founded in 1985 by Eleanor Whitmore, Vintage Treasures began as a small antique shop
- in the heart of London's Portobello Road. What started as a passion for preserving
- beautiful objects from the past has grown into one of the world's most respected
- dealers in authenticated antiques and collectibles.
-
-
- Over the decades, we have built relationships with collectors, estate executors,
- and auction houses worldwide, allowing us to offer our clients access to exceptional
- pieces that rarely come to market. Each item in our collection is carefully vetted
- for authenticity, condition, and provenance.
-
-
- Today, Vintage Treasures continues Eleanor's original mission: to connect discerning
- collectors with authentic pieces that tell the story of human craftsmanship and
- artistic achievement throughout history.
-
+
+
+
Our Mission
+
+
+
๐ Authenticity First
+
Every piece undergoes rigorous authentication by our team of experts and trusted specialists.
+
+
+
๐ Education & Knowledge
+
We believe in sharing knowledge about the history and significance of each piece we offer.
-
-

+
+
๐ Global Reach
+
Connecting collectors worldwide with exceptional pieces from diverse cultures and time periods.
+
+
+
๐ก๏ธ Preservation
+
Ensuring these historical treasures are preserved for future generations to appreciate and study.
-
+
+
-
-
-
Our Mission
-
-
-
๐ Authenticity First
-
Every piece undergoes rigorous authentication by our team of experts and trusted specialists.
-
-
-
๐ Education & Knowledge
-
We believe in sharing knowledge about the history and significance of each piece we offer.
-
-
-
๐ Global Reach
-
Connecting collectors worldwide with exceptional pieces from diverse cultures and time periods.
+
+
+
Meet Our Experts
+
+ {teamMembers.map((member, index) => (
+
+

+
{member.name}
+
{member.title}
+
{member.bio}
-
-
๐ก๏ธ Preservation
-
Ensuring these historical treasures are preserved for future generations to appreciate and study.
-
-
+ ))}
-
+
+
-
-
-
Meet Our Experts
-
- {this.state.teamMembers.map((member, index) => (
-
-

-
{member.name}
-
{member.title}
-
{member.bio}
-
- ))}
+
+
+
Our Authentication Process
+
+
+
1
+
Initial Assessment
+
Every piece is examined for style, materials, construction techniques, and maker's marks.
-
-
-
-
-
-
Our Authentication Process
-
-
-
1
-
Initial Assessment
-
Every piece is examined for style, materials, construction techniques, and maker's marks.
-
-
-
2
-
Expert Evaluation
-
Our specialists research provenance and compare against known examples and references.
-
-
-
3
-
Scientific Analysis
-
When necessary, we employ scientific testing methods to verify age and materials.
-
-
-
4
-
Documentation
-
Complete documentation is prepared, including condition reports and certificates of authenticity.
-
+
+
2
+
Expert Evaluation
+
Our specialists research provenance and compare against known examples and references.
+
+
+
3
+
Scientific Analysis
+
When necessary, we employ scientific testing methods to verify age and materials.
+
+
+
4
+
Documentation
+
Complete documentation is prepared, including condition reports and certificates of authenticity.
-
+
+
-
-
-
Visit Our Showroom
-
-
-
๐ Location
-
- 123 Portobello Road
- Notting Hill, London W11 2DY
- United Kingdom
-
-
-
-
๐ Hours
-
- Monday - Saturday: 10:00 AM - 6:00 PM
- Sunday: 12:00 PM - 5:00 PM
- Appointments available outside hours
-
-
-
-
๐ Contact
-
- Phone: +44 20 7229 8888
- Email: info@vintagetreasures.com
- WhatsApp: +44 7700 900123
-
-
+
+
+
Visit Our Showroom
+
+
+
๐ Location
+
+ 123 Portobello Road
+ Notting Hill, London W11 2DY
+ United Kingdom
+
+
+
+
๐ Hours
+
+ Monday - Saturday: 10:00 AM - 6:00 PM
+ Sunday: 12:00 PM - 5:00 PM
+ Appointments available outside hours
+
+
+
+
๐ Contact
+
+ Phone: +44 20 7229 8888
+ Email: info@vintagetreasures.com
+ WhatsApp: +44 7700 900123
+
-
+
+
-
-
-
Professional Affiliations
-
-
-
LAPADA
-
Association of Art & Antique Dealers
-
-
-
CINOA
-
International Confederation of Art & Antique Dealers
-
-
-
BADA
-
British Antique Dealers' Association
-
-
-
AAA
-
Antiquarian Appraisers Association
-
+
+
+
Professional Affiliations
+
+
+
LAPADA
+
Association of Art & Antique Dealers
+
+
+
CINOA
+
International Confederation of Art & Antique Dealers
+
+
+
BADA
+
British Antique Dealers' Association
+
+
+
AAA
+
Antiquarian Appraisers Association
-
-
- );
- }
-}
+
+
+
+ );
+});
export default About;
diff --git a/src/pages/ArtDecor.js b/src/pages/ArtDecor.js
index bcfe5f7..baeb6a0 100644
--- a/src/pages/ArtDecor.js
+++ b/src/pages/ArtDecor.js
@@ -1,200 +1,198 @@
-import React, { Component } from 'react';
+import React, { useState, memo, useMemo } from 'react';
import ProductCard from '../components/ProductCard';
+import { useImagePreloader, extractImageUrls } from '../utils/imagePreloader';
-class ArtDecor extends Component {
- constructor(props) {
- super(props);
- this.state = {
- artProducts: [
- {
- id: 3,
- name: "Ming Dynasty Porcelain Vase",
- era: "Ming Dynasty (16th Century)",
- description: "Rare blue and white porcelain vase with traditional dragon motifs.",
- price: 8500,
- condition: "Good",
- origin: "China",
- image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "art"
- },
- {
- id: 15,
- name: "Japanese Woodblock Print",
- era: "Edo Period (1800s)",
- description: "Original ukiyo-e print by renowned artist, depicting Mount Fuji in cherry blossom season.",
- price: 3200,
- condition: "Very Good",
- origin: "Japan",
- image: "https://images.unsplash.com/photo-1541961017774-22349e4a1262?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "art"
- },
- {
- id: 16,
- name: "French Bronze Sculpture",
- era: "Belle รpoque (1890s)",
- description: "Elegant bronze figurine of a dancer, signed by the artist with original patina.",
- price: 4800,
- condition: "Excellent",
- origin: "France",
- image: "https://images.unsplash.com/photo-1594736797933-d0401ba2fe65?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "art"
- },
- {
- id: 17,
- name: "Persian Miniature Painting",
- era: "Safavid Period (17th Century)",
- description: "Exquisite hand-painted miniature depicting a royal hunting scene with gold leaf details.",
- price: 6200,
- condition: "Very Good",
- origin: "Persia",
- image: "https://images.unsplash.com/photo-1578321272176-b7bbc0679853?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "art"
- },
- {
- id: 18,
- name: "Venetian Glass Chandelier",
- era: "Murano Glass (1920s)",
- description: "Stunning Murano glass chandelier with hand-blown flowers and crystal drops.",
- price: 5600,
- condition: "Excellent",
- origin: "Italy",
- image: "https://images.unsplash.com/photo-1513506003901-1e6a229e2d15?w=400&h=300&fit=crop",
- inStock: false,
- isRare: true,
- category: "art"
- },
- {
- id: 19,
- name: "Art Nouveau Stained Glass Panel",
- era: "Art Nouveau (1905)",
- description: "Beautiful stained glass window panel featuring iris flowers in the Tiffany style.",
- price: 3800,
- condition: "Good",
- origin: "USA",
- image: "https://images.unsplash.com/photo-1551698618-1dfe5d97d256?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "art"
- }
- ]
- };
- }
+const ArtDecor = memo(({ onAddToCart }) => {
+ const [artProducts] = useState([
+ {
+ id: 3,
+ name: "Ming Dynasty Porcelain Vase",
+ era: "Ming Dynasty (16th Century)",
+ description: "Rare blue and white porcelain vase with traditional dragon motifs.",
+ price: 8500,
+ condition: "Good",
+ origin: "China",
+ image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "art"
+ },
+ {
+ id: 15,
+ name: "Japanese Woodblock Print",
+ era: "Edo Period (1800s)",
+ description: "Original ukiyo-e print by renowned artist, depicting Mount Fuji in cherry blossom season.",
+ price: 3200,
+ condition: "Very Good",
+ origin: "Japan",
+ image: "https://images.unsplash.com/photo-1541961017774-22349e4a1262?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "art"
+ },
+ {
+ id: 16,
+ name: "French Bronze Sculpture",
+ era: "Belle รpoque (1890s)",
+ description: "Elegant bronze figurine of a dancer, signed by the artist with original patina.",
+ price: 4800,
+ condition: "Excellent",
+ origin: "France",
+ image: "https://images.unsplash.com/photo-1594736797933-d0401ba2fe65?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "art"
+ },
+ {
+ id: 17,
+ name: "Persian Miniature Painting",
+ era: "Safavid Period (17th Century)",
+ description: "Exquisite hand-painted miniature depicting a royal hunting scene with gold leaf details.",
+ price: 6200,
+ condition: "Very Good",
+ origin: "Persia",
+ image: "https://images.unsplash.com/photo-1578321272176-b7bbc0679853?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "art"
+ },
+ {
+ id: 18,
+ name: "Venetian Glass Chandelier",
+ era: "Murano Glass (1920s)",
+ description: "Stunning Murano glass chandelier with hand-blown flowers and crystal drops.",
+ price: 5600,
+ condition: "Excellent",
+ origin: "Italy",
+ image: "https://images.unsplash.com/photo-1513506003901-1e6a229e2d15?w=400&h=300&fit=crop",
+ inStock: false,
+ isRare: true,
+ category: "art"
+ },
+ {
+ id: 19,
+ name: "Art Nouveau Stained Glass Panel",
+ era: "Art Nouveau (1905)",
+ description: "Beautiful stained glass window panel featuring iris flowers in the Tiffany style.",
+ price: 3800,
+ condition: "Good",
+ origin: "USA",
+ image: "https://images.unsplash.com/photo-1551698618-1dfe5d97d256?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "art"
+ }
+ ]);
- render() {
- const { onAddToCart } = this.props;
+ const imageUrls = useMemo(() => {
+ return extractImageUrls(artProducts);
+ }, [artProducts]);
- return (
-
-
-
-
Art & Decorative Objects
-
Masterpieces that transform spaces and inspire souls
-
- Our art and decorative objects collection spans cultures and centuries, featuring
- everything from ancient ceramics to Art Nouveau stained glass. Each piece has been
- selected for its artistic merit, historical significance, and ability to enhance
- any living space with beauty and character.
-
-
-
+ useImagePreloader(imageUrls);
+
+ return (
+
+
+
+
Art & Decorative Objects
+
Masterpieces that transform spaces and inspire souls
+
+ Our art and decorative objects collection spans cultures and centuries, featuring
+ everything from ancient ceramics to Art Nouveau stained glass. Each piece has been
+ selected for its artistic merit, historical significance, and ability to enhance
+ any living space with beauty and character.
+
+
+
-
-
-
Artistic Traditions
-
-
-
Asian Art
-
Porcelain, woodblock prints, and traditional paintings from China and Japan
-
-
-
European Decorative Arts
-
Sculptures, glass work, and decorative objects from European masters
-
-
-
Islamic Art
-
Miniature paintings, calligraphy, and decorative metalwork
-
-
-
Art Glass
-
Tiffany, Murano, and other fine art glass pieces
-
+
+
+
Artistic Traditions
+
+
+
Asian Art
+
Porcelain, woodblock prints, and traditional paintings from China and Japan
+
+
+
European Decorative Arts
+
Sculptures, glass work, and decorative objects from European masters
+
+
+
Islamic Art
+
Miniature paintings, calligraphy, and decorative metalwork
+
+
+
Art Glass
+
Tiffany, Murano, and other fine art glass pieces
-
+
+
-
-
-
Available Art & Decor
-
- {this.state.artProducts.map(product => (
-
- ))}
-
+
+
+
Available Art & Decor
+
+ {artProducts.map(product => (
+
+ ))}
-
+
+
-
-
-
Building Your Art Collection
-
-
-
๐จ Start with What You Love
-
Choose pieces that speak to you personally rather than following trends.
-
-
-
๐ Research and Learn
-
Understanding the history and context enhances appreciation and value.
-
-
-
๐ Condition Matters
-
Consider restoration costs and how condition affects both beauty and value.
-
-
-
๐๏ธ Provenance is Key
-
Documentation of ownership history adds authenticity and value.
-
+
+
+
Building Your Art Collection
+
+
+
๐จ Start with What You Love
+
Choose pieces that speak to you personally rather than following trends.
+
+
+
๐ Research and Learn
+
Understanding the history and context enhances appreciation and value.
+
+
+
๐ Condition Matters
+
Consider restoration costs and how condition affects both beauty and value.
+
+
+
๐๏ธ Provenance is Key
+
Documentation of ownership history adds authenticity and value.
-
+
+
-
-
-
Displaying Your Collection
-
-
-
๐ก Proper Lighting
-
Use UV-filtered lighting to protect artworks while showcasing their beauty.
-
-
-
๐ก๏ธ Climate Control
-
Maintain stable temperature and humidity to preserve delicate materials.
-
-
-
๐ผ๏ธ Professional Framing
-
Use archival materials and proper mounting techniques for works on paper.
-
-
-
๐ Security Considerations
-
Protect valuable pieces with appropriate security measures and insurance.
-
+
+
+
Displaying Your Collection
+
+
+
๐ก Proper Lighting
+
Use UV-filtered lighting to protect artworks while showcasing their beauty.
+
+
+
๐ก๏ธ Climate Control
+
Maintain stable temperature and humidity to preserve delicate materials.
+
+
+
๐ผ๏ธ Professional Framing
+
Use archival materials and proper mounting techniques for works on paper.
+
+
+
๐ Security Considerations
+
Protect valuable pieces with appropriate security measures and insurance.
-
-
- );
- }
-}
+
+
+
+ );
+});
export default ArtDecor;
diff --git a/src/pages/Collectibles.js b/src/pages/Collectibles.js
index fc23a80..ccf10ad 100644
--- a/src/pages/Collectibles.js
+++ b/src/pages/Collectibles.js
@@ -1,200 +1,198 @@
-import React, { Component } from 'react';
+import React, { useState, memo, useMemo } from 'react';
import ProductCard from '../components/ProductCard';
+import { useImagePreloader, extractImageUrls } from '../utils/imagePreloader';
-class Collectibles extends Component {
- constructor(props) {
- super(props);
- this.state = {
- collectiblesProducts: [
- {
- id: 4,
- name: "Edwardian Silver Tea Set",
- era: "Edwardian Era (1905)",
- description: "Complete sterling silver tea service with ornate engravings and original hallmarks.",
- price: 1200,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1544787219-7f47ccb76574?w=400&h=300&fit=crop",
- inStock: false,
- isRare: false,
- category: "collectibles"
- },
- {
- id: 20,
- name: "Vintage Pocket Watch",
- era: "Railroad Era (1920s)",
- description: "Hamilton Railway Special pocket watch with 21 jewels, original case and chain.",
- price: 850,
- condition: "Very Good",
- origin: "USA",
- image: "https://images.unsplash.com/photo-1509048191080-d2e2678e67b4?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "collectibles"
- },
- {
- id: 21,
- name: "Royal Doulton Figurine",
- era: "Mid-Century (1950s)",
- description: "Limited edition Royal Doulton figurine 'The Balloon Man' in perfect condition.",
- price: 320,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "collectibles"
- },
- {
- id: 22,
- name: "Antique Compass Set",
- era: "Victorian Era (1880s)",
- description: "Brass maritime compass in original mahogany box with nautical instruments.",
- price: 680,
- condition: "Good",
- origin: "England",
- image: "https://images.unsplash.com/photo-1551698618-1dfe5d97d256?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "collectibles"
- },
- {
- id: 23,
- name: "Vintage Camera Collection",
- era: "Mid-Century (1940s)",
- description: "Leica IIIf rangefinder camera with original leather case and multiple lenses.",
- price: 1450,
- condition: "Very Good",
- origin: "Germany",
- image: "https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "collectibles"
- },
- {
- id: 24,
- name: "Antique Map Collection",
- era: "Colonial Period (1750s)",
- description: "Hand-colored engraved maps of the American colonies, professionally framed.",
- price: 2200,
- condition: "Good",
- origin: "England",
- image: "https://images.unsplash.com/photo-1578321272176-b7bbc0679853?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "collectibles"
- }
- ]
- };
- }
+const Collectibles = memo(({ onAddToCart }) => {
+ const [collectiblesProducts] = useState([
+ {
+ id: 4,
+ name: "Edwardian Silver Tea Set",
+ era: "Edwardian Era (1905)",
+ description: "Complete sterling silver tea service with ornate engravings and original hallmarks.",
+ price: 1200,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1544787219-7f47ccb76574?w=400&h=300&fit=crop",
+ inStock: false,
+ isRare: false,
+ category: "collectibles"
+ },
+ {
+ id: 20,
+ name: "Vintage Pocket Watch",
+ era: "Railroad Era (1920s)",
+ description: "Hamilton Railway Special pocket watch with 21 jewels, original case and chain.",
+ price: 850,
+ condition: "Very Good",
+ origin: "USA",
+ image: "https://images.unsplash.com/photo-1509048191080-d2e2678e67b4?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "collectibles"
+ },
+ {
+ id: 21,
+ name: "Royal Doulton Figurine",
+ era: "Mid-Century (1950s)",
+ description: "Limited edition Royal Doulton figurine 'The Balloon Man' in perfect condition.",
+ price: 320,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "collectibles"
+ },
+ {
+ id: 22,
+ name: "Antique Compass Set",
+ era: "Victorian Era (1880s)",
+ description: "Brass maritime compass in original mahogany box with nautical instruments.",
+ price: 680,
+ condition: "Good",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1551698618-1dfe5d97d256?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "collectibles"
+ },
+ {
+ id: 23,
+ name: "Vintage Camera Collection",
+ era: "Mid-Century (1940s)",
+ description: "Leica IIIf rangefinder camera with original leather case and multiple lenses.",
+ price: 1450,
+ condition: "Very Good",
+ origin: "Germany",
+ image: "https://images.unsplash.com/photo-1502920917128-1aa500764cbd?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "collectibles"
+ },
+ {
+ id: 24,
+ name: "Antique Map Collection",
+ era: "Colonial Period (1750s)",
+ description: "Hand-colored engraved maps of the American colonies, professionally framed.",
+ price: 2200,
+ condition: "Good",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1578321272176-b7bbc0679853?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "collectibles"
+ }
+ ]);
- render() {
- const { onAddToCart } = this.props;
+ const imageUrls = useMemo(() => {
+ return extractImageUrls(collectiblesProducts);
+ }, [collectiblesProducts]);
- return (
-
-
-
-
Collectibles & Curiosities
-
Unique treasures for the discerning collector
-
- Our collectibles section features an eclectic mix of fascinating objects that tell
- stories of human ingenuity and craftsmanship. From precision timepieces to scientific
- instruments, each piece represents a moment in history and a testament to the artisans
- who created them.
-
-
-
+ useImagePreloader(imageUrls);
+
+ return (
+
+
+
+
Collectibles & Curiosities
+
Unique treasures for the discerning collector
+
+ Our collectibles section features an eclectic mix of fascinating objects that tell
+ stories of human ingenuity and craftsmanship. From precision timepieces to scientific
+ instruments, each piece represents a moment in history and a testament to the artisans
+ who created them.
+
+
+
-
-
-
Collecting Categories
-
-
-
Timepieces
-
Pocket watches, clocks, and chronometers from renowned makers
-
-
-
Scientific Instruments
-
Compasses, telescopes, and navigational tools from maritime history
-
-
-
Silver & Metalwork
-
Tea services, serving pieces, and decorative metalwork
-
-
-
Vintage Technology
-
Cameras, radios, and early technological innovations
-
+
+
+
Collecting Categories
+
+
+
Timepieces
+
Pocket watches, clocks, and chronometers from renowned makers
+
+
+
Scientific Instruments
+
Compasses, telescopes, and navigational tools from maritime history
+
+
+
Silver & Metalwork
+
Tea services, serving pieces, and decorative metalwork
+
+
+
Vintage Technology
+
Cameras, radios, and early technological innovations
-
+
+
-
-
-
Available Collectibles
-
- {this.state.collectiblesProducts.map(product => (
-
- ))}
-
+
+
+
Available Collectibles
+
+ {collectiblesProducts.map(product => (
+
+ ))}
-
+
+
-
-
-
The Art of Collecting
-
-
-
๐ฏ Focus Your Collection
-
Develop expertise in specific areas rather than collecting everything that catches your eye.
-
-
-
๐ Document Everything
-
Keep detailed records of provenance, condition, and any restoration work performed.
-
-
-
๐ Condition is Critical
-
Original condition often matters more than rarity in determining long-term value.
-
-
-
๐ค Build Relationships
-
Connect with other collectors, dealers, and experts in your field of interest.
-
+
+
+
The Art of Collecting
+
+
+
๐ฏ Focus Your Collection
+
Develop expertise in specific areas rather than collecting everything that catches your eye.
+
+
+
๐ Document Everything
+
Keep detailed records of provenance, condition, and any restoration work performed.
+
+
+
๐ Condition is Critical
+
Original condition often matters more than rarity in determining long-term value.
+
+
+
๐ค Build Relationships
+
Connect with other collectors, dealers, and experts in your field of interest.
-
+
+
-
-
-
Collectibles as Investment
-
-
-
๐ Market Research
-
Study market trends and auction results to understand value patterns in your collecting area.
-
-
-
๐ก๏ธ Insurance & Storage
-
Protect your investment with proper insurance coverage and climate-controlled storage.
-
-
-
โฐ Long-term Perspective
-
The best collectibles appreciate over decades, not months or years.
-
-
-
๐ก Buy Quality
-
One exceptional piece often outperforms multiple mediocre items over time.
-
+
+
+
Collectibles as Investment
+
+
+
๐ Market Research
+
Study market trends and auction results to understand value patterns in your collecting area.
+
+
+
๐ก๏ธ Insurance & Storage
+
Protect your investment with proper insurance coverage and climate-controlled storage.
+
+
+
โฐ Long-term Perspective
+
The best collectibles appreciate over decades, not months or years.
+
+
+
๐ก Buy Quality
+
One exceptional piece often outperforms multiple mediocre items over time.
-
-
- );
- }
-}
+
+
+
+ );
+});
export default Collectibles;
diff --git a/src/pages/Furniture.js b/src/pages/Furniture.js
index defaf44..09e7e0e 100644
--- a/src/pages/Furniture.js
+++ b/src/pages/Furniture.js
@@ -1,176 +1,174 @@
-import React, { Component } from 'react';
+import React, { useState, memo, useMemo } from 'react';
import ProductCard from '../components/ProductCard';
+import { useImagePreloader, extractImageUrls } from '../utils/imagePreloader';
-class Furniture extends Component {
- constructor(props) {
- super(props);
- this.state = {
- furnitureProducts: [
- {
- id: 1,
- name: "Victorian Mahogany Writing Desk",
- era: "Victorian Era (1860s)",
- description: "Exquisite mahogany writing desk with intricate brass fittings and secret compartments.",
- price: 2850,
- originalPrice: 3200,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- },
- {
- id: 5,
- name: "Louis XVI Armchair",
- era: "Louis XVI Period (1780s)",
- description: "Authentic French armchair with original silk upholstery and gilded wood frame.",
- price: 4200,
- condition: "Very Good",
- origin: "France",
- image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- },
- {
- id: 7,
- name: "Georgian Dining Table",
- era: "Georgian Period (1820s)",
- description: "Magnificent mahogany dining table that seats 12, with original pedestal base and brass casters.",
- price: 6800,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1549497538-303791108f95?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- },
- {
- id: 8,
- name: "Art Deco Vanity Set",
- era: "Art Deco (1930s)",
- description: "Stunning walnut vanity with matching stool and triple mirror, featuring geometric inlays.",
- price: 3200,
- condition: "Very Good",
- origin: "USA",
- image: "https://images.unsplash.com/photo-1555041469-a586c61ea9bc?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "furniture"
- },
- {
- id: 9,
- name: "Chippendale Bookcase",
- era: "Chippendale Style (1760s)",
- description: "Rare mahogany bookcase with original glass doors and adjustable shelving.",
- price: 5400,
- condition: "Good",
- origin: "England",
- image: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- },
- {
- id: 10,
- name: "Windsor Rocking Chair",
- era: "Colonial Period (1790s)",
- description: "Traditional Windsor rocking chair in original paint with rush seat.",
- price: 1850,
- condition: "Good",
- origin: "USA",
- image: "https://images.unsplash.com/photo-1506439773649-6e0eb8cfb237?w=400&h=300&fit=crop",
- inStock: false,
- isRare: false,
- category: "furniture"
- }
- ]
- };
- }
+const Furniture = memo(({ onAddToCart }) => {
+ const [furnitureProducts] = useState([
+ {
+ id: 1,
+ name: "Victorian Mahogany Writing Desk",
+ era: "Victorian Era (1860s)",
+ description: "Exquisite mahogany writing desk with intricate brass fittings and secret compartments.",
+ price: 2850,
+ originalPrice: 3200,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ },
+ {
+ id: 5,
+ name: "Louis XVI Armchair",
+ era: "Louis XVI Period (1780s)",
+ description: "Authentic French armchair with original silk upholstery and gilded wood frame.",
+ price: 4200,
+ condition: "Very Good",
+ origin: "France",
+ image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ },
+ {
+ id: 7,
+ name: "Georgian Dining Table",
+ era: "Georgian Period (1820s)",
+ description: "Magnificent mahogany dining table that seats 12, with original pedestal base and brass casters.",
+ price: 6800,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1549497538-303791108f95?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ },
+ {
+ id: 8,
+ name: "Art Deco Vanity Set",
+ era: "Art Deco (1930s)",
+ description: "Stunning walnut vanity with matching stool and triple mirror, featuring geometric inlays.",
+ price: 3200,
+ condition: "Very Good",
+ origin: "USA",
+ image: "https://images.unsplash.com/photo-1555041469-a586c61ea9bc?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "furniture"
+ },
+ {
+ id: 9,
+ name: "Chippendale Bookcase",
+ era: "Chippendale Style (1760s)",
+ description: "Rare mahogany bookcase with original glass doors and adjustable shelving.",
+ price: 5400,
+ condition: "Good",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ },
+ {
+ id: 10,
+ name: "Windsor Rocking Chair",
+ era: "Colonial Period (1790s)",
+ description: "Traditional Windsor rocking chair in original paint with rush seat.",
+ price: 1850,
+ condition: "Good",
+ origin: "USA",
+ image: "https://images.unsplash.com/photo-1506439773649-6e0eb8cfb237?w=400&h=300&fit=crop",
+ inStock: false,
+ isRare: false,
+ category: "furniture"
+ }
+ ]);
- render() {
- const { onAddToCart } = this.props;
+ const imageUrls = useMemo(() => {
+ return extractImageUrls(furnitureProducts);
+ }, [furnitureProducts]);
- return (
-
-
-
-
Antique Furniture Collection
-
Timeless pieces that bring history into your home
-
- Our furniture collection spans centuries of craftsmanship, from elegant Victorian
- writing desks to sturdy Colonial chairs. Each piece has been carefully selected
- for its historical significance, quality construction, and enduring beauty.
-
-
-
+ useImagePreloader(imageUrls);
+
+ return (
+
+
+
+
Antique Furniture Collection
+
Timeless pieces that bring history into your home
+
+ Our furniture collection spans centuries of craftsmanship, from elegant Victorian
+ writing desks to sturdy Colonial chairs. Each piece has been carefully selected
+ for its historical significance, quality construction, and enduring beauty.
+
+
+
-
-
-
Browse by Style
-
-
-
Victorian Era
-
Ornate designs with rich woods and intricate details
-
-
-
Georgian Period
-
Elegant proportions and classical influences
-
-
-
Art Deco
-
Geometric patterns and luxurious materials
-
-
-
Colonial American
-
Functional designs with rustic charm
-
+
+
+
Browse by Style
+
+
+
Victorian Era
+
Ornate designs with rich woods and intricate details
+
+
+
Georgian Period
+
Elegant proportions and classical influences
+
+
+
Art Deco
+
Geometric patterns and luxurious materials
+
+
+
Colonial American
+
Functional designs with rustic charm
-
+
+
-
-
-
Available Furniture
-
- {this.state.furnitureProducts.map(product => (
-
- ))}
-
+
+
+
Available Furniture
+
+ {furnitureProducts.map(product => (
+
+ ))}
-
+
+
-
-
-
Caring for Your Antique Furniture
-
-
-
๐ก๏ธ Climate Control
-
Maintain stable temperature and humidity to prevent wood movement and cracking.
-
-
-
โ๏ธ Light Protection
-
Keep furniture away from direct sunlight to prevent fading and wood damage.
-
-
-
๐งฝ Gentle Cleaning
-
Use appropriate wood cleaners and soft cloths to maintain the original finish.
-
-
-
๐ง Professional Restoration
-
Consult experts for any repairs to preserve historical value and integrity.
-
+
+
+
Caring for Your Antique Furniture
+
+
+
๐ก๏ธ Climate Control
+
Maintain stable temperature and humidity to prevent wood movement and cracking.
+
+
+
โ๏ธ Light Protection
+
Keep furniture away from direct sunlight to prevent fading and wood damage.
+
+
+
๐งฝ Gentle Cleaning
+
Use appropriate wood cleaners and soft cloths to maintain the original finish.
+
+
+
๐ง Professional Restoration
+
Consult experts for any repairs to preserve historical value and integrity.
-
-
- );
- }
-}
+
+
+
+ );
+});
export default Furniture;
diff --git a/src/pages/Home.js b/src/pages/Home.js
index a72dfa4..b585eca 100644
--- a/src/pages/Home.js
+++ b/src/pages/Home.js
@@ -1,159 +1,167 @@
-import React, { Component } from 'react';
+import React, { useState, useCallback, memo, useMemo } from 'react';
import ProductCard from '../components/ProductCard';
+import { useImagePreloader, extractImageUrls } from '../utils/imagePreloader';
-class Home extends Component {
- constructor(props) {
- super(props);
- this.state = {
- featuredProducts: [
- {
- id: 1,
- name: "Victorian Mahogany Writing Desk",
- era: "Victorian Era (1860s)",
- description: "Exquisite mahogany writing desk with intricate brass fittings and secret compartments.",
- price: 2850,
- originalPrice: 3200,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- },
- {
- id: 3,
- name: "Ming Dynasty Porcelain Vase",
- era: "Ming Dynasty (16th Century)",
- description: "Rare blue and white porcelain vase with traditional dragon motifs.",
- price: 8500,
- condition: "Good",
- origin: "China",
- image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "art"
- },
- {
- id: 5,
- name: "Louis XVI Armchair",
- era: "Louis XVI Period (1780s)",
- description: "Authentic French armchair with original silk upholstery and gilded wood frame.",
- price: 4200,
- condition: "Very Good",
- origin: "France",
- image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "furniture"
- }
- ]
- };
- }
+const Home = memo(({ onAddToCart, onNavigate }) => {
+ const [featuredProducts] = useState([
+ {
+ id: 1,
+ name: "Victorian Mahogany Writing Desk",
+ era: "Victorian Era (1860s)",
+ description: "Exquisite mahogany writing desk with intricate brass fittings and secret compartments.",
+ price: 2850,
+ originalPrice: 3200,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ },
+ {
+ id: 3,
+ name: "Ming Dynasty Porcelain Vase",
+ era: "Ming Dynasty (16th Century)",
+ description: "Rare blue and white porcelain vase with traditional dragon motifs.",
+ price: 8500,
+ condition: "Good",
+ origin: "China",
+ image: "https://images.unsplash.com/photo-1578662996442-48f60103fc96?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "art"
+ },
+ {
+ id: 5,
+ name: "Louis XVI Armchair",
+ era: "Louis XVI Period (1780s)",
+ description: "Authentic French armchair with original silk upholstery and gilded wood frame.",
+ price: 4200,
+ condition: "Very Good",
+ origin: "France",
+ image: "https://images.unsplash.com/photo-1586023492125-27b2c045efd7?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "furniture"
+ }
+ ]);
- render() {
- const { onAddToCart } = this.props;
+ const handleExploreClick = useCallback(() => {
+ onNavigate('products');
+ }, [onNavigate]);
- return (
-
-
-
-
Welcome to Vintage Treasures
-
Discover Authentic Antiques & Timeless Collectibles
-
- Step into a world where history meets elegance. Our carefully curated collection
- features authentic antiques from around the globe, each piece telling its own
- unique story of craftsmanship and heritage.
-
-
+ const handleViewAllClick = useCallback(() => {
+ onNavigate('products');
+ }, [onNavigate]);
+
+ const imageUrls = useMemo(() => {
+ const productImages = extractImageUrls(featuredProducts);
+ const heroImage = "https://images.unsplash.com/photo-1513475382585-d06e58bcb0e0?w=600&h=400&fit=crop";
+ return [...productImages, heroImage];
+ }, [featuredProducts]);
+
+ useImagePreloader(imageUrls);
+
+ return (
+
+
+
+
Welcome to Vintage Treasures
+
Discover Authentic Antiques & Timeless Collectibles
+
+ Step into a world where history meets elegance. Our carefully curated collection
+ features authentic antiques from around the globe, each piece telling its own
+ unique story of craftsmanship and heritage.
+
+
+
+
+

+
+
+
+
+
+
+
๐บ
+
Authentic Pieces
+
Every item is carefully authenticated and comes with detailed provenance documentation.
-
-

+
+
๐
+
Global Collection
+
Sourced from estate sales, auctions, and private collections worldwide.
-
-
-
-
-
-
๐บ
-
Authentic Pieces
-
Every item is carefully authenticated and comes with detailed provenance documentation.
-
-
-
๐
-
Global Collection
-
Sourced from estate sales, auctions, and private collections worldwide.
-
-
-
๐
-
Expert Curation
-
Our team of antique specialists ensures quality and historical accuracy.
-
-
-
๐
-
Secure Shipping
-
Professional packaging and insured delivery for your precious acquisitions.
-
+
+
๐
+
Expert Curation
+
Our team of antique specialists ensures quality and historical accuracy.
+
+
+
๐
+
Secure Shipping
+
Professional packaging and insured delivery for your precious acquisitions.
-
+
+
-
-
-
Featured Treasures
-
Handpicked exceptional pieces from our collection
-
- {this.state.featuredProducts.map(product => (
-
- ))}
-
-
+
+
+
Featured Treasures
+
Handpicked exceptional pieces from our collection
+
+ {featuredProducts.map(product => (
+
+ ))}
-
+
+
+
-
-
-
What Our Collectors Say
-
-
-
"The quality and authenticity of pieces from Vintage Treasures is unmatched. Each purchase feels like acquiring a piece of history."
-
- Margaret Chen
- Art Collector
-
+
+
+
What Our Collectors Say
+
+
+
"The quality and authenticity of pieces from Vintage Treasures is unmatched. Each purchase feels like acquiring a piece of history."
+
+ Margaret Chen
+ Art Collector
-
-
"I've been collecting antiques for 30 years, and this is my go-to source for exceptional pieces with verified provenance."
-
- Robert Williams
- Antique Enthusiast
-
+
+
+
"I've been collecting antiques for 30 years, and this is my go-to source for exceptional pieces with verified provenance."
+
+ Robert Williams
+ Antique Enthusiast
-
-
"The customer service is outstanding, and the packaging ensures my precious acquisitions arrive in perfect condition."
-
- Elena Rodriguez
- Interior Designer
-
+
+
+
"The customer service is outstanding, and the packaging ensures my precious acquisitions arrive in perfect condition."
+
+ Elena Rodriguez
+ Interior Designer
-
-
- );
- }
-}
+
+
+
+ );
+});
export default Home;
diff --git a/src/pages/Jewelry.js b/src/pages/Jewelry.js
index aa76030..097172a 100644
--- a/src/pages/Jewelry.js
+++ b/src/pages/Jewelry.js
@@ -1,199 +1,197 @@
-import React, { Component } from 'react';
+import React, { useState, memo, useMemo } from 'react';
import ProductCard from '../components/ProductCard';
+import { useImagePreloader, extractImageUrls } from '../utils/imagePreloader';
-class Jewelry extends Component {
- constructor(props) {
- super(props);
- this.state = {
- jewelryProducts: [
- {
- id: 2,
- name: "Art Deco Pearl Necklace",
- era: "Art Deco (1920s)",
- description: "Stunning pearl necklace with geometric platinum clasp, typical of the Art Deco period.",
- price: 1650,
- condition: "Very Good",
- origin: "France",
- image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "jewelry"
- },
- {
- id: 6,
- name: "Victorian Cameo Brooch",
- era: "Victorian Era (1870s)",
- description: "Delicate shell cameo brooch set in 14k gold with intricate detailing.",
- price: 450,
- condition: "Excellent",
- origin: "Italy",
- image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
- inStock: true,
- isRare: false,
- category: "jewelry"
- },
- {
- id: 11,
- name: "Edwardian Diamond Ring",
- era: "Edwardian Era (1910s)",
- description: "Exquisite platinum ring featuring a 2-carat old European cut diamond with milgrain detailing.",
- price: 8900,
- condition: "Excellent",
- origin: "England",
- image: "https://images.unsplash.com/photo-1605100804763-247f67b3557e?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "jewelry"
- },
- {
- id: 12,
- name: "Art Nouveau Pendant",
- era: "Art Nouveau (1900s)",
- description: "Beautiful gold pendant with enamel work depicting flowing botanical motifs.",
- price: 2200,
- condition: "Very Good",
- origin: "France",
- image: "https://images.unsplash.com/photo-1611652022419-a9419f74343d?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "jewelry"
- },
- {
- id: 13,
- name: "Georgian Garnet Bracelet",
- era: "Georgian Period (1820s)",
- description: "Rare Georgian bracelet featuring Bohemian garnets in original gold setting.",
- price: 1800,
- condition: "Good",
- origin: "England",
- image: "https://images.unsplash.com/photo-1573408301185-9146fe634ad0?w=400&h=300&fit=crop",
- inStock: true,
- isRare: true,
- category: "jewelry"
- },
- {
- id: 14,
- name: "Retro Cocktail Earrings",
- era: "Retro Period (1940s)",
- description: "Bold gold and citrine earrings typical of the glamorous 1940s cocktail style.",
- price: 950,
- condition: "Excellent",
- origin: "USA",
- image: "https://images.unsplash.com/photo-1535632066927-ab7c9ab60908?w=400&h=300&fit=crop",
- inStock: false,
- isRare: false,
- category: "jewelry"
- }
- ]
- };
- }
+const Jewelry = memo(({ onAddToCart }) => {
+ const [jewelryProducts] = useState([
+ {
+ id: 2,
+ name: "Art Deco Pearl Necklace",
+ era: "Art Deco (1920s)",
+ description: "Stunning pearl necklace with geometric platinum clasp, typical of the Art Deco period.",
+ price: 1650,
+ condition: "Very Good",
+ origin: "France",
+ image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "jewelry"
+ },
+ {
+ id: 6,
+ name: "Victorian Cameo Brooch",
+ era: "Victorian Era (1870s)",
+ description: "Delicate shell cameo brooch set in 14k gold with intricate detailing.",
+ price: 450,
+ condition: "Excellent",
+ origin: "Italy",
+ image: "https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: false,
+ category: "jewelry"
+ },
+ {
+ id: 11,
+ name: "Edwardian Diamond Ring",
+ era: "Edwardian Era (1910s)",
+ description: "Exquisite platinum ring featuring a 2-carat old European cut diamond with milgrain detailing.",
+ price: 8900,
+ condition: "Excellent",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1605100804763-247f67b3557e?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "jewelry"
+ },
+ {
+ id: 12,
+ name: "Art Nouveau Pendant",
+ era: "Art Nouveau (1900s)",
+ description: "Beautiful gold pendant with enamel work depicting flowing botanical motifs.",
+ price: 2200,
+ condition: "Very Good",
+ origin: "France",
+ image: "https://images.unsplash.com/photo-1611652022419-a9419f74343d?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "jewelry"
+ },
+ {
+ id: 13,
+ name: "Georgian Garnet Bracelet",
+ era: "Georgian Period (1820s)",
+ description: "Rare Georgian bracelet featuring Bohemian garnets in original gold setting.",
+ price: 1800,
+ condition: "Good",
+ origin: "England",
+ image: "https://images.unsplash.com/photo-1573408301185-9146fe634ad0?w=400&h=300&fit=crop",
+ inStock: true,
+ isRare: true,
+ category: "jewelry"
+ },
+ {
+ id: 14,
+ name: "Retro Cocktail Earrings",
+ era: "Retro Period (1940s)",
+ description: "Bold gold and citrine earrings typical of the glamorous 1940s cocktail style.",
+ price: 950,
+ condition: "Excellent",
+ origin: "USA",
+ image: "https://images.unsplash.com/photo-1535632066927-ab7c9ab60908?w=400&h=300&fit=crop",
+ inStock: false,
+ isRare: false,
+ category: "jewelry"
+ }
+ ]);
- render() {
- const { onAddToCart } = this.props;
+ const imageUrls = useMemo(() => {
+ return extractImageUrls(jewelryProducts);
+ }, [jewelryProducts]);
- return (
-
-
-
-
Vintage Jewelry Collection
-
Exquisite pieces that capture the essence of bygone eras
-
- Our jewelry collection features carefully selected pieces from the most celebrated
- periods in jewelry history. From delicate Victorian brooches to bold Art Deco
- necklaces, each piece represents the pinnacle of craftsmanship from its era.
-
-
-
+ useImagePreloader(imageUrls);
+
+ return (
+
+
+
+
Vintage Jewelry Collection
+
Exquisite pieces that capture the essence of bygone eras
+
+ Our jewelry collection features carefully selected pieces from the most celebrated
+ periods in jewelry history. From delicate Victorian brooches to bold Art Deco
+ necklaces, each piece represents the pinnacle of craftsmanship from its era.
+
+
+
-
-
-
Jewelry Through the Ages
-
-
-
Victorian (1837-1901)
-
Romantic designs with intricate details, often featuring cameos and mourning jewelry
-
-
-
Art Nouveau (1890-1910)
-
Nature-inspired motifs with flowing lines and innovative use of materials
-
-
-
Art Deco (1920-1935)
-
Geometric patterns and bold designs reflecting the modern age
-
-
-
Retro (1935-1950)
-
Large, glamorous pieces with colorful gemstones and gold settings
-
+
+
+
Jewelry Through the Ages
+
+
+
Victorian (1837-1901)
+
Romantic designs with intricate details, often featuring cameos and mourning jewelry
+
+
+
Art Nouveau (1890-1910)
+
Nature-inspired motifs with flowing lines and innovative use of materials
+
+
+
Art Deco (1920-1935)
+
Geometric patterns and bold designs reflecting the modern age
+
+
+
Retro (1935-1950)
+
Large, glamorous pieces with colorful gemstones and gold settings
-
+
+
-
-
-
Available Jewelry
-
- {this.state.jewelryProducts.map(product => (
-
- ))}
-
+
+
+
Available Jewelry
+
+ {jewelryProducts.map(product => (
+
+ ))}
-
+
+
-
-
-
Authentication & Certification
-
-
-
๐ Gemstone Analysis
-
All gemstones are professionally evaluated and certified by recognized gemological institutes.
-
-
-
๐ Hallmark Verification
-
Metal purity marks and maker's stamps are verified for authenticity and dating.
-
-
-
๐ Provenance Documentation
-
Complete history and documentation provided with each significant piece.
-
-
-
๐ก๏ธ Insurance Appraisal
-
Professional appraisals available for insurance and estate planning purposes.
-
+
+
+
Authentication & Certification
+
+
+
๐ Gemstone Analysis
+
All gemstones are professionally evaluated and certified by recognized gemological institutes.
+
+
+
๐ Hallmark Verification
+
Metal purity marks and maker's stamps are verified for authenticity and dating.
+
+
+
๐ Provenance Documentation
+
Complete history and documentation provided with each significant piece.
+
+
+
๐ก๏ธ Insurance Appraisal
+
Professional appraisals available for insurance and estate planning purposes.
-
+
+
-
-
-
Caring for Vintage Jewelry
-
-
-
๐งผ Gentle Cleaning
-
Use appropriate cleaning methods for different metals and gemstones.
-
-
-
๐ Proper Storage
-
Store pieces separately in soft pouches to prevent scratching.
-
-
-
๐ง Professional Maintenance
-
Regular check-ups ensure settings remain secure and pieces stay beautiful.
-
-
-
๐ Documentation
-
Keep all certificates and appraisals with your jewelry collection.
-
+
+
+
Caring for Vintage Jewelry
+
+
+
๐งผ Gentle Cleaning
+
Use appropriate cleaning methods for different metals and gemstones.
+
+
+
๐ Proper Storage
+
Store pieces separately in soft pouches to prevent scratching.
+
+
+
๐ง Professional Maintenance
+
Regular check-ups ensure settings remain secure and pieces stay beautiful.
+
+
+
๐ Documentation
+
Keep all certificates and appraisals with your jewelry collection.
-
-
- );
- }
-}
+
+
+
+ );
+});
export default Jewelry;
diff --git a/src/utils/imagePreloader.js b/src/utils/imagePreloader.js
new file mode 100644
index 0000000..ca8fcbd
--- /dev/null
+++ b/src/utils/imagePreloader.js
@@ -0,0 +1,23 @@
+import { useEffect } from 'react';
+
+export const useImagePreloader = (imageUrls) => {
+ useEffect(() => {
+ if (!imageUrls || imageUrls.length === 0) return;
+
+ const preloadImages = imageUrls.map(url => {
+ const img = new Image();
+ img.src = url;
+ return img;
+ });
+
+ return () => {
+ preloadImages.forEach(img => {
+ img.src = '';
+ });
+ };
+ }, [imageUrls]);
+};
+
+export const extractImageUrls = (products) => {
+ return products.map(product => product.image).filter(Boolean);
+};