fix(blog): integrate back button into top breadcrumb bar for a cleaner minimalist hero layout
This commit is contained in:
1 parent
85b542e8b4
commit
3683a768a8
1 file changed
+23
-23
@@ -145,37 +145,37 @@ export default function BlogPage({ blogs = [] }: { blogs: BlogPost[] }) {
|
||||
return (
|
||||
<div className="min-h-screen bg-medical-gray-50 pt-8 pb-20 px-4 font-vazir" dir="rtl">
|
||||
<div className="max-w-7xl mx-auto">
|
||||
{/* Breadcrumb Navigation */}
|
||||
<div className="flex items-center gap-2 text-xs font-bold text-medical-gray-400 mb-6 font-vazir">
|
||||
<span className="cursor-pointer hover:text-canina-blue transition-colors" onClick={() => router.push('/')}>خانه</span>
|
||||
<ChevronRight className="w-3 h-3 text-medical-gray-300" />
|
||||
<span className="text-canina-blue font-black">مجله سلامت</span>
|
||||
</div>
|
||||
|
||||
{/* Header */}
|
||||
<div className="flex flex-col md:flex-row md:items-end justify-between mb-12 gap-6 pb-6 border-b border-medical-gray-200/60">
|
||||
<div className="text-right">
|
||||
<div className="inline-flex items-center gap-2 px-3 py-1 bg-canina-blue/10 text-canina-blue rounded-full text-xs font-black uppercase tracking-widest mb-3">
|
||||
<BookOpen className="w-3.5 h-3.5" />
|
||||
<span>Canina Science Blog</span>
|
||||
</div>
|
||||
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-black text-medical-gray-900 leading-tight">
|
||||
مجله تخصصی <span className="text-canina-blue">سلامت پتها</span>
|
||||
</h1>
|
||||
<p className="text-sm sm:text-base text-medical-gray-500 font-medium mt-3 max-w-xl leading-relaxed">
|
||||
آخرین یافتههای علمی محققین کانینا آلمان در مورد تغذیه و سلامت پتها.
|
||||
</p>
|
||||
{/* Breadcrumb Navigation & Integrated Back Button */}
|
||||
<div className="flex items-center justify-between mb-8 pb-4 border-b border-medical-gray-200/60 font-vazir">
|
||||
<div className="flex items-center gap-2 text-xs font-bold text-medical-gray-400">
|
||||
<span className="cursor-pointer hover:text-canina-blue transition-colors" onClick={() => router.push('/')}>خانه</span>
|
||||
<ChevronRight className="w-3 h-3 text-medical-gray-300" />
|
||||
<span className="text-canina-blue font-black">مجله سلامت</span>
|
||||
</div>
|
||||
|
||||
<button
|
||||
onClick={() => router.push('/')}
|
||||
className="self-start md:self-auto px-5 py-2.5 bg-white border border-medical-gray-200 rounded-xl text-medical-gray-700 shadow-sm flex items-center gap-2 font-bold text-xs sm:text-sm hover:border-canina-blue hover:text-canina-blue transition-all whitespace-nowrap"
|
||||
className="px-3.5 py-1.5 bg-white border border-medical-gray-200 rounded-lg text-medical-gray-600 shadow-xs flex items-center gap-1.5 font-bold text-xs hover:border-canina-blue hover:text-canina-blue transition-all whitespace-nowrap"
|
||||
>
|
||||
<ChevronRight className="w-4 h-4" />
|
||||
<span>بازگشت به خانه</span>
|
||||
<ChevronRight className="w-3.5 h-3.5" />
|
||||
<span>بازگشت</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Header */}
|
||||
<div className="mb-10 text-right">
|
||||
<div className="inline-flex items-center gap-2 px-3 py-1 bg-canina-blue/10 text-canina-blue rounded-full text-xs font-black uppercase tracking-widest mb-3">
|
||||
<BookOpen className="w-3.5 h-3.5" />
|
||||
<span>Canina Science Blog</span>
|
||||
</div>
|
||||
<h1 className="text-3xl sm:text-4xl lg:text-5xl font-black text-medical-gray-900 leading-tight">
|
||||
مجله تخصصی <span className="text-canina-blue">سلامت پتها</span>
|
||||
</h1>
|
||||
<p className="text-sm sm:text-base text-medical-gray-500 font-medium mt-3 max-w-xl leading-relaxed">
|
||||
آخرین یافتههای علمی محققین کانینا آلمان در مورد تغذیه و سلامت پتها.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Featured Post */}
|
||||
{blogs.length > 0 && (
|
||||
<div className="mb-20">
|
||||
|
||||
Reference in new issue
Block a user