diff --git a/src/app/products/[id]/page.tsx b/src/app/products/[id]/page.tsx new file mode 100644 index 0000000..88e4bb4 --- /dev/null +++ b/src/app/products/[id]/page.tsx @@ -0,0 +1,162 @@ +'use client'; + +import { ThemeProvider } from 'next-themes'; +import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline'; +import TextAnimation from '@/components/text/TextAnimation'; +import ButtonTextShift from '@/components/button/ButtonTextShift/ButtonTextShift'; +import TestimonialCardTwo from '@/components/sections/testimonial/TestimonialCardTwo'; +import ProductCardThree from '@/components/sections/product/ProductCardThree'; +import { Sparkles, Star } from 'lucide-react'; + +export default function ProductDetailPage() { + const book = { + id: 'the-alchemist', + title: 'The Alchemist', + author: 'Paulo Coelho', + description: 'A captivating novel about a young shepherd who journeys to the Egyptian desert in search of a treasure. His quest leads him to discover a different kind of treasure than he originally envisioned.', + price: '$12.99', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/book-cover-alchemist.png', + imageAlt: 'The Alchemist book cover', + rating: 4.8, + reviewCount: 1500, + }; + + const reviews = [ + { + id: '1', + name: 'Sophia M.', + role: 'Avid Reader', + testimonial: 'An inspiring and thought-provoking read that I couldn\'t put down. Highly recommended!', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/customer-avatar-1.jpg', + icon: Star, + }, + { + id: '2', + name: 'John D.', + role: 'Book Enthusiast', + testimonial: 'The story is beautifully written and full of wisdom. A true classic that everyone should read.', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/customer-avatar-2.jpg', + icon: Star, + }, + { + id: '3', + name: 'Emily R.', + role: 'Philosophy Student', + testimonial: 'Changed my perspective on life and destiny. Deeply moving and thought-provoking.', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/customer-avatar-3.jpg', + icon: Star, + }, + ]; + + const relatedProducts = [ + { + id: 'little-prince', + name: 'The Little Prince', + price: '$9.99', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/book-cover-little-prince.png', + imageAlt: 'The Little Prince book cover', + }, + { + id: 'siddhartha', + name: 'Siddhartha', + price: '$11.50', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/book-cover-siddhartha.png', + imageAlt: 'Siddhartha book cover', + }, + { + id: 'jonathan-seagull', + name: 'Jonathan Livingston Seagull', + price: '$8.75', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/book-cover-jonathan-seagull.png', + imageAlt: 'Jonathan Livingston Seagull book cover', + }, + { + id: 'the-prophet', + name: 'The Prophet', + price: '$10.25', + imageSrc: 'https://pub-8b4931a55099479ca4d5a9d685ac336c.r2.dev/book-cover-prophet.png', + imageAlt: 'The Prophet book cover', + }, + ]; + + return ( + + +
+ {/* Book Information Section */} +
+
+ {book.imageAlt} +
+
+ +

By {book.author}

+

{book.description}

+
+ {Array.from({ length: Math.floor(book.rating) }).map((_, i) => ( + + ))} + ({book.rating} / {book.reviewCount} reviews) +
+

{book.price}

+
+ + +
+
+
+ + {/* Reviews Section */} +
+ +
+ + {/* Related Products Section */} + +
+
+ ); +} \ No newline at end of file