language Switcher added
This commit is contained in:
13
app/[locale]/about/page.tsx
Normal file
13
app/[locale]/about/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
5
app/[locale]/contact/page.tsx
Normal file
5
app/[locale]/contact/page.tsx
Normal 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
10
app/[locale]/faq/page.tsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import { FaqBanner, Togle } from "@/components/pages/faq";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<div >
|
||||
<FaqBanner />
|
||||
<Togle />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
25
app/[locale]/home/page.tsx
Normal file
25
app/[locale]/home/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
39
app/[locale]/products/[slug]/page.tsx
Normal file
39
app/[locale]/products/[slug]/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
10
app/[locale]/products/page.tsx
Normal file
10
app/[locale]/products/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
13
app/[locale]/services/page.tsx
Normal file
13
app/[locale]/services/page.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user