Merge version_3 into main #5

Merged
bender merged 1 commits from version_3 into main 2026-03-08 08:37:16 +00:00

View File

@@ -2,48 +2,10 @@
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
import HeroOverlay from '@/components/sections/hero/HeroOverlay';
import BlogCardThree from '@/components/sections/blog/BlogCardThree';
import BlogCardTwo from '@/components/sections/blog/BlogCardTwo';
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
import { useState } from 'react';
import { Search } from 'lucide-react';
import Input from '@/components/form/Input';
export default function VideosPage() {
const [searchQuery, setSearchQuery] = useState('');
const [selectedCategory, setSelectedCategory] = useState('all');
const allVideos = [
{
id: "1", category: "French Cuisine", title: "Classic French Techniques", excerpt: "Learn the essential knife skills and techniques used by professional chefs in French cuisine. Master julienne, brunoise, and chiffonade cuts.", imageSrc: "http://img.b2bpic.net/free-photo/chef-preparing-dish_23-2148241892.jpg", imageAlt: "Chef preparing French dish", authorName: "Chef Marie Dubois", authorAvatar: "http://img.b2bpic.net/free-photo/woman-smiles-toothily-keeps-palms-pressed-together-looks-away-joyfully-wears-casual-t-shirt-isolated-beige-copy-space-away-positive-emotions-concept_273609-56517.jpg", date: "Jan 20, 2025"
},
{
id: "2", category: "Mediterranean", title: "Mediterranean Summer Salad", excerpt: "Discover how to prepare fresh, vibrant Mediterranean dishes with seasonal ingredients. Fresh vegetables, feta, and olive oil combinations.", imageSrc: "http://img.b2bpic.net/free-photo/food-photography-salad_23-2148241893.jpg", imageAlt: "Mediterranean salad", authorName: "Chef Antonio Rivera", authorAvatar: "http://img.b2bpic.net/free-photo/young-beautiful-woman-having-online-meeting_23-2149116347.jpg", date: "Jan 18, 2025"
},
{
id: "3", category: "Baking", title: "Artisan Bread Making", excerpt: "Master the art of baking traditional sourdough bread with proper fermentation techniques. Create perfect crusts and fluffy interiors.", imageSrc: "http://img.b2bpic.net/free-photo/baking-bread_23-2148241894.jpg", imageAlt: "Artisan bread", authorName: "Chef Sophie Laurent", authorAvatar: "http://img.b2bpic.net/free-photo/young-women-polishing-nails-bed_23-2147770248.jpg", date: "Jan 15, 2025"
},
{
id: "4", category: "Asian Cuisine", title: "Wok Mastery for Beginners", excerpt: "Learn the fundamentals of wok cooking including proper heat management and ingredient timing for authentic Asian flavors.", imageSrc: "http://img.b2bpic.net/free-photo/cooking-asian-food_23-2148241895.jpg", imageAlt: "Asian wok cooking", authorName: "Chef Lin Chen", authorAvatar: "http://img.b2bpic.net/free-photo/close-perfection-closeup-peaceful-relaxed-redhead-happy-woman-closed-eyes-pure-delighted-smile-sh_1258-139766.jpg", date: "Jan 12, 2025"
},
{
id: "5", category: "Desserts", title: "Chocolate Tempering Secrets", excerpt: "Unlock the secrets of professional chocolate tempering for glossy, smooth finishes on your desserts and confections.", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-dessert_23-2148241896.jpg", imageAlt: "Chocolate tempering", authorName: "Chef Laurent Petit", authorAvatar: "http://img.b2bpic.net/free-photo/woman-smiles-toothily-keeps-palms-pressed-together-looks-away-joyfully-wears-casual-t-shirt-isolated-beige-copy-space-away-positive-emotions-concept_273609-56517.jpg", date: "Jan 10, 2025"
},
{
id: "6", category: "French Cuisine", title: "Perfect Béarnaise Sauce", excerpt: "Create the classic French béarnaise sauce from scratch with proper emulsification techniques and flavor balancing.", imageSrc: "http://img.b2bpic.net/free-photo/sauce-preparation_23-2148241897.jpg", imageAlt: "Béarnaise sauce", authorName: "Chef Marie Dubois", authorAvatar: "http://img.b2bpic.net/free-photo/woman-smiles-toothily-keeps-palms-pressed-together-looks-away-joyfully-wears-casual-t-shirt-isolated-beige-copy-space-away-positive-emotions-concept_273609-56517.jpg", date: "Jan 8, 2025"
}
];
const categories = ['all', 'French Cuisine', 'Mediterranean', 'Baking', 'Asian Cuisine', 'Desserts'];
const filteredVideos = allVideos.filter(video => {
const matchesSearch = video.title.toLowerCase().includes(searchQuery.toLowerCase()) ||
video.excerpt.toLowerCase().includes(searchQuery.toLowerCase()) ||
video.authorName.toLowerCase().includes(searchQuery.toLowerCase());
const matchesCategory = selectedCategory === 'all' || video.category === selectedCategory;
return matchesSearch && matchesCategory;
});
return (
<ThemeProvider
defaultButtonVariant="hover-bubble"
@@ -60,111 +22,64 @@ export default function VideosPage() {
<div id="nav" data-section="nav">
<NavbarStyleCentered
navItems={[
{ name: "Home", id: "/" },
{ name: "About", id: "#about" },
{ name: "Products", id: "#products" },
{ name: "Features", id: "#features" },
{ name: "Contact", id: "#contact" }
{ name: "About", id: "about" },
{ name: "Products", id: "products" },
{ name: "Features", id: "features" },
{ name: "Reviews", id: "testimonials" },
{ name: "Contact", id: "contact" }
]}
button={{ text: "Shop Now", href: "/" }}
brandName="Lumière Skin"
button={{ text: "Shop Now", href: "products" }}
brandName="Food Homes"
/>
</div>
<div id="hero" data-section="hero">
<HeroOverlay
title="Cooking Videos & Tutorials"
description="Explore our collection of culinary expertise from world-class chefs. Learn techniques, recipes, and cooking secrets."
tag="Video Gallery"
textPosition="center"
showDimOverlay={true}
buttons={[
{ text: "Browse Videos", href: "#videos" }
<div id="blog" data-section="blog">
<BlogCardTwo
blogs={[
{
id: "1", category: "Recipe", title: "How to Prepare the Perfect Grilled Salmon", excerpt: "Learn the secrets to preparing restaurant-quality grilled salmon at home with our step-by-step guide.", imageSrc: "http://img.b2bpic.net/free-photo/make-up-concept-with-pink-nail-polish_23-2149030370.jpg", imageAlt: "Grilled Salmon", authorName: "Chef Maria", authorAvatar: "http://img.b2bpic.net/free-photo/woman-smiles-toothily-keeps-palms-pressed-together-looks-away-joyfully-wears-casual-t-shirt-isolated-beige-copy-space-away-positive-emotions-concept_273609-56517.jpg", date: "15 Jan 2025"
},
{
id: "2", category: "Nutrition", title: "The Benefits of Eating Fresh, Local Ingredients", excerpt: "Discover why locally-sourced ingredients are better for your health and the environment.", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-hands-holding-body-care-product-wooden-background_23-2148241876.jpg", imageAlt: "Fresh Ingredients", authorName: "Dr. James", authorAvatar: "http://img.b2bpic.net/free-photo/young-beautiful-woman-having-online-meeting_23-2149116347.jpg", date: "12 Jan 2025"
},
{
id: "3", category: "Lifestyle", title: "Meal Planning Tips for Busy Professionals", excerpt: "Simplify your week with our practical meal planning strategies that save time and reduce stress.", imageSrc: "http://img.b2bpic.net/free-photo/product-branding-packaging_23-2150965833.jpg", imageAlt: "Meal Planning", authorName: "Sarah Chen", authorAvatar: "http://img.b2bpic.net/free-photo/young-women-polishing-nails-bed_23-2147770248.jpg", date: "10 Jan 2025"
}
]}
imageSrc="http://img.b2bpic.net/free-photo/chef-preparing-dish_23-2148241892.jpg"
imageAlt="Professional chef cooking"
title="Featured Food Articles"
description="Read our latest insights about food, nutrition, and culinary experiences."
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
carouselMode="buttons"
/>
</div>
<div id="filters" data-section="filters" className="relative py-20 px-4">
<div className="max-w-4xl mx-auto">
<div className="mb-8">
<h2 className="text-3xl font-bold mb-4">Search & Filter Videos</h2>
<div className="flex flex-col gap-4">
<div className="flex gap-2">
<Search className="w-5 h-5 opacity-50 self-center" />
<Input
value={searchQuery}
onChange={setSearchQuery}
placeholder="Search by title, chef name, or topic..."
type="text"
/>
</div>
<div className="flex flex-wrap gap-2">
{categories.map(category => (
<button
key={category}
onClick={() => setSelectedCategory(category)}
className={`px-4 py-2 rounded-full transition ${
selectedCategory === category
? 'bg-primary-cta text-white'
: 'bg-secondary-cta/30 hover:bg-secondary-cta/50'
}`}
>
{category.charAt(0).toUpperCase() + category.slice(1)}
</button>
))}
</div>
<p className="text-sm opacity-75">Found {filteredVideos.length} video{filteredVideos.length !== 1 ? 's' : ''}</p>
</div>
</div>
</div>
</div>
<div id="videos" data-section="videos">
{filteredVideos.length > 0 ? (
<BlogCardThree
blogs={filteredVideos}
title="Featured Cooking Videos"
description="Watch expert chefs share their culinary techniques and recipes in our video gallery."
gridVariant="three-columns-all-equal-width"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
tag="Videos"
/>
) : (
<div className="py-20 text-center">
<p className="text-xl opacity-75">No videos found matching your search. Try different keywords or categories.</p>
</div>
)}
</div>
<div id="footer" data-section="footer">
<FooterBaseCard
logoText="Lumière Skin"
logoText="Food Homes"
columns={[
{
title: "Shop", items: [
{ label: "All Products", href: "/#products" },
{ label: "Skincare Routine", href: "/#products" },
{ label: "Collections", href: "/#products" },
{ label: "Gift Sets", href: "/#products" }
title: "Menu", items: [
{ label: "All Items", href: "#products" },
{ label: "Specials", href: "#products" },
{ label: "Meal Plans", href: "#products" },
{ label: "Catering", href: "#products" }
]
},
{
title: "Company", items: [
{ label: "About Us", href: "/#about" },
{ label: "Our Story", href: "/#about" },
{ label: "About Us", href: "#about" },
{ label: "Our Story", href: "#about" },
{ label: "Sustainability", href: "#" },
{ label: "Careers", href: "#" }
]
},
{
title: "Support", items: [
{ label: "Contact Us", href: "/#contact" },
{ label: "FAQ", href: "/#faq" },
{ label: "Shipping Info", href: "#" },
{ label: "Contact Us", href: "#contact" },
{ label: "FAQ", href: "#faq" },
{ label: "Delivery Info", href: "#" },
{ label: "Returns", href: "#" }
]
},
@@ -172,12 +87,12 @@ export default function VideosPage() {
title: "Connect", items: [
{ label: "Instagram", href: "https://instagram.com" },
{ label: "Facebook", href: "https://facebook.com" },
{ label: "Pinterest", href: "https://pinterest.com" },
{ label: "Twitter", href: "https://twitter.com" },
{ label: "TikTok", href: "https://tiktok.com" }
]
}
]}
copyrightText="© 2025 Lumière Skin. All rights reserved."
copyrightText="© 2025 Food Homes. All rights reserved."
/>
</div>
</ThemeProvider>