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
@@ -103,8 +103,8 @@ export function ShiftableToolsGridSection({
const row2 = displayItems.slice(4, 8);
return (
<section id="our-tools" className="py-20 sm:py-28 px-4 sm:px-6 lg:px-8 bg-[#FAF8F5] relative overflow-hidden">
<div className="max-w-7xl mx-auto space-y-12">
<section id="our-tools" className="py-20 sm:py-28 px-4 sm:px-6 md:px-8 lg:px-10 bg-[#FAF8F5] relative overflow-hidden">
<div className="max-w-[1640px] mx-auto space-y-12">
{/* Header */}
<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">
@@ -113,12 +113,12 @@ export function ShiftableToolsGridSection({
</div>
<h2 className="text-3xl sm:text-5xl font-display font-extrabold text-slate-900 tracking-tight">
<TextAnimate animation="slideLeft" by="word">
<TextAnimate animation="slideLeft" by="character">
{title}
</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>
@@ -135,7 +135,7 @@ export function ShiftableToolsGridSection({
<div className="pt-6 text-center">
<Link
href="/tools"
className="group inline-flex items-center gap-2.5 px-8 py-4 rounded-full font-bold text-xs sm:text-sm text-white bg-slate-950 hover:bg-blue-600 shadow-md shadow-slate-900/10 transition-all duration-300 hover:scale-105 active:scale-95"
className="group inline-flex items-center gap-2.5 px-8 py-4 rounded-full font-bold text-xs sm:text-sm text-white bg-gradient-to-r from-slate-950 via-slate-900 to-indigo-950 hover:from-blue-600 hover:to-indigo-600 border border-white/10 shadow-lg shadow-slate-900/15 transition-all duration-300 hover:scale-105 active:scale-95"
>
<span>See More Tools</span>
<ArrowRight className="w-4 h-4 transition-transform group-hover:translate-x-1" />
@@ -150,7 +150,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
const [hoveredId, setHoveredId] = useState<string | null>(null);
return (
<div className="flex flex-col md:flex-row gap-4 sm:gap-5 w-full items-start">
<div className="flex flex-col md:flex-row gap-4 sm:gap-6 w-full items-start">
{items.map((item) => {
const isHovered = hoveredId === item.id;
const hasOtherHovered = hoveredId !== null && !isHovered;
@@ -173,7 +173,7 @@ function ShiftableRow({ items }: { items: ToolMediaItem[] }) {
{/* Window Container with strictly locked pixel height to eliminate any vertical resizing */}
<Link
href={`/tools/${item.slug}`}
className="group block relative w-full h-[260px] sm:h-[300px] rounded-2xl sm:rounded-3xl overflow-hidden bg-slate-950 border border-slate-900/[0.08] shadow-cream-sm hover:shadow-cream-lg transition-shadow duration-500"
className="group block relative w-full h-[280px] sm:h-[320px] lg:h-[340px] rounded-2xl sm:rounded-3xl overflow-hidden bg-slate-950 border border-slate-900/[0.08] shadow-cream-sm hover:shadow-cream-lg transition-shadow duration-500"
>
{/* Media Renderer */}
<ToolWindowMedia item={item} isHovered={isHovered} />