/** * Demo Tour Page * Comprehensive guide to all template features and demos */ import type { Metadata } from 'next'; import Link from 'next/link'; import { Palette, ShieldCheck, UserCircle, Play, CheckCircle2, ArrowRight, Home, LogIn, Settings, Users, Lock, Activity, UserCog, BarChart3, } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { Separator } from '@/components/ui/separator'; export const metadata: Metadata = { title: 'Demo Tour | FastNext Template', description: 'Try all features with demo credentials - comprehensive guide to the FastNext template', }; const demoCategories = [ { icon: Palette, title: 'Design System Hub', description: 'Browse components, layouts, spacing, and forms with live examples', href: '/dev', features: ['All UI components', 'Layout patterns', 'Spacing philosophy', 'Form implementations'], credentials: null, }, { icon: ShieldCheck, title: 'Authentication System', description: 'Test login, registration, password reset, and session management', href: '/login', features: ['Login & logout', 'Registration', 'Password reset', 'Session tokens'], credentials: { email: 'demo@example.com', password: 'Demo123!', role: 'Regular User', }, }, { icon: UserCircle, title: 'User Features', description: 'Experience user settings, profile management, and session monitoring', href: '/settings', features: ['Profile editing', 'Password changes', 'Active sessions', 'Preferences'], credentials: { email: 'demo@example.com', password: 'Demo123!', role: 'Regular User', }, }, { icon: Play, title: 'Admin Dashboard', description: 'Explore admin panel with user management and analytics', href: '/admin', features: ['User management', 'Analytics charts', 'Bulk operations', 'Organization control'], credentials: { email: 'admin@example.com', password: 'Admin123!', role: 'Admin', }, }, ]; const explorationPaths = [ { title: 'Quick Tour (5 min)', steps: [ { icon: Home, text: 'Browse Design System components', href: '/dev' }, { icon: LogIn, text: 'Test login flow', href: '/login' }, { icon: Settings, text: 'View user settings', href: '/settings' }, ], }, { title: 'Full Experience (15 min)', steps: [ { icon: Palette, text: 'Explore all design system pages', href: '/dev' }, { icon: ShieldCheck, text: 'Try complete auth flow', href: '/login' }, { icon: UserCog, text: 'Update profile and password', href: '/settings/profile' }, { icon: Activity, text: 'Check active sessions', href: '/settings/sessions' }, { icon: Users, text: 'Login as admin and manage users', href: '/admin/users' }, { icon: BarChart3, text: 'View analytics dashboard', href: '/admin' }, ], }, ]; const checklist = [ { label: 'Browse design system components', completed: false }, { label: 'Test login/logout flow', completed: false }, { label: 'Register a new account', completed: false }, { label: 'Reset password', completed: false }, { label: 'Update user profile', completed: false }, { label: 'Change password', completed: false }, { label: 'View active sessions', completed: false }, { label: 'Login as admin', completed: false }, { label: 'Manage users (admin)', completed: false }, { label: 'View analytics (admin)', completed: false }, { label: 'Perform bulk operations (admin)', completed: false }, { label: 'Explore organizations (admin)', completed: false }, ]; export default function DemoTourPage() { return (
{/* Header */}

Demo Tour

{/* Main Content */}
{/* Hero Section */}
Interactive Demo

Explore All Features

Try everything with our pre-configured demo accounts. All changes are safe to test and reset automatically.

{/* Quick Start Guide */}

Quick Start Guide

Follow these simple steps to get started

1
Choose a Demo
Browse the demo categories below and pick what interests you most
2
Use Credentials
Copy the demo credentials and login to explore authenticated features
3
Explore Freely
Test all features - everything resets automatically, so experiment away!
{/* Demo Categories */}

Demo Categories

Explore different areas of the template

{demoCategories.map((category) => { const Icon = category.icon; return (
{category.credentials && ( Login Required )}
{category.title} {category.description}
{/* Features List */}
{category.features.map((feature) => (
{feature}
))}
{/* Credentials */} {category.credentials && (

{category.credentials.role} Credentials:

{category.credentials.email}

{category.credentials.password}

)} {/* CTA */}
); })}
{/* Suggested Exploration Paths */}

Suggested Exploration Paths

Choose your adventure based on available time

{explorationPaths.map((path) => ( {path.title}
{path.steps.map((step, index) => { const StepIcon = step.icon; return (
{index + 1}
{step.text} ); })}
))}
{/* What to Try Checklist */}

What to Try

Complete checklist of features to explore (for your reference)

Feature Checklist Try these features to experience the full power of the template
{checklist.map((item, index) => (
{item.completed && }
{item.label}
))}
{/* CTA Section */}

Ready to Start?

Pick a demo category above or jump right into the action

); }