fix(blog): fix newsletter card layout overflow and text clipping on medium screens
This commit is contained in:
1 parent
f367499a5c
commit
078f9ba1f2
1 file changed
+24
-22
@@ -258,31 +258,33 @@ export default function BlogPage({ blogs = [] }: { blogs: BlogPost[] }) {
|
||||
))}
|
||||
|
||||
{/* Newsletter / CTA Box */}
|
||||
<div className="bg-canina-blue rounded-[2.5rem] sm:rounded-[3.5rem] p-8 sm:p-12 text-white relative overflow-hidden flex flex-col md:flex-row items-center justify-between gap-8 font-vazir shadow-2xl">
|
||||
<div className="absolute top-0 right-0 p-8 opacity-10 pointer-events-none">
|
||||
<div className="w-48 h-48 bg-white/20 rounded-full blur-3xl" />
|
||||
</div>
|
||||
<div className="flex items-center gap-6 relative z-10 text-right">
|
||||
<div className="w-16 h-16 bg-white/10 backdrop-blur-md rounded-3xl flex items-center justify-center text-white font-black text-3xl italic shadow-inner flex-shrink-0">
|
||||
C
|
||||
<div className="bg-canina-blue rounded-[2.5rem] sm:rounded-[3rem] p-8 sm:p-12 text-white relative overflow-hidden font-vazir shadow-2xl">
|
||||
<div className="absolute top-0 left-0 w-64 h-64 bg-white/5 rounded-full blur-3xl pointer-events-none" />
|
||||
|
||||
<div className="flex flex-col lg:flex-row lg:items-center lg:justify-between gap-8 relative z-10">
|
||||
<div className="flex items-start sm:items-center gap-4 sm:gap-6 text-right">
|
||||
<div className="w-14 h-14 sm:w-16 sm:h-16 bg-white/10 backdrop-blur-md rounded-2xl sm:rounded-3xl flex items-center justify-center text-white font-black text-2xl sm:text-3xl italic shadow-inner flex-shrink-0">
|
||||
C
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="text-xl sm:text-2xl lg:text-3xl font-black mb-2 font-vazir text-white leading-tight">مشترک خبرنامه علمی شوید</h3>
|
||||
<p className="text-white/80 font-medium text-xs sm:text-sm font-vazir max-w-xl leading-relaxed">
|
||||
ماهانه یک ایمیل حاوی مهمترین نکات سلامت پتها و کدهای تخفیف اختصاصی دریافت کنید.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h3 className="text-2xl sm:text-3xl font-black mb-2 italic font-vazir">مشترک خبرنامه علمی شوید</h3>
|
||||
<p className="text-white/80 font-medium text-xs sm:text-sm font-vazir max-w-lg">
|
||||
ماهانه یک ایمیل حاوی مهمترین نکات سلامت پتها و کدهای تخفیف اختصاصی دریافت کنید.
|
||||
</p>
|
||||
|
||||
<div className="flex flex-col sm:flex-row gap-3 w-full lg:w-auto flex-shrink-0">
|
||||
<input
|
||||
type="email"
|
||||
placeholder="آدرس ایمیل شما..."
|
||||
className="bg-white/10 border border-white/20 rounded-xl sm:rounded-2xl px-4 py-3 sm:py-3.5 text-xs outline-none focus:bg-white/20 placeholder:text-white/50 text-white w-full sm:w-72 font-vazir text-right"
|
||||
/>
|
||||
<button className="bg-white text-canina-blue px-6 sm:px-8 py-3 sm:py-3.5 rounded-xl sm:rounded-2xl font-black text-xs hover:bg-canina-gold hover:text-canina-dark transition-all whitespace-nowrap shadow-lg">
|
||||
عضویت در خبرنامه
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div className="flex flex-col sm:flex-row gap-3 w-full md:w-auto relative z-10">
|
||||
<input
|
||||
type="email"
|
||||
placeholder="آدرس ایمیل شما"
|
||||
className="bg-white/10 border border-white/20 rounded-2xl px-5 py-3.5 text-xs outline-none focus:bg-white/20 placeholder:text-white/50 text-white w-full sm:w-64 font-vazir"
|
||||
/>
|
||||
<button className="bg-white text-canina-blue px-8 py-3.5 rounded-2xl font-black text-xs hover:bg-canina-gold hover:text-canina-dark transition-all whitespace-nowrap shadow-lg">
|
||||
عضویت در خبرنامه
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user