feat: rebrand to CRE Innovations, enhance ultra-smooth UI and mobile responsiveness

This commit is contained in:
2026-11-03 12:31:06 +05:30
parent fa2eca3643
commit 7e137d88bc
37 changed files with 434 additions and 343 deletions
+35 -19
View File
@@ -1,6 +1,6 @@
import React from 'react';
import Link from 'next/link';
import { Sparkles, ArrowRight, Smartphone } from 'lucide-react';
import { Sparkles, ArrowRight, Smartphone, ShieldCheck, Zap } from 'lucide-react';
import { resolveLocalised, ToolItem, AppItem, VariantSpec } from '@/types';
import { TryItWidget } from './TryItWidget';
@@ -34,27 +34,43 @@ export function HeroSection({
if (variant === 'tryit' && tool) {
return (
<section className="relative overflow-hidden pt-8 pb-16 lg:pt-14 lg:pb-24">
{/* Ambient Gradient Background Glow */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-tr from-blue-500/10 via-teal-500/10 to-indigo-500/10 blur-3xl pointer-events-none -z-10" />
<section className="relative overflow-hidden pt-8 pb-14 sm:pt-12 sm:pb-20 lg:pt-16 lg:pb-24">
{/* Ambient Radial Gradient Lights */}
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-96 bg-gradient-to-tr from-blue-600/15 via-cyan-500/10 to-indigo-600/15 blur-3xl pointer-events-none -z-10" />
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="text-center max-w-3xl mx-auto space-y-4 mb-10">
<div className="text-center max-w-3xl mx-auto space-y-4 mb-8 sm:mb-12">
{resolvedBadge && (
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/60 border border-blue-200 dark:border-blue-800 text-xs font-semibold text-blue-700 dark:text-blue-300">
<Sparkles className="w-3.5 h-3.5 text-blue-500" />
<div className="inline-flex items-center space-x-2 px-4 py-1.5 rounded-full bg-blue-50/80 dark:bg-blue-950/80 border border-blue-200/80 dark:border-blue-800/80 text-xs font-bold text-blue-700 dark:text-cyan-300 shadow-sm backdrop-blur-md">
<Sparkles className="w-3.5 h-3.5 text-blue-500 dark:text-cyan-400" />
<span>{resolvedBadge}</span>
</div>
)}
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-extrabold text-slate-900 dark:text-white tracking-tight leading-tight">
<h1 className="text-3xl sm:text-5xl lg:text-6xl font-black text-slate-900 dark:text-white tracking-tight leading-tight">
{resolvedTitle}
</h1>
<p className="text-lg text-slate-600 dark:text-slate-300 leading-relaxed">
<p className="text-sm sm:text-lg text-slate-600 dark:text-slate-300 leading-relaxed max-w-2xl mx-auto">
{resolvedSubtitle}
</p>
{/* Quick Guarantees Pill */}
<div className="pt-1 flex flex-wrap items-center justify-center gap-3 sm:gap-6 text-xs font-semibold text-slate-500 dark:text-slate-400">
<span className="flex items-center space-x-1.5">
<ShieldCheck className="w-4 h-4 text-emerald-500" />
<span>Zero Storage Retention</span>
</span>
<span className="flex items-center space-x-1.5">
<Zap className="w-4 h-4 text-amber-500" />
<span>Hardware Accelerated</span>
</span>
<span className="flex items-center space-x-1.5">
<Sparkles className="w-4 h-4 text-blue-500" />
<span>Pore-Preserving Texture</span>
</span>
</div>
</div>
{/* Embedded Interactive Try-It Widget */}
{/* Embedded Interactive Free Try-It Widget */}
<div className="max-w-4xl mx-auto">
<TryItWidget
tool={tool}
@@ -68,38 +84,38 @@ export function HeroSection({
);
}
// Centered or Standard Hero
// Centered Hero
return (
<section className="relative overflow-hidden pt-12 pb-16 lg:pt-20 lg:pb-24 text-center">
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-80 bg-gradient-to-b from-blue-500/10 to-transparent blur-3xl pointer-events-none -z-10" />
<section className="relative overflow-hidden pt-12 pb-16 sm:pt-20 sm:pb-24 text-center">
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-full max-w-7xl h-80 bg-gradient-to-b from-blue-500/10 via-cyan-500/5 to-transparent blur-3xl pointer-events-none -z-10" />
<div className="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 space-y-6">
{resolvedBadge && (
<div className="inline-flex items-center space-x-2 px-3.5 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/60 border border-blue-200 dark:border-blue-800 text-xs font-semibold text-blue-700 dark:text-blue-300">
<div className="inline-flex items-center space-x-2 px-4 py-1.5 rounded-full bg-blue-50 dark:bg-blue-950/80 border border-blue-200 dark:border-blue-800 text-xs font-bold text-blue-700 dark:text-cyan-300">
<Sparkles className="w-3.5 h-3.5" />
<span>{resolvedBadge}</span>
</div>
)}
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-extrabold text-slate-900 dark:text-white tracking-tight leading-tight">
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-black text-slate-900 dark:text-white tracking-tight leading-tight">
{resolvedTitle}
</h1>
<p className="text-lg sm:text-xl text-slate-600 dark:text-slate-300 max-w-2xl mx-auto">
<p className="text-base sm:text-xl text-slate-600 dark:text-slate-300 max-w-2xl mx-auto leading-relaxed">
{resolvedSubtitle}
</p>
<div className="flex flex-wrap items-center justify-center gap-4 pt-4">
<div className="flex flex-wrap items-center justify-center gap-3 sm:gap-4 pt-4">
<Link
href="/tools"
className="inline-flex items-center space-x-2 px-6 py-3.5 rounded-xl font-semibold text-white bg-blue-600 hover:bg-blue-700 shadow-md shadow-blue-500/20 transition-all hover:scale-105 active:scale-95"
className="inline-flex items-center space-x-2 px-7 py-3.5 rounded-2xl font-bold text-sm text-white bg-blue-600 hover:bg-blue-700 shadow-xl shadow-blue-500/25 transition-all hover:scale-105 active:scale-95"
>
<span>Explore All Free Tools</span>
<ArrowRight className="w-4 h-4" />
</Link>
<Link
href="/apps"
className="inline-flex items-center space-x-2 px-6 py-3.5 rounded-xl font-semibold text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors"
className="inline-flex items-center space-x-2 px-7 py-3.5 rounded-2xl font-bold text-sm text-slate-700 dark:text-slate-200 bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 transition-colors"
>
<Smartphone className="w-4 h-4 text-slate-500" />
<span>Mobile Apps Suite</span>