Merge version_2 into main

Merge version_2 into main
This commit was merged in pull request #4.
This commit is contained in:
2026-03-06 08:36:36 +00:00
2 changed files with 61 additions and 82 deletions

View File

@@ -1,66 +1,20 @@
import type { Metadata } from "next";
import { Public_Sans } from "next/font/google";
import { Inter } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/components/ServiceWrapper";
import Tag from "@/tag/Tag";
const publicSans = Public_Sans({
variable: "--font-public-sans",
subsets: ["latin"],
});
const inter = Inter({
variable: "--font-inter",
subsets: ["latin"],
});
const inter = Inter({ subsets: ["latin"] });
export const metadata: Metadata = {
title: "TrendCart - Premium Fashion, Electronics & Accessories Shopping",
description: "Shop premium fashion, electronics, and accessories on TrendCart. Discover trending products, exclusive deals, fast shipping, and secure checkout.",
keywords: "shopping, fashion, electronics, accessories, e-commerce, online store, trending products",
metadataBase: new URL("https://trendcart.com"),
alternates: {
canonical: "https://trendcart.com",
},
openGraph: {
title: "TrendCart - Premium Shopping",
description: "Discover premium products with exclusive deals and fast shipping.",
siteName: "TrendCart",
type: "website",
images: [
{
url: "http://img.b2bpic.net/free-photo/stylish-asian-senior-woman-going-shopping-wearing-trendy-clothes-sunglasses-holding-store-bags-w_1258-158236.jpg",
alt: "TrendCart Premium Shopping",
},
],
},
twitter: {
card: "summary_large_image",
title: "TrendCart - Shop Premium Products",
description: "Explore trending fashion, electronics, and accessories with exclusive deals.",
images: ["http://img.b2bpic.net/free-photo/stylish-asian-senior-woman-going-shopping-wearing-trendy-clothes-sunglasses-holding-store-bags-w_1258-158236.jpg"],
},
robots: {
index: true,
follow: true,
},
};
title: "TrendCart - Premium Shopping", description: "Discover premium fashion & electronics with exclusive deals and fast shipping"};
export default function RootLayout({
children,
}: Readonly<{
}: {
children: React.ReactNode;
}>) {
}) {
return (
<html lang="en" suppressHydrationWarning>
<ServiceWrapper>
<body
className={`${publicSans.variable} ${inter.variable} antialiased`}
>
<Tag />
{children}
<html lang="en">
<body className={inter.className}>{children}
<script
dangerouslySetInnerHTML={{
__html: `
@@ -1428,7 +1382,6 @@ export default function RootLayout({
}}
/>
</body>
</ServiceWrapper>
</html>
);
}
}

View File

@@ -50,24 +50,30 @@ export default function HomePage() {
tagIcon={Sparkles}
tagAnimation="slide-up"
buttons={[
{ text: "Shop Now", href: "/products" },
{ text: "Start Shopping", href: "/products" },
{ text: "View Categories", href: "#categories" },
]}
buttonAnimation="slide-up"
background={{ variant: "plain" }}
carouselItems={[
{
id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/stylish-asian-senior-woman-going-shopping-wearing-trendy-clothes-sunglasses-holding-store-bags-w_1258-158236.jpg"},
id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/stylish-asian-senior-woman-going-shopping-wearing-trendy-clothes-sunglasses-holding-store-bags-w_1258-158236.jpg"
},
{
id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/classic-men-casual-outfits-with-accessories-table_1357-162.jpg?_wi=1"},
id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/classic-men-casual-outfits-with-accessories-table_1357-162.jpg?_wi=1"
},
{
id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-dress-hat-standing-by-architecture_1303-9713.jpg?_wi=1"},
id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-dress-hat-standing-by-architecture_1303-9713.jpg?_wi=1"
},
{
id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/laptop-headset-phone-table_146671-13973.jpg?_wi=1"},
id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/laptop-headset-phone-table_146671-13973.jpg?_wi=1"
},
{
id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-hands-using-smartphone_285396-6598.jpg?_wi=1"},
id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-hands-using-smartphone_285396-6598.jpg?_wi=1"
},
{
id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/young-pretty-magnificent-shy-brunette-young-woman-posing-paris-street-elegant-lady-look-summertime-beige-colors-travel-experience_291049-1756.jpg?_wi=1"},
id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/young-pretty-magnificent-shy-brunette-young-woman-posing-paris-street-elegant-lady-look-summertime-beige-colors-travel-experience_291049-1756.jpg?_wi=1"
},
]}
autoPlay={true}
autoPlayInterval={4000}
@@ -87,7 +93,8 @@ export default function HomePage() {
{
id: "1", title: "Men's Fashion", description:
"Premium clothing collection including shirts, pants, jackets, and accessories designed for the modern man.", media: {
imageSrc: "http://img.b2bpic.net/free-photo/classic-men-casual-outfits-with-accessories-table_1357-162.jpg?_wi=2", imageAlt: "Men's fashion collection"},
imageSrc: "http://img.b2bpic.net/free-photo/classic-men-casual-outfits-with-accessories-table_1357-162.jpg?_wi=2", imageAlt: "Men's fashion collection"
},
items: [
{ icon: Shirt, text: "Trendy Apparel" },
{ icon: Star, text: "Premium Quality" },
@@ -98,7 +105,8 @@ export default function HomePage() {
{
id: "2", title: "Women's Fashion", description:
"Elegant and stylish women's collection featuring dresses, tops, bottoms, and accessories for every occasion.", media: {
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-dress-hat-standing-by-architecture_1303-9713.jpg?_wi=2", imageAlt: "Women's fashion collection"},
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-dress-hat-standing-by-architecture_1303-9713.jpg?_wi=2", imageAlt: "Women's fashion collection"
},
items: [
{ icon: Heart, text: "Stylish Designs" },
{ icon: Star, text: "Trending Styles" },
@@ -109,7 +117,8 @@ export default function HomePage() {
{
id: "3", title: "Electronics", description:
"Latest gadgets and electronics including smartphones, laptops, headphones, and smart devices.", media: {
imageSrc: "http://img.b2bpic.net/free-photo/laptop-headset-phone-table_146671-13973.jpg?_wi=2", imageAlt: "Electronics collection"},
imageSrc: "http://img.b2bpic.net/free-photo/laptop-headset-phone-table_146671-13973.jpg?_wi=2", imageAlt: "Electronics collection"
},
items: [
{ icon: Zap, text: "Latest Tech" },
{ icon: Shield, text: "Warranty Included" },
@@ -133,17 +142,23 @@ export default function HomePage() {
useInvertedBackground={true}
products={[
{
id: "prod-1", name: "Premium Cotton T-Shirt", price: "$45.99", variant: "White • S, M, L, XL", imageSrc: "http://img.b2bpic.net/free-photo/classic-men-casual-outfits-with-accessories-table_1357-162.jpg?_wi=3", imageAlt: "Premium Cotton T-Shirt"},
id: "prod-1", name: "Premium Cotton T-Shirt", price: "$45.99", variant: "White • S, M, L, XL", imageSrc: "http://img.b2bpic.net/free-photo/classic-men-casual-outfits-with-accessories-table_1357-162.jpg?_wi=3", imageAlt: "Premium Cotton T-Shirt"
},
{
id: "prod-2", name: "Elegant Summer Dress", price: "$89.99", variant: "Navy Blue • XS to XL", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-dress-hat-standing-by-architecture_1303-9713.jpg?_wi=3", imageAlt: "Elegant Summer Dress"},
id: "prod-2", name: "Elegant Summer Dress", price: "$89.99", variant: "Navy Blue • XS to XL", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-dress-hat-standing-by-architecture_1303-9713.jpg?_wi=3", imageAlt: "Elegant Summer Dress"
},
{
id: "prod-3", name: "Wireless Headphones", price: "$129.99", variant: "Black • Active Noise", imageSrc: "http://img.b2bpic.net/free-photo/laptop-headset-phone-table_146671-13973.jpg?_wi=3", imageAlt: "Wireless Headphones"},
id: "prod-3", name: "Wireless Headphones", price: "$129.99", variant: "Black • Active Noise", imageSrc: "http://img.b2bpic.net/free-photo/laptop-headset-phone-table_146671-13973.jpg?_wi=3", imageAlt: "Wireless Headphones"
},
{
id: "prod-4", name: "Stainless Steel Watch", price: "$199.99", variant: "Silver • Automatic", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-hands-using-smartphone_285396-6598.jpg?_wi=2", imageAlt: "Stainless Steel Watch"},
id: "prod-4", name: "Stainless Steel Watch", price: "$199.99", variant: "Silver • Automatic", imageSrc: "http://img.b2bpic.net/free-photo/stylish-woman-hands-using-smartphone_285396-6598.jpg?_wi=2", imageAlt: "Stainless Steel Watch"
},
{
id: "prod-5", name: "Designer Handbag", price: "$249.99", variant: "Black • Genuine Leather", imageSrc: "http://img.b2bpic.net/free-photo/young-pretty-magnificent-shy-brunette-young-woman-posing-paris-street-elegant-lady-look-summertime-beige-colors-travel-experience_291049-1756.jpg?_wi=2", imageAlt: "Designer Handbag"},
id: "prod-5", name: "Designer Handbag", price: "$249.99", variant: "Black • Genuine Leather", imageSrc: "http://img.b2bpic.net/free-photo/young-pretty-magnificent-shy-brunette-young-woman-posing-paris-street-elegant-lady-look-summertime-beige-colors-travel-experience_291049-1756.jpg?_wi=2", imageAlt: "Designer Handbag"
},
{
id: "prod-6", name: "Noise-Cancelling Earbuds", price: "$99.99", variant: "White • Wireless", imageSrc: "http://img.b2bpic.net/free-photo/clean-desktop-with-headphones-setup_58702-17230.jpg", imageAlt: "Noise-Cancelling Earbuds"},
id: "prod-6", name: "Noise-Cancelling Earbuds", price: "$99.99", variant: "White • Wireless", imageSrc: "http://img.b2bpic.net/free-photo/clean-desktop-with-headphones-setup_58702-17230.jpg", imageAlt: "Noise-Cancelling Earbuds"
},
]}
/>
</div>
@@ -155,13 +170,17 @@ export default function HomePage() {
author="Jessica Mitchell, Fashion Enthusiast"
avatars={[
{
src: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg", alt: "Jessica Mitchell"},
src: "http://img.b2bpic.net/free-photo/positive-confident-businesswoman-wearing-formal-suit-standing-with-arms-folded_74855-10328.jpg", alt: "Jessica Mitchell"
},
{
src: "http://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg", alt: "Customer 2"},
src: "http://img.b2bpic.net/free-photo/pensive-person-alone-corridor-serious_1262-1042.jpg", alt: "Customer 2"
},
{
src: "http://img.b2bpic.net/free-photo/head-shot-happy-beautiful-young-woman-posing-indoors-looking-camera-smiling_74855-10218.jpg", alt: "Customer 3"},
src: "http://img.b2bpic.net/free-photo/head-shot-happy-beautiful-young-woman-posing-indoors-looking-camera-smiling_74855-10218.jpg", alt: "Customer 3"
},
{
src: "http://img.b2bpic.net/free-photo/confident-european-businessman-smiling-closeup-portrait-jobs-career-campaign_53876-128975.jpg", alt: "Customer 4"},
src: "http://img.b2bpic.net/free-photo/confident-european-businessman-smiling-closeup-portrait-jobs-career-campaign_53876-128975.jpg", alt: "Customer 4"
},
]}
ratingAnimation="slide-up"
avatarsAnimation="slide-up"
@@ -178,7 +197,8 @@ export default function HomePage() {
textboxLayout="default"
useInvertedBackground={false}
names={[
"Stripe", "PayPal", "Mastercard", "Visa", "FedEx", "Amazon", "eBay", "Shopify"]}
"Stripe", "PayPal", "Mastercard", "Visa", "FedEx", "Amazon", "eBay", "Shopify"
]}
speed={40}
showCard={true}
/>
@@ -197,22 +217,28 @@ export default function HomePage() {
faqs={[
{
id: "faq-1", title: "What payment methods do you accept?", content:
"We accept all major credit cards (Visa, Mastercard, American Express), PayPal, UPI, and Cash on Delivery (COD) for eligible locations. All transactions are secure and encrypted."},
"We accept all major credit cards (Visa, Mastercard, American Express), PayPal, UPI, and Cash on Delivery (COD) for eligible locations. All transactions are secure and encrypted."
},
{
id: "faq-2", title: "How long does shipping take?", content:
"Standard shipping typically takes 5-7 business days. Express shipping is available for 2-3 day delivery. Delivery times may vary based on your location and product availability."},
"Standard shipping typically takes 5-7 business days. Express shipping is available for 2-3 day delivery. Delivery times may vary based on your location and product availability."
},
{
id: "faq-3", title: "What is your return policy?", content:
"We offer a 30-day return policy on most items. Products must be unused and in original packaging. Returns are free for items damaged during shipping. Refunds are processed within 5-7 business days."},
"We offer a 30-day return policy on most items. Products must be unused and in original packaging. Returns are free for items damaged during shipping. Refunds are processed within 5-7 business days."
},
{
id: "faq-4", title: "Do you offer international shipping?", content:
"Currently, we ship to over 50 countries worldwide. Shipping costs and delivery times vary by location. International orders may be subject to customs duties and taxes."},
"Currently, we ship to over 50 countries worldwide. Shipping costs and delivery times vary by location. International orders may be subject to customs duties and taxes."
},
{
id: "faq-5", title: "How can I track my order?", content:
"You'll receive a tracking number via email once your order ships. You can use this number to track your package in real-time on our platform or the carrier's website."},
"You'll receive a tracking number via email once your order ships. You can use this number to track your package in real-time on our platform or the carrier's website."
},
{
id: "faq-6", title: "Is my personal information secure?", content:
"Yes, we use industry-standard SSL encryption to protect all personal and payment information. We never share your data with third parties without your consent."},
"Yes, we use industry-standard SSL encryption to protect all personal and payment information. We never share your data with third parties without your consent."
},
]}
/>
</div>
@@ -266,4 +292,4 @@ export default function HomePage() {
</div>
</ThemeProvider>
);
}
}