feat(ui): expand layout width to 1640px, fix word breaking, polish buttons and colors, implement 3 horizontal animated processing cards in how section

This commit is contained in:
2026-11-04 18:05:26 +05:30
parent 70e13c86b6
commit cd98c1a483
11 changed files with 493 additions and 332 deletions
@@ -79,8 +79,8 @@ export function RecommendedAppsSection({
const displayApps = apps && apps.length > 0 ? apps : DEFAULT_RECOMMENDED_APPS;
return (
<section id="recommended-apps" className="py-20 sm:py-28 px-4 sm:px-6 lg:px-8 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
<div className="max-w-7xl mx-auto space-y-12">
<section id="recommended-apps" className="py-20 sm:py-28 px-4 sm:px-6 md:px-8 lg:px-10 bg-[#FAF8F5] relative overflow-hidden border-t border-slate-900/[0.06]">
<div className="max-w-[1640px] mx-auto space-y-12">
{/* Section Header with MagicUI TextAnimate */}
<div className="text-center max-w-3xl mx-auto space-y-4">
<div className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full text-xs font-mono font-semibold tracking-wider uppercase text-blue-700 bg-blue-50 border border-blue-200">
@@ -94,7 +94,7 @@ export function RecommendedAppsSection({
</TextAnimate>
</h2>
<p className="text-sm sm:text-base text-slate-600 font-sans">
<p className="text-sm sm:text-base text-slate-600 font-sans text-pretty">
<TextAnimate animation="fadeIn" by="word" delay={0.2}>
{subtitle}
</TextAnimate>
@@ -102,7 +102,7 @@ export function RecommendedAppsSection({
</div>
{/* 4 App Cards Grid */}
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 sm:gap-8">
{displayApps.map((app: any) => {
const name = typeof app.name === 'string' ? app.name : resolveLocalised(app.name, locale);
const tagline = typeof app.tagline === 'string' ? app.tagline : resolveLocalised(app.tagline, locale);
@@ -113,15 +113,15 @@ export function RecommendedAppsSection({
return (
<div
key={slug}
className="group relative flex flex-col justify-between rounded-3xl bg-white border border-slate-200/90 p-6 shadow-cream-sm hover:shadow-cream-lg transition-all duration-300 hover:-translate-y-1 hover:border-blue-400/60"
className="group relative flex flex-col justify-between rounded-3xl bg-white border border-slate-200/90 p-7 shadow-cream-sm hover:shadow-cream-lg transition-all duration-300 hover:-translate-y-1 hover:border-blue-400/60"
>
<div>
{/* Top App Icon & Rating */}
<div className="flex items-center justify-between mb-5">
<div className={`w-13 h-13 w-12 h-12 rounded-2xl bg-gradient-to-br ${gradient} flex items-center justify-center text-white shadow-md shadow-blue-500/20 group-hover:scale-110 transition-transform`}>
<div className={`w-12 h-12 rounded-2xl bg-gradient-to-br ${gradient} flex items-center justify-center text-white shadow-md shadow-blue-500/20 group-hover:scale-110 transition-transform`}>
<Smartphone className="w-6 h-6 text-white" />
</div>
<div className="flex items-center gap-1 px-2.5 py-1 rounded-full bg-amber-50 border border-amber-200/80 text-amber-800 text-xs font-bold">
<div className="flex items-center gap-1 px-3 py-1 rounded-full bg-amber-50 border border-amber-200/80 text-amber-800 text-xs font-bold">
<Star className="w-3.5 h-3.5 fill-amber-400 text-amber-400" />
<span>{ratingValue}</span>
</div>
@@ -131,22 +131,22 @@ export function RecommendedAppsSection({
<h3 className="text-lg font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
{name}
</h3>
<p className="mt-1 text-xs text-slate-500 leading-relaxed min-h-[32px]">
<p className="mt-1.5 text-xs text-slate-500 leading-relaxed min-h-[34px]">
{tagline}
</p>
{/* Platforms & Free bonus badge */}
<div className="mt-4 flex flex-wrap items-center gap-1.5 text-[11px] font-mono text-slate-600">
<span className="px-2 py-0.5 rounded bg-slate-100 font-semibold">iOS</span>
<span className="px-2 py-0.5 rounded bg-slate-100 font-semibold">Android</span>
<span className="px-2 py-0.5 rounded bg-emerald-50 text-emerald-700 font-semibold border border-emerald-200">
<div className="mt-4 flex flex-wrap items-center gap-2 text-[11px] font-mono text-slate-600">
<span className="px-2.5 py-0.5 rounded-md bg-slate-100 font-semibold text-slate-700">iOS</span>
<span className="px-2.5 py-0.5 rounded-md bg-slate-100 font-semibold text-slate-700">Android</span>
<span className="px-2.5 py-0.5 rounded-md bg-emerald-50 text-emerald-700 font-semibold border border-emerald-200">
50 Credits Bonus
</span>
</div>
{/* Bullet Highlights */}
{app.features && (
<ul className="mt-4 space-y-1.5 text-xs text-slate-600 border-t border-slate-100 pt-3">
<ul className="mt-5 space-y-2 text-xs text-slate-600 border-t border-slate-100 pt-4">
{app.features.map((feat: string, fIdx: number) => (
<li key={fIdx} className="flex items-center gap-2">
<CheckCircle2 className="w-3.5 h-3.5 text-blue-600 flex-shrink-0" />
@@ -158,10 +158,10 @@ export function RecommendedAppsSection({
</div>
{/* Bottom Action Button */}
<div className="pt-6 mt-4 border-t border-slate-100">
<div className="pt-6 mt-5 border-t border-slate-100">
<Link
href={`/apps/${slug}`}
className="w-full flex items-center justify-center gap-2 py-3 rounded-xl text-xs font-bold text-slate-800 bg-slate-100 hover:bg-blue-600 hover:text-white transition-all group-hover:bg-blue-600 group-hover:text-white"
className="w-full flex items-center justify-center gap-2 py-3.5 rounded-xl text-xs font-bold text-white bg-slate-950 group-hover:bg-blue-600 transition-all duration-300 shadow-sm group-hover:shadow-md"
>
<span>Get App & QR Code</span>
<ArrowRight className="w-3.5 h-3.5 transition-transform group-hover:translate-x-1" />