fix(ui): restore tool links and reduce animation overhead

This commit is contained in:
2026-11-03 18:34:29 +05:30
parent f9c98a87b4
commit 34daaf57af
9 changed files with 28 additions and 81 deletions
+1 -2
View File
@@ -55,8 +55,7 @@ export function HeroSection({
</div>
<Kinetic3DText
primaryText="Make every photo"
highlightText="feel finished."
primaryText={resolvedTitle}
subtitle={resolvedSubtitle}
className="mt-7 text-left [&_h1]:text-left [&_h1]:text-[2.7rem] sm:[&_h1]:text-6xl lg:[&_h1]:text-[4.25rem] [&_h1]:leading-[1.02] [&_p]:mx-0 [&_p]:mt-5 [&_p]:max-w-lg [&_p]:text-base [&_p]:sm:text-lg"
/>
@@ -99,6 +99,7 @@ function SectionContent({ section, context }: SectionRendererProps) {
context={{
tools: context.tools || [],
categories: context.categories || [],
apps: context.apps || [],
locale,
}}
/>
-1
View File
@@ -235,7 +235,6 @@ export function TryItWidget({
ref={fileInputRef}
type="file"
accept="image/jpeg,image/png,image/webp"
accept="image/jpeg,image/png,image/webp"
className="hidden"
onChange={(e) => e.target.files?.[0] && handleFileChange(e.target.files[0])}
/>
@@ -15,7 +15,7 @@ import {
Cpu,
Smartphone,
} from 'lucide-react';
import { resolveLocalised, ToolItem, CategoryItem } from '@/types';
import { resolveLocalised, ToolItem, CategoryItem, AppItem } from '@/types';
import { BeforeAfterSlider } from '@/components/ui/BeforeAfterSlider';
import { SpotlightCard } from '@/components/animate-ui/SpotlightCard';
import { ShimmerBadge } from '@/components/animate-ui/ShimmerBadge';
@@ -26,6 +26,7 @@ export interface VerticalToolStackProps {
context: {
tools: ToolItem[];
categories: CategoryItem[];
apps: AppItem[];
locale: string;
};
}
@@ -70,7 +71,7 @@ const ACCENT_STYLES: Record<string, { badge: string; text: string }> = {
};
export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
const { tools, categories, locale } = context;
const { tools, categories, apps, locale } = context;
const [selectedCategory, setSelectedCategory] = useState<string>('all');
const filteredCategories = selectedCategory === 'all'
@@ -185,6 +186,7 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
{/* Dynamic Multi-Format Tool Cards with Alternating Layouts */}
<div className="space-y-10 sm:space-y-12">
{catTools.map((tool, toolIdx) => {
const homeApp = apps.find((app) => app.id === tool.homeApp);
const badgeInfo = MODEL_BADGES[tool.id] || {
model: 'Neural Vision v2.0',
latency: '< 450ms',
@@ -339,7 +341,7 @@ export function VerticalToolStackSection({ context }: VerticalToolStackProps) {
</Link>
<Link
href={`/apps/${tool.homeApp}`}
href={homeApp ? `/apps/${homeApp.slug}` : '/apps'}
className="inline-flex items-center gap-1.5 px-5 py-3 rounded-full text-xs font-bold text-slate-700 bg-slate-100 border border-slate-200 hover:bg-slate-200 transition-colors"
>
<Smartphone className="w-3.5 h-3.5 text-blue-600" />