feat: complete visual redesign with Outfit & Plus Jakarta Sans fonts, visual use-cases, transformation reel, and enhanced SEO

This commit is contained in:
2026-11-03 12:43:34 +05:30
parent 7e137d88bc
commit be817fea91
12 changed files with 806 additions and 122 deletions
+43 -9
View File
@@ -2,7 +2,7 @@
import React, { useState, useMemo } from 'react';
import Link from 'next/link';
import { Search, Sparkles, ArrowRight, Wand2, Scissors, Smile, Palette, RefreshCcw } from 'lucide-react';
import { Search, Sparkles, ArrowRight, Wand2, Scissors, Smile, Palette, RefreshCcw, Eye } from 'lucide-react';
import { ToolItem, CategoryItem, AppItem, resolveLocalised } from '@/types';
interface ToolGridSectionProps {
@@ -75,7 +75,7 @@ export function ToolGridSection({
{(title || subtitle) && (
<div className="text-center max-w-3xl mx-auto mb-10 space-y-3">
{title && (
<h2 className="text-3xl sm:text-4xl font-black text-slate-900 dark:text-white tracking-tight">
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-black text-slate-900 dark:text-white tracking-tight">
{resolveLocalised(title, locale)}
</h2>
)}
@@ -134,22 +134,56 @@ export function ToolGridSection({
</div>
)}
{/* Tools Cards Grid */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6">
{/* Tools Cards Grid with Visual Image Previews */}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6 sm:gap-7">
{filteredTools.map((tool) => {
const homeApp = appMap.get(tool.homeApp);
const example = tool.content?.examples?.[0];
return (
<div
key={tool.id}
className="group relative bg-white dark:bg-slate-900/90 rounded-3xl p-6 border border-slate-200/80 dark:border-slate-800/80 shadow-sm hover:shadow-2xl hover:shadow-blue-500/10 hover:border-blue-500/40 hover:-translate-y-1 transition-all duration-300 flex flex-col justify-between"
className="group relative bg-white dark:bg-slate-900/95 rounded-3xl p-5 sm:p-6 border border-slate-200/80 dark:border-slate-800/80 shadow-md hover:shadow-2xl hover:shadow-blue-500/10 hover:border-blue-500/40 hover:-translate-y-1.5 transition-all duration-300 flex flex-col justify-between"
>
<div>
{/* Visual Before/After Preview Card */}
{example ? (
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-4 bg-slate-950 shadow-inner group/thumb">
<div className="grid grid-cols-2 h-full w-full">
<div className="relative h-full overflow-hidden border-r border-white/20">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={example.before}
alt="Before preview"
loading="lazy"
className="h-full w-full object-cover"
/>
<span className="absolute bottom-1.5 left-1.5 bg-black/75 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
Before
</span>
</div>
<div className="relative h-full overflow-hidden">
{/* eslint-disable-next-line @next/next/no-img-element */}
<img
src={example.after}
alt="After preview"
loading="lazy"
className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-300"
/>
<span className="absolute bottom-1.5 right-1.5 bg-blue-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[9px] font-bold text-white">
After
</span>
</div>
</div>
</div>
) : null}
{/* Category Tag & Icon */}
<div className="flex items-center justify-between mb-4">
<div className="flex items-center justify-between mb-3">
<span className="text-[11px] font-bold tracking-wider uppercase text-blue-600 dark:text-cyan-400 bg-blue-50 dark:bg-blue-950/60 px-3 py-1 rounded-lg border border-blue-100 dark:border-blue-900/40">
{tool.category}
</span>
<div className="w-9 h-9 rounded-xl bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-slate-600 dark:text-slate-300 group-hover:scale-110 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 group-hover:text-blue-600 transition-all duration-200">
<div className="w-8 h-8 rounded-xl bg-slate-100 dark:bg-slate-800 flex items-center justify-center text-slate-600 dark:text-slate-300 group-hover:scale-110 group-hover:bg-blue-50 dark:group-hover:bg-blue-950 group-hover:text-blue-600 transition-all duration-200">
{getCategoryIcon(tool.category)}
</div>
</div>
@@ -158,12 +192,12 @@ export function ToolGridSection({
{resolveLocalised(tool.name, locale)}
</h3>
<p className="mt-2 text-xs text-slate-600 dark:text-slate-400 line-clamp-3 leading-relaxed">
<p className="mt-2 text-xs text-slate-600 dark:text-slate-400 line-clamp-2 leading-relaxed">
{resolveLocalised(tool.summary, locale)}
</p>
</div>
<div className="mt-6 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-3">
<div className="mt-5 pt-4 border-t border-slate-100 dark:border-slate-800/80 space-y-3">
{homeApp && (
<div className="text-[11px] text-slate-500 dark:text-slate-400 flex items-center justify-between">
<span className="font-medium">Home App:</span>