pagination page_size updated , breadcrumb color changed , sub link text changed (ru) on navbar

This commit is contained in:
nabijonovdavronbek619@gmail.com
2026-03-03 14:46:35 +05:00
parent 03ea2d51e4
commit 2babb32e6a
5 changed files with 9 additions and 9 deletions

View File

@@ -62,7 +62,7 @@ export default function SlugPage() {
return ( return (
<div className="min-h-screen bg-[#1e1d1c] px-4 md:px-8 pb-35"> <div className="min-h-screen bg-[#1e1d1c] px-4 md:px-8 pb-35">
<div className="max-w-7xl mx-auto"> <div className="max-w-7xl mx-auto">
<div className="pt-30 pb-10"> <div className="min-[400px]:pt-35 pt-45 pb-10">
<Breadcrumb /> <Breadcrumb />
</div> </div>
{/* Main Product Section */} {/* Main Product Section */}

View File

@@ -161,28 +161,28 @@ export function Breadcrumb({
className="flex items-center gap-2" className="flex items-center gap-2"
> >
{index > 0 && ( {index > 0 && (
<ChevronRight className="w-4 h-4 text-gray-400 dark:text-gray-600" /> <ChevronRight className="w-4 h-4 text-gray-200" />
)} )}
{index === 0 ? ( {index === 0 ? (
// Home link with icon // Home link with icon
<Link <Link
href={item.href} href={item.href}
className="flex items-center gap-1.5 text-gray-600 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-500 transition-colors duration-200" className="flex items-center gap-1.5 text-gray-200 hover:text-red-600 transition-colors duration-200"
> >
<Home className="w-4 h-4" /> <Home className="w-4 h-4" />
<span className="hidden sm:inline">{item.label}</span> <span className="hidden sm:inline">{item.label}</span>
</Link> </Link>
) : item.isLast ? ( ) : item.isLast ? (
// Last item (current page) // Last item (current page)
<span className="text-gray-900 dark:text-white font-medium line-clamp-1"> <span className=" text-gray-200 font-medium line-clamp-1">
{item.label} {item.label}
</span> </span>
) : ( ) : (
// Regular link // Regular link
<Link <Link
href={item.href} href={item.href}
className="text-gray-600 hover:text-red-600 dark:text-gray-400 dark:hover:text-red-500 transition-colors duration-200 line-clamp-1" className="text-gray-200 hover:text-red-600 transition-colors duration-200 line-clamp-1"
> >
{item.label} {item.label}
</Link> </Link>

View File

@@ -94,7 +94,7 @@ export default function MainProduct() {
} }
return ( return (
<div > <div className="space-y-4">
{/* ✅ isLoading da overlay — list o'rnini saqlab, ustidan opacity */} {/* ✅ isLoading da overlay — list o'rnini saqlab, ustidan opacity */}
<div <div
className={`grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-5 transition-opacity ${isLoading ? "opacity-50 pointer-events-none" : "opacity-100"}`} className={`grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-5 transition-opacity ${isLoading ? "opacity-50 pointer-events-none" : "opacity-100"}`}

View File

@@ -124,7 +124,7 @@
"subPages": { "subPages": {
"baza": "Нормативная база", "baza": "Нормативная база",
"certificate": "Сертификаты", "certificate": "Сертификаты",
"notePP": "Руководства" "notePP": "Инструкция"
}, },
"normativBaza": { "normativBaza": {
"hero": { "hero": {

View File

@@ -16,8 +16,8 @@ export const endPoints = {
}, },
product: { product: {
byCategory: ({ id, currentPage }: ProductTypes) => { byCategory: ({ id, currentPage }: ProductTypes) => {
let link = "product/"; let link = "product/?page_size=12";
if (id) link += `?category=${id}`; if (id) link += `&category=${id}`;
if (currentPage) link += `&page=${currentPage}`; if (currentPage) link += `&page=${currentPage}`;
return link; return link;