Redesign: Editorial Fresh design system
Complete visual overhaul with distinctive editorial aesthetic: Design System: - New fonts: Fraunces (display) + DM Sans (body) - Color palette: Cream background, ink text, coral accents - Custom CSS variables and utility classes - Sharp edges (no rounded corners) for editorial feel Components: - Updated Button with new variants and colors - Updated Input with editorial styling - New card-editorial class with accent bar Pages: - Homepage: Full redesign with hero, features, CTA - Auth layout: Split screen with branding side - Login/Register: Editorial styling with tags - Dashboard: Cards with accent bars - Subscription: Clean feature comparison table Typography: - Fraunces for all headings (serif, characterful) - DM Sans for body text (clean, readable) - Editorial tags (uppercase, accent color) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createClient } from '@/lib/supabase/server'
|
||||
import { redirect } from 'next/navigation'
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
import Link from 'next/link'
|
||||
|
||||
export default async function DashboardPage() {
|
||||
const supabase = await createClient()
|
||||
@@ -32,81 +32,103 @@ export default async function DashboardPage() {
|
||||
} | null
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div className="space-y-10 opacity-0 animate-fade-up">
|
||||
{/* Header */}
|
||||
<div>
|
||||
<h1 className="text-2xl font-bold text-gray-900">Dashboard</h1>
|
||||
<p className="text-gray-500">Benvenuto in Leopost</p>
|
||||
<span className="editorial-tag">Dashboard</span>
|
||||
<h1 className="mt-4 text-4xl font-display font-semibold">
|
||||
Bentornato in Leopost
|
||||
</h1>
|
||||
<p className="mt-2 text-ink-light text-lg">
|
||||
Gestisci i tuoi contenuti social da qui.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Cards Grid */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="text-lg">Il tuo piano</CardTitle>
|
||||
<CardDescription>
|
||||
{/* Plan Card */}
|
||||
<div className="card-editorial">
|
||||
<div className="flex items-start justify-between mb-4">
|
||||
<h2 className="font-display text-xl font-semibold">Il tuo piano</h2>
|
||||
<span className="editorial-tag">
|
||||
{profile?.plans?.display_name_it || 'Gratuito'}
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<ul className="space-y-2 text-sm text-gray-600">
|
||||
<li>
|
||||
<span className="font-medium">{features?.posts_per_month || 10}</span> post/mese
|
||||
</li>
|
||||
<li>
|
||||
<span className="font-medium">{features?.social_accounts || 1}</span> account social
|
||||
</li>
|
||||
<li>
|
||||
<span className="font-medium">{features?.ai_models?.length || 1}</span> modelli AI
|
||||
</li>
|
||||
</ul>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</span>
|
||||
</div>
|
||||
<ul className="space-y-3 text-ink-light">
|
||||
<li className="flex justify-between">
|
||||
<span>Post al mese</span>
|
||||
<span className="font-medium text-ink">{features?.posts_per_month || 10}</span>
|
||||
</li>
|
||||
<li className="flex justify-between">
|
||||
<span>Account social</span>
|
||||
<span className="font-medium text-ink">{features?.social_accounts || 1}</span>
|
||||
</li>
|
||||
<li className="flex justify-between">
|
||||
<span>Modelli AI</span>
|
||||
<span className="font-medium text-ink">{features?.ai_models?.length || 1}</span>
|
||||
</li>
|
||||
</ul>
|
||||
<div className="mt-6 pt-4 border-t border-editorial">
|
||||
<Link
|
||||
href="/subscription/"
|
||||
className="text-sm text-accent hover:underline font-medium"
|
||||
>
|
||||
Cambia piano →
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="text-lg">Prossimi passi</CardTitle>
|
||||
<CardDescription>
|
||||
Completa la configurazione
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<ul className="space-y-2 text-sm">
|
||||
<li className="flex items-center gap-2">
|
||||
<span className="w-5 h-5 rounded-full bg-green-100 text-green-600 flex items-center justify-center text-xs">
|
||||
✓
|
||||
</span>
|
||||
Account creato
|
||||
</li>
|
||||
<li className="flex items-center gap-2 text-gray-400">
|
||||
<span className="w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center text-xs">
|
||||
2
|
||||
</span>
|
||||
Collega social (Phase 2)
|
||||
</li>
|
||||
<li className="flex items-center gap-2 text-gray-400">
|
||||
<span className="w-5 h-5 rounded-full bg-gray-100 flex items-center justify-center text-xs">
|
||||
3
|
||||
</span>
|
||||
Configura brand (Phase 3)
|
||||
</li>
|
||||
</ul>
|
||||
</CardContent>
|
||||
</Card>
|
||||
{/* Onboarding Card */}
|
||||
<div className="card-editorial">
|
||||
<h2 className="font-display text-xl font-semibold mb-4">Prossimi passi</h2>
|
||||
<ul className="space-y-4">
|
||||
<li className="flex items-start gap-3">
|
||||
<span className="w-6 h-6 flex items-center justify-center bg-success text-white text-xs font-medium">
|
||||
✓
|
||||
</span>
|
||||
<div>
|
||||
<p className="font-medium text-ink">Account creato</p>
|
||||
<p className="text-sm text-ink-light">Completo</p>
|
||||
</div>
|
||||
</li>
|
||||
<li className="flex items-start gap-3">
|
||||
<span className="w-6 h-6 flex items-center justify-center bg-cream-dark text-ink-muted text-xs font-medium">
|
||||
2
|
||||
</span>
|
||||
<div>
|
||||
<p className="font-medium text-ink-muted">Collega social</p>
|
||||
<p className="text-sm text-ink-muted">Prossimamente</p>
|
||||
</div>
|
||||
</li>
|
||||
<li className="flex items-start gap-3">
|
||||
<span className="w-6 h-6 flex items-center justify-center bg-cream-dark text-ink-muted text-xs font-medium">
|
||||
3
|
||||
</span>
|
||||
<div>
|
||||
<p className="font-medium text-ink-muted">Configura brand</p>
|
||||
<p className="text-sm text-ink-muted">Prossimamente</p>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle className="text-lg">Attivita</CardTitle>
|
||||
<CardDescription>
|
||||
Le tue statistiche
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent>
|
||||
<div className="text-center py-4 text-gray-400 text-sm">
|
||||
Nessuna attivita ancora.
|
||||
<br />
|
||||
Inizia collegando un account social!
|
||||
{/* Activity Card */}
|
||||
<div className="card-editorial">
|
||||
<h2 className="font-display text-xl font-semibold mb-4">Attività</h2>
|
||||
<div className="py-8 text-center">
|
||||
<div className="w-16 h-16 mx-auto mb-4 bg-cream-dark flex items-center justify-center">
|
||||
<svg className="w-8 h-8 text-ink-muted" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={1.5} d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" />
|
||||
</svg>
|
||||
</div>
|
||||
</CardContent>
|
||||
</Card>
|
||||
<p className="text-ink-muted text-sm">
|
||||
Nessuna attività ancora.
|
||||
</p>
|
||||
<p className="text-ink-muted text-sm mt-1">
|
||||
Collega un account social per iniziare!
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user