language Switcher added

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-01-27 17:36:09 +05:00
parent e87a26d74c
commit de2554a2e7
21 changed files with 830 additions and 32 deletions

View File

@@ -0,0 +1,13 @@
import { AboutBanner, Story, WhyChooseUs } from "@/components/pages/about";
import { Statistics } from "@/components/pages/home";
export default function Page() {
return (
<div className="mb-0">
<AboutBanner />
<Story />
<Statistics/>
<WhyChooseUs/>
</div>
);
}

View File

@@ -0,0 +1,5 @@
import { Contact } from "@/components/pages/contact";
export default function Page() {
return <Contact />;
}

10
app/[locale]/faq/page.tsx Normal file
View File

@@ -0,0 +1,10 @@
import { FaqBanner, Togle } from "@/components/pages/faq";
export default function Page() {
return (
<div >
<FaqBanner />
<Togle />
</div>
);
}

View File

@@ -0,0 +1,25 @@
import {
AboutUs,
Banner,
Blog,
Line,
OurService,
Statistics,
Testimonial,
Video,
} from "@/components/pages/home";
export default function Home() {
return (
<main className="bg-slate-950">
<Banner />
<Statistics />
<AboutUs />
<Video />
<OurService />
<Testimonial />
<Line />
<Blog />
</main>
);
}

View File

@@ -0,0 +1,39 @@
"use client";
import { DATA } from "@/lib/demoData";
import { Features, RightSide, SliderComp } from "@/components/pages/products";
export default function SlugPage() {
const statusColor =
DATA[0].status === "full"
? "text-green-500"
: DATA[0].status === "empty"
? "text-red-600"
: "text-yellow-800";
const statusText =
DATA[0].status === "full"
? "Sotuvda mavjud"
: DATA[0].status === "empty"
? "Sotuvda qolmagan"
: "Buyurtma asosida";
return (
<div className="min-h-screen bg-[#1e1d1c] py-40 px-4 md:px-8">
<div className="max-w-6xl mx-auto">
<div className="grid grid-cols-1 md:grid-cols-2 gap-8 md:gap-12">
<SliderComp imgs={DATA[0].images} />
<RightSide
title={DATA[0].title}
name={DATA[0].name}
statusColor={statusColor}
statusText={statusText}
description={DATA[0].description}
/>
</div>
<Features features={DATA[0].features} />
</div>
</div>
);
}

View File

@@ -0,0 +1,10 @@
import { ProductBanner, Products } from "@/components/pages/products";
export default function Page() {
return (
<div className="bg-[#1e1d1c] pb-30">
<ProductBanner />
<Products />
</div>
);
}

View File

@@ -0,0 +1,13 @@
import { OurService, Video } from "@/components/pages/home";
import { ServiceBanner, ServiceFaq } from "@/components/pages/services";
export default function Page() {
return (
<div className="">
<ServiceBanner />
<OurService />
<Video />
<ServiceFaq />
</div>
);
}