feat(ui): complete spacious light creamy redesign and retitle to The Creative Studio Suite
This commit is contained in:
@@ -56,31 +56,31 @@ export function ToolGridSection({
|
||||
const getCategoryIcon = (catId: string) => {
|
||||
switch (catId) {
|
||||
case 'portrait-retouch':
|
||||
return <Smile className="w-4 h-4 text-cyan-400" />;
|
||||
return <Smile className="w-4 h-4 text-blue-600" />;
|
||||
case 'restoration':
|
||||
return <RefreshCcw className="w-4 h-4 text-purple-400" />;
|
||||
return <RefreshCcw className="w-4 h-4 text-purple-600" />;
|
||||
case 'background-cutout':
|
||||
return <Scissors className="w-4 h-4 text-emerald-400" />;
|
||||
return <Scissors className="w-4 h-4 text-emerald-600" />;
|
||||
case 'creative-art':
|
||||
return <Palette className="w-4 h-4 text-pink-400" />;
|
||||
return <Palette className="w-4 h-4 text-pink-600" />;
|
||||
default:
|
||||
return <Wand2 className="w-4 h-4 text-cyan-400" />;
|
||||
return <Wand2 className="w-4 h-4 text-blue-600" />;
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
<section className="py-16 sm:py-20 lg:py-24 bg-[#05070B] border-t border-white/[0.08]">
|
||||
<section className="py-20 sm:py-24 lg:py-28 bg-[#FAF8F5] border-t border-slate-900/[0.08]">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
{/* Section Heading */}
|
||||
{(title || subtitle) && (
|
||||
<div className="text-center max-w-3xl mx-auto mb-12 space-y-3">
|
||||
<div className="text-center max-w-3xl mx-auto mb-14 space-y-3">
|
||||
{title && (
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-white tracking-tight">
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight">
|
||||
{resolveLocalised(title, locale)}
|
||||
</h2>
|
||||
)}
|
||||
{subtitle && (
|
||||
<p className="text-sm sm:text-base text-slate-400">
|
||||
<p className="text-base sm:text-lg text-slate-600 font-normal">
|
||||
{resolveLocalised(subtitle, locale)}
|
||||
</p>
|
||||
)}
|
||||
@@ -89,27 +89,27 @@ export function ToolGridSection({
|
||||
|
||||
{/* Search & Filters */}
|
||||
{(showSearch || showCategoryFilter) && (
|
||||
<div className="mb-10 flex flex-col md:flex-row items-stretch md:items-center justify-between gap-4">
|
||||
<div className="mb-12 flex flex-col md:flex-row items-stretch md:items-center justify-between gap-4">
|
||||
{showCategoryFilter && categories.length > 0 && (
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<button
|
||||
onClick={() => setSelectedCategory('all')}
|
||||
className={`px-4 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
|
||||
className={`px-4 py-2 rounded-full text-xs font-bold transition-all duration-200 shadow-sm ${
|
||||
selectedCategory === 'all'
|
||||
? 'bg-cyan-500 text-black shadow-lg shadow-cyan-500/25 scale-105'
|
||||
: 'bg-white/[0.04] text-slate-300 border border-white/[0.08] hover:bg-white/[0.08]'
|
||||
? 'bg-blue-600 text-white shadow-blue-500/20'
|
||||
: 'bg-white text-slate-700 border border-slate-200 hover:bg-slate-50'
|
||||
}`}
|
||||
>
|
||||
All Tools
|
||||
All Tools ({tools.length})
|
||||
</button>
|
||||
{categories.map((cat) => (
|
||||
<button
|
||||
key={cat.id}
|
||||
onClick={() => setSelectedCategory(cat.id)}
|
||||
className={`flex items-center gap-1.5 px-3.5 py-2 rounded-xl text-xs font-bold transition-all duration-200 ${
|
||||
className={`flex items-center gap-1.5 px-3.5 py-2 rounded-full text-xs font-bold transition-all duration-200 shadow-sm ${
|
||||
selectedCategory === cat.id
|
||||
? 'bg-cyan-500 text-black shadow-lg shadow-cyan-500/25 scale-105'
|
||||
: 'bg-white/[0.04] text-slate-300 border border-white/[0.08] hover:bg-white/[0.08]'
|
||||
? 'bg-blue-600 text-white shadow-blue-500/20'
|
||||
: 'bg-white text-slate-700 border border-slate-200 hover:bg-slate-50'
|
||||
}`}
|
||||
>
|
||||
<span>{getCategoryIcon(cat.id)}</span>
|
||||
@@ -127,7 +127,7 @@ export function ToolGridSection({
|
||||
placeholder="Search AI photo tools..."
|
||||
value={searchQuery}
|
||||
onChange={(e) => setSearchQuery(e.target.value)}
|
||||
className="w-full pl-10 pr-4 py-2.5 rounded-2xl text-xs sm:text-sm border border-white/[0.1] bg-[#0B0F17] text-white placeholder-slate-400 focus:outline-none focus:border-cyan-400 focus:ring-1 focus:ring-cyan-400 shadow-sm"
|
||||
className="w-full pl-10 pr-4 py-2.5 rounded-full text-xs sm:text-sm border border-slate-300 bg-white text-slate-900 placeholder-slate-400 focus:outline-none focus:border-blue-500 focus:ring-1 focus:ring-blue-500 shadow-sm"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
@@ -135,7 +135,7 @@ export function ToolGridSection({
|
||||
)}
|
||||
|
||||
{/* 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">
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-7 sm:gap-8">
|
||||
{filteredTools.map((tool) => {
|
||||
const homeApp = appMap.get(tool.homeApp);
|
||||
const example = tool.content?.examples?.[0];
|
||||
@@ -143,12 +143,12 @@ export function ToolGridSection({
|
||||
return (
|
||||
<div
|
||||
key={tool.id}
|
||||
className="group relative glass-card rounded-3xl p-5 sm:p-6 border border-white/[0.08] hover:border-cyan-500/30 transition-all duration-300 flex flex-col justify-between"
|
||||
className="group relative bg-white rounded-3xl p-5 sm:p-6 border border-slate-900/[0.08] hover:border-blue-400 shadow-cream-sm hover:shadow-cream-md 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-[#05070B] border border-white/[0.08] shadow-inner group/thumb">
|
||||
<div className="relative aspect-[16/10] rounded-2xl overflow-hidden mb-4 bg-slate-950 border border-slate-200 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 */}
|
||||
@@ -158,7 +158,7 @@ export function ToolGridSection({
|
||||
loading="lazy"
|
||||
className="h-full w-full object-cover"
|
||||
/>
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/80 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-slate-300 border border-white/10">
|
||||
<span className="absolute bottom-1.5 left-1.5 bg-black/80 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-white">
|
||||
Before
|
||||
</span>
|
||||
</div>
|
||||
@@ -170,7 +170,7 @@ export function ToolGridSection({
|
||||
loading="lazy"
|
||||
className="h-full w-full object-cover group-hover:scale-105 transition-transform duration-500"
|
||||
/>
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-gradient-to-r from-cyan-500 to-purple-600 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-white shadow-sm border border-white/20">
|
||||
<span className="absolute bottom-1.5 right-1.5 bg-blue-600/90 backdrop-blur-md px-1.5 py-0.5 rounded text-[8.5px] font-mono font-bold text-white shadow-sm">
|
||||
CRE AI
|
||||
</span>
|
||||
</div>
|
||||
@@ -180,28 +180,28 @@ export function ToolGridSection({
|
||||
|
||||
{/* Category Tag & Icon */}
|
||||
<div className="flex items-center justify-between mb-3">
|
||||
<span className="text-[10.5px] font-mono font-bold uppercase tracking-wider text-cyan-400 bg-cyan-950/60 px-2.5 py-0.5 rounded-lg border border-cyan-500/30">
|
||||
<span className="text-[10.5px] font-mono font-bold uppercase tracking-wider text-blue-700 bg-blue-50 px-2.5 py-0.5 rounded-lg border border-blue-200">
|
||||
{tool.category}
|
||||
</span>
|
||||
<div className="w-8 h-8 rounded-xl bg-white/[0.04] border border-white/[0.08] flex items-center justify-center text-slate-300 group-hover:scale-110 group-hover:border-cyan-500/30 transition-all duration-200">
|
||||
<div className="w-8 h-8 rounded-xl bg-slate-100 border border-slate-200 flex items-center justify-center text-slate-700 group-hover:scale-110 group-hover:border-blue-300 transition-all duration-200">
|
||||
{getCategoryIcon(tool.category)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h3 className="text-lg font-display font-bold text-white group-hover:text-cyan-300 transition-colors">
|
||||
<h3 className="text-lg font-display font-bold text-slate-900 group-hover:text-blue-600 transition-colors">
|
||||
{resolveLocalised(tool.name, locale)}
|
||||
</h3>
|
||||
|
||||
<p className="mt-2 text-xs text-slate-400 line-clamp-2 leading-relaxed">
|
||||
<p className="mt-2 text-xs text-slate-600 line-clamp-2 leading-relaxed font-normal">
|
||||
{resolveLocalised(tool.summary, locale)}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="mt-5 pt-4 border-t border-white/[0.08] space-y-3">
|
||||
<div className="mt-5 pt-4 border-t border-slate-100 space-y-3">
|
||||
{homeApp && (
|
||||
<div className="text-[11px] font-mono text-slate-400 flex items-center justify-between">
|
||||
<div className="text-[11px] font-mono text-slate-500 flex items-center justify-between">
|
||||
<span>Home App:</span>
|
||||
<span className="font-bold text-slate-300 truncate max-w-[140px]">
|
||||
<span className="font-bold text-slate-700 truncate max-w-[140px]">
|
||||
{resolveLocalised(homeApp.name, locale)}
|
||||
</span>
|
||||
</div>
|
||||
@@ -209,7 +209,7 @@ export function ToolGridSection({
|
||||
|
||||
<Link
|
||||
href={`/tools/${tool.slug}`}
|
||||
className="w-full inline-flex items-center justify-center gap-2 py-3 rounded-2xl text-xs font-bold text-black bg-gradient-to-r from-cyan-400 to-teal-300 hover:from-cyan-300 hover:to-teal-200 shadow-md transition-all duration-200"
|
||||
className="w-full inline-flex items-center justify-center gap-2 py-3 rounded-full text-xs font-bold text-white bg-blue-600 hover:bg-blue-700 shadow-sm shadow-blue-500/20 transition-all duration-200"
|
||||
>
|
||||
<span>Try Free Online</span>
|
||||
<ArrowRight className="w-3.5 h-3.5 group-hover:translate-x-1 transition-transform" />
|
||||
@@ -221,7 +221,7 @@ export function ToolGridSection({
|
||||
</div>
|
||||
|
||||
{filteredTools.length === 0 && (
|
||||
<div className="text-center py-16 text-slate-400 space-y-2 font-mono">
|
||||
<div className="text-center py-16 text-slate-500 space-y-2 font-mono">
|
||||
<p className="font-bold">No photo tools found matching "{searchQuery}"</p>
|
||||
<p className="text-xs">Try searching for "blemish", "background", "photo", or clear filters.</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user