feat: Add Docker support and improve API structure
- Introduced Dockerfile and .dockerignore for containerization. - Removed unused API route `src/app/api/hello/route.ts`. - Added new API route for fetching products by category. - Enhanced existing product category API to include descriptions. - Updated product categories data structure to include descriptions. - Improved product fetching logic in the product categories page. - Refactored breadcrumb component for better navigation. - Added new AchievementIconWhite component for UI consistency. - Updated Navbar to use routeFactory for better maintainability. - Enhanced styling in various components for improved responsiveness. - Removed obsolete language switcher component.
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
export interface IBreadcrumbProps {
|
||||
items: IBreadcrumbItem[];
|
||||
}
|
||||
|
||||
export interface IBreadcrumbItem {
|
||||
title: string;
|
||||
href?: string;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
import Link from 'next/link';
|
||||
import { IBreadcrumbProps } from './breadcrumb';
|
||||
|
||||
export default function Breadcrumb({ items }: IBreadcrumbProps) {
|
||||
return (
|
||||
<nav aria-label="breadcrumb">
|
||||
<div className="flex items-center gap-2">
|
||||
{items.map((item, index) => (
|
||||
<div key={index} className="flex items-center gap-2">
|
||||
{index > 0 && (
|
||||
<span className="text-sm font-normal text-gray-300">⦁</span>
|
||||
)}
|
||||
{item.href ? (
|
||||
<Link
|
||||
href={item.href}
|
||||
className="text-base font-normal text-gray-300"
|
||||
>
|
||||
{item.title}
|
||||
</Link>
|
||||
) : (
|
||||
<span className="text-primary text-base font-bold">
|
||||
{item.title}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user