Merge version_2 into main #1

Merged
development merged 3 commits from version_2 into main 2026-01-27 15:22:43 +00:00
3 changed files with 27 additions and 26 deletions

View File

@@ -23,16 +23,16 @@ type BlogPost = {
const defaultPosts: BlogPost[] = [
{
id: "1", category: "Design", title: "UX review presentations", excerpt: "How do you create compelling presentations that wow your colleagues and impress your managers?", imageSrc: "/placeholders/placeholder3.avif", imageAlt: "Abstract design with purple and silver tones", authorName: "Olivia Rhye", authorAvatar: "/placeholders/placeholder3.avif", date: "20 Jan 2025", onBlogClick: () => console.log("Blog 1 clicked"),
id: "1", category: "Design", title: "UX review presentations", excerpt: "How do you create compelling presentations that wow your colleagues and impress your managers?", imageSrc: "https://images.unsplash.com/photo-1561070791-2526d30994b5?w=600&h=400&fit=crop", imageAlt: "Abstract design with purple and silver tones", authorName: "Olivia Rhye", authorAvatar: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100&h=100&fit=crop", date: "20 Jan 2025", onBlogClick: () => console.log("Blog 1 clicked"),
},
{
id: "2", category: "Development", title: "Building scalable applications", excerpt: "Learn the best practices for building applications that can handle millions of users.", imageSrc: "/placeholders/placeholder4.webp", imageAlt: "Development workspace", authorName: "John Smith", authorAvatar: "/placeholders/placeholder4.webp", date: "18 Jan 2025", onBlogClick: () => console.log("Blog 2 clicked"),
id: "2", category: "Development", title: "Building scalable applications", excerpt: "Learn the best practices for building applications that can handle millions of users.", imageSrc: "https://images.unsplash.com/photo-1517694712202-14dd9538aa97?w=600&h=400&fit=crop", imageAlt: "Development workspace", authorName: "John Smith", authorAvatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop", date: "18 Jan 2025", onBlogClick: () => console.log("Blog 2 clicked"),
},
{
id: "3", category: "Marketing", title: "Content strategy essentials", excerpt: "Discover how to create a content strategy that drives engagement and conversions.", imageSrc: "/placeholders/placeholder3.avif", imageAlt: "Marketing strategy board", authorName: "Sarah Johnson", authorAvatar: "/placeholders/placeholder3.avif", date: "15 Jan 2025", onBlogClick: () => console.log("Blog 3 clicked"),
id: "3", category: "Marketing", title: "Content strategy essentials", excerpt: "Discover how to create a content strategy that drives engagement and conversions.", imageSrc: "https://images.unsplash.com/photo-1552664730-d307ca884978?w=600&h=400&fit=crop", imageAlt: "Marketing strategy board", authorName: "Sarah Johnson", authorAvatar: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=100&h=100&fit=crop", date: "15 Jan 2025", onBlogClick: () => console.log("Blog 3 clicked"),
},
{
id: "4", category: "Product", title: "Product management 101", excerpt: "Everything you need to know to become an effective product manager in 2025.", imageSrc: "/placeholders/placeholder4.webp", imageAlt: "Product planning session", authorName: "Mike Davis", authorAvatar: "/placeholders/placeholder4.webp", date: "12 Jan 2025", onBlogClick: () => console.log("Blog 4 clicked"),
id: "4", category: "Product", title: "Product management 101", excerpt: "Everything you need to know to become an effective product manager in 2025.", imageSrc: "https://images.unsplash.com/photo-1552664730-d307ca884978?w=600&h=400&fit=crop", imageAlt: "Product planning session", authorName: "Mike Davis", authorAvatar: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&h=100&fit=crop", date: "12 Jan 2025", onBlogClick: () => console.log("Blog 4 clicked"),
},
];
@@ -79,7 +79,8 @@ export default function BlogPage() {
const url = `${apiUrl}/posts/${projectId}?status=published`;
const response = await fetch(url, {
method: "GET", headers: {
"Content-Type": "application/json"},
"Content-Type": "application/json"
},
});
if (response.ok) {
@@ -88,7 +89,7 @@ export default function BlogPage() {
if (Array.isArray(data) && data.length > 0) {
const mappedPosts = data.map((post: any) => ({
id: post.id || String(Math.random()),
category: post.category || "General", title: post.title || "Untitled", excerpt: post.excerpt || post.content.slice(0, 30) || "", imageSrc: post.imageUrl || "/placeholders/placeholder3.avif", imageAlt: post.imageAlt || post.title || "", authorName: post.author?.name || "Anonymous", authorAvatar: post.author?.avatar || "/placeholders/placeholder3.avif", date: post.date || post.createdAt || new Date().toLocaleDateString("en-GB", { day: "numeric", month: "short", year: "numeric" }),
category: post.category || "General", title: post.title || "Untitled", excerpt: post.excerpt || post.content.slice(0, 30) || "", imageSrc: post.imageUrl || "https://images.unsplash.com/photo-1561070791-2526d30994b5?w=600&h=400&fit=crop", imageAlt: post.imageAlt || post.title || "", authorName: post.author?.name || "Anonymous", authorAvatar: post.author?.avatar || "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100&h=100&fit=crop", date: post.date || post.createdAt || new Date().toLocaleDateString("en-GB", { day: "numeric", month: "short", year: "numeric" }),
onBlogClick: () => console.log(`Blog ${post.id} clicked`),
}));
setPosts(mappedPosts);

View File

@@ -21,13 +21,13 @@ export const metadata: Metadata = {
openGraph: {
title: "Loro Piana - Timeless Luxury & Italian Excellence", description: "Experience the finest in Italian luxury fashion with Loro Piana. Premium fibers, master craftsmanship, and timeless elegance.", url: "https://www.loro-piana.com", siteName: "Loro Piana", images: [
{
url: "https://img.b2bpic.net/free-photo/pretty-blonde-woman-with-wavy-hair-dressed-skirt-light-blouse-white-jacket-sits-chair_197531-33594.jpg", alt: "Loro Piana luxury collections"
url: "https://images.unsplash.com/photo-1595777707802-e2334029ebb6?w=1200&h=630&fit=crop", alt: "Loro Piana luxury collections"
}
],
type: "website"
},
twitter: {
card: "summary_large_image", title: "Loro Piana - Luxury Italian Fashion", description: "Discover timeless elegance and premium craftsmanship with Loro Piana.", images: ["https://img.b2bpic.net/free-photo/pretty-blonde-woman-with-wavy-hair-dressed-skirt-light-blouse-white-jacket-sits-chair_197531-33594.jpg"]
card: "summary_large_image", title: "Loro Piana - Luxury Italian Fashion", description: "Discover timeless elegance and premium craftsmanship with Loro Piana.", images: ["https://images.unsplash.com/photo-1595777707802-e2334029ebb6?w=1200&h=630&fit=crop"]
},
robots: {
index: true,

View File

@@ -52,22 +52,22 @@ export default function LandingPage() {
background={{ variant: "plain" }}
carouselItems={[
{
id: "carousel-1", imageSrc: "https://img.b2bpic.net/free-photo/pretty-blonde-woman-with-wavy-hair-dressed-skirt-light-blouse-white-jacket-sits-chair_197531-33594.jpg", imageAlt: "Luxury Loro Piana collection"
id: "carousel-1", imageSrc: "https://images.unsplash.com/photo-1595777707802-e2334029ebb6?w=1200&h=800&fit=crop", imageAlt: "Luxury Loro Piana collection"
},
{
id: "carousel-2", imageSrc: "https://img.b2bpic.net/free-photo/elegant-woman-white-sweater-spring-city_1157-33298.jpg", imageAlt: "Premium cashmere collection"
id: "carousel-2", imageSrc: "https://images.unsplash.com/photo-1591195853828-11db59a44f6b?w=1200&h=800&fit=crop", imageAlt: "Premium cashmere collection"
},
{
id: "carousel-3", imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-adult-enjoying-home-comfort_23-2149134358.jpg", imageAlt: "Luxury wool blend coat"
id: "carousel-3", imageSrc: "https://images.unsplash.com/photo-1598554335862-44c265502df1?w=1200&h=800&fit=crop", imageAlt: "Luxury wool blend coat"
},
{
id: "carousel-4", imageSrc: "https://img.b2bpic.net/free-photo/close-up-sensual-blond-girl-knitted-sweater-emotionally-posing-outdoor_574295-4018.jpg", imageAlt: "Fine silk accessories"
id: "carousel-4", imageSrc: "https://images.unsplash.com/photo-1596777684867-a1e7e6e2e3e7?w=1200&h=800&fit=crop", imageAlt: "Fine silk accessories"
},
{
id: "carousel-5", imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-sweet-cute-smiling-brunette-woman-girl-casual-gray-sweater-model-posing-studio_158538-13040.jpg", imageAlt: "Premium leather goods"
id: "carousel-5", imageSrc: "https://images.unsplash.com/photo-1591992062511-8e9c0eb4ccb3?w=1200&h=800&fit=crop", imageAlt: "Premium leather goods"
},
{
id: "carousel-6", imageSrc: "https://img.b2bpic.net/free-photo/photo-young-woman-sitting-comfy-chair-near-christmas-tree_114579-80988.jpg", imageAlt: "Designer luxury shoes"
id: "carousel-6", imageSrc: "https://images.unsplash.com/photo-1552062407-291826bca171?w=1200&h=800&fit=crop", imageAlt: "Designer luxury shoes"
}
]}
autoPlay={true}
@@ -88,15 +88,15 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "Loro Piana", name: "Storm System Cashmere Coat", price: "$3,850.00", rating: 5,
reviewCount: "127", imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-adult-enjoying-home-comfort_23-2149134358.jpg", imageAlt: "Storm System Cashmere Coat"
reviewCount: "127", imageSrc: "https://images.unsplash.com/photo-1598554335862-44c265502df1?w=600&h=600&fit=crop", imageAlt: "Storm System Cashmere Coat"
},
{
id: "2", brand: "Loro Piana", name: "Pure Cashmere Crewneck", price: "$2,450.00", rating: 5,
reviewCount: "89", imageSrc: "https://img.b2bpic.net/free-photo/elegant-woman-white-sweater-spring-city_1157-33298.jpg", imageAlt: "Pure Cashmere Crewneck"
reviewCount: "89", imageSrc: "https://images.unsplash.com/photo-1591195853828-11db59a44f6b?w=600&h=600&fit=crop", imageAlt: "Pure Cashmere Crewneck"
},
{
id: "3", brand: "Loro Piana", name: "Silk Twill Scarf", price: "$1,290.00", rating: 5,
reviewCount: "156", imageSrc: "https://img.b2bpic.net/free-photo/close-up-sensual-blond-girl-knitted-sweater-emotionally-posing-outdoor_574295-4018.jpg", imageAlt: "Luxury Silk Twill Scarf"
reviewCount: "156", imageSrc: "https://images.unsplash.com/photo-1596777684867-a1e7e6e2e3e7?w=600&h=600&fit=crop", imageAlt: "Luxury Silk Twill Scarf"
}
]}
/>
@@ -116,7 +116,7 @@ export default function LandingPage() {
value: "$2.8B", title: "Global Luxury Brand"
}
]}
imageSrc="https://img.b2bpic.net/free-photo/glassblower-shaping-molten-glass_107420-74288.jpg"
imageSrc="https://images.unsplash.com/photo-1577720643272-265f434fd5d9?w=800&h=600&fit=crop"
imageAlt="Loro Piana heritage and craftsmanship"
useInvertedBackground="noInvert"
/>
@@ -132,15 +132,15 @@ export default function LandingPage() {
features={[
{
id: 1,
tag: "Premium Materials", title: "Finest Fibers", subtitle: "Sourced from the world's most exclusive suppliers", description: "We work exclusively with the finest natural fibers: virgin cashmere from Mongolia, silk from Como, and wool from the world's most prized sources. Every fiber is hand-selected for its exceptional quality.", imageSrc: "https://img.b2bpic.net/free-photo/elegant-woman-white-sweater-spring-city_1157-33298.jpg", imageAlt: "Premium cashmere fibers"
tag: "Premium Materials", title: "Finest Fibers", subtitle: "Sourced from the world's most exclusive suppliers", description: "We work exclusively with the finest natural fibers: virgin cashmere from Mongolia, silk from Como, and wool from the world's most prized sources. Every fiber is hand-selected for its exceptional quality.", imageSrc: "https://images.unsplash.com/photo-1591195853828-11db59a44f6b?w=600&h=600&fit=crop", imageAlt: "Premium cashmere fibers"
},
{
id: 2,
tag: "Artisan Craftsmanship", title: "Master Made", subtitle: "Handcrafted by Italian artisans", description: "Each piece is meticulously crafted by master artisans in Italy. Our commitment to traditional techniques combined with contemporary design ensures that every garment is a work of art.", imageSrc: "https://img.b2bpic.net/free-photo/cozy-sweaters-gold-leaves_169016-5912.jpg", imageAlt: "Artisan craftsmanship process"
tag: "Artisan Craftsmanship", title: "Master Made", subtitle: "Handcrafted by Italian artisans", description: "Each piece is meticulously crafted by master artisans in Italy. Our commitment to traditional techniques combined with contemporary design ensures that every garment is a work of art.", imageSrc: "https://images.unsplash.com/photo-1577720643272-265f434fd5d9?w=600&h=600&fit=crop", imageAlt: "Artisan craftsmanship process"
},
{
id: 3,
tag: "Timeless Design", title: "Elegance Endures", subtitle: "Designs that transcend seasons", description: "Our collections are designed to be timeless. We focus on classic silhouettes and refined aesthetics that never go out of style, ensuring your investment in Loro Piana lasts for generations.", imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-sweet-cute-smiling-brunette-woman-girl-casual-gray-sweater-model-posing-studio_158538-13040.jpg", imageAlt: "Timeless luxury design"
tag: "Timeless Design", title: "Elegance Endures", subtitle: "Designs that transcend seasons", description: "Our collections are designed to be timeless. We focus on classic silhouettes and refined aesthetics that never go out of style, ensuring your investment in Loro Piana lasts for generations.", imageSrc: "https://images.unsplash.com/photo-1596941280951-56adc8b7f5bf?w=600&h=600&fit=crop", imageAlt: "Timeless luxury design"
}
]}
/>
@@ -176,16 +176,16 @@ export default function LandingPage() {
useInvertedBackground="invertDefault"
testimonials={[
{
id: "1", name: "Catherine Leclerc, Fashion Editor", date: "Date: 15 November 2024", title: "Uncompromising elegance in every stitch", quote: "I have worn Loro Piana for over a decade. The quality is simply incomparable. Every piece I own has transcended trends and become a permanent fixture in my wardrobe. This is luxury that endures.", tag: "Premium Client", avatarSrc: "https://img.b2bpic.net/free-photo/indoor-studio-shot-attractive-pretty-woman-with-light-brown-hair-wearing-black-jacket-with-red-lips_291650-1321.jpg", imageSrc: "https://img.b2bpic.net/free-photo/elegant-woman-white-sweater-spring-city_1157-33298.jpg", imageAlt: "Premium cashmere collection"
id: "1", name: "Catherine Leclerc, Fashion Editor", date: "Date: 15 November 2024", title: "Uncompromising elegance in every stitch", quote: "I have worn Loro Piana for over a decade. The quality is simply incomparable. Every piece I own has transcended trends and become a permanent fixture in my wardrobe. This is luxury that endures.", tag: "Premium Client", avatarSrc: "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=100&h=100&fit=crop", imageSrc: "https://images.unsplash.com/photo-1591195853828-11db59a44f6b?w=600&h=600&fit=crop", imageAlt: "Premium cashmere collection"
},
{
id: "2", name: "Marco Benedetti, CEO", date: "Date: 8 October 2024", title: "The standard of refined taste", quote: "When it comes to luxury menswear, Loro Piana sets the benchmark. The attention to detail, the quality of materials, and the timeless designs make every piece an investment in elegance that lasts a lifetime.", tag: "Premium Client", avatarSrc: "https://img.b2bpic.net/free-photo/portrait-smiling-successful-businesswoman-looking-into-camera-sitting-restaurant-business-lady-with-stylish-hairstyle-wears-elegant-suit-business-meeting-attractive-appearance_8353-12611.jpg", imageSrc: "https://img.b2bpic.net/free-photo/close-up-young-adult-enjoying-home-comfort_23-2149134358.jpg", imageAlt: "Luxury wool blend coat"
id: "2", name: "Marco Benedetti, CEO", date: "Date: 8 October 2024", title: "The standard of refined taste", quote: "When it comes to luxury menswear, Loro Piana sets the benchmark. The attention to detail, the quality of materials, and the timeless designs make every piece an investment in elegance that lasts a lifetime.", tag: "Premium Client", avatarSrc: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=100&h=100&fit=crop", imageSrc: "https://images.unsplash.com/photo-1598554335862-44c265502df1?w=600&h=600&fit=crop", imageAlt: "Luxury wool blend coat"
},
{
id: "3", name: "Sophie Arnould, Collector", date: "Date: 22 September 2024", title: "Heritage meets contemporary style", quote: "Loro Piana combines Italian heritage with contemporary design in a way no other house can. My collection has grown because each new piece is a testament to their unwavering commitment to excellence.", tag: "Premium Client", avatarSrc: "https://img.b2bpic.net/free-photo/confident-beautiful-young-woman-portrait_23-2148148150.jpg", imageSrc: "https://img.b2bpic.net/free-photo/close-up-sensual-blond-girl-knitted-sweater-emotionally-posing-outdoor_574295-4018.jpg", imageAlt: "Fine silk accessories"
id: "3", name: "Sophie Arnould, Collector", date: "Date: 22 September 2024", title: "Heritage meets contemporary style", quote: "Loro Piana combines Italian heritage with contemporary design in a way no other house can. My collection has grown because each new piece is a testament to their unwavering commitment to excellence.", tag: "Premium Client", avatarSrc: "https://images.unsplash.com/photo-1438761681033-6461ffad8d80?w=100&h=100&fit=crop", imageSrc: "https://images.unsplash.com/photo-1596777684867-a1e7e6e2e3e7?w=600&h=600&fit=crop", imageAlt: "Fine silk accessories"
},
{
id: "4", name: "James Wellington, Businessman", date: "Date: 5 August 2024", title: "Investment in timeless elegance", quote: "I invest in Loro Piana because these pieces don't age—they improve. The craftsmanship is visible, the quality is evident, and the value is undeniable. This is luxury that matters.", tag: "Premium Client", avatarSrc: "https://img.b2bpic.net/free-photo/attractive-african-businesswoman-near-window-eyes-closed_171337-16073.jpg", imageSrc: "https://img.b2bpic.net/free-photo/portrait-beautiful-sweet-cute-smiling-brunette-woman-girl-casual-gray-sweater-model-posing-studio_158538-13040.jpg", imageAlt: "Premium leather goods"
id: "4", name: "James Wellington, Businessman", date: "Date: 5 August 2024", title: "Investment in timeless elegance", quote: "I invest in Loro Piana because these pieces don't age—they improve. The craftsmanship is visible, the quality is evident, and the value is undeniable. This is luxury that matters.", tag: "Premium Client", avatarSrc: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&h=100&fit=crop", imageSrc: "https://images.unsplash.com/photo-1596941280951-56adc8b7f5bf?w=600&h=600&fit=crop", imageAlt: "Premium leather goods"
}
]}
/>
@@ -198,7 +198,7 @@ export default function LandingPage() {
title="Exclusive Access to New Collections"
description="Subscribe to our newsletter and be the first to discover new collections, exclusive events, and insider stories from the world of Loro Piana."
useInvertedBackground="noInvert"
imageSrc="https://img.b2bpic.net/free-photo/pretty-blonde-woman-with-wavy-hair-dressed-skirt-light-blouse-white-jacket-sits-chair_197531-33594.jpg"
imageSrc="https://images.unsplash.com/photo-1595777707802-e2334029ebb6?w=800&h=600&fit=crop"
imageAlt="Exclusive Loro Piana collection preview"
mediaPosition="right"
inputPlaceholder="Enter your email"