| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- import Link from "next/link";
- import Image from "next/image";
- import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server";
- import { ArrowRight, Zap, BarChart3 } from "lucide-react";
- import { Button } from "@/components/ui/button";
- import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
- export default async function Home() {
- const { getUser } = getKindeServerSession();
- const user = await getUser();
- return (
- <div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800">
- {/* Hero Section */}
- <section className="relative overflow-hidden py-24 sm:py-32">
- <div className="container mx-auto px-4 sm:px-6 lg:px-8">
- <div className="mx-auto max-w-2xl text-center">
- <h1 className="text-4xl font-bold tracking-tight text-foreground sm:text-6xl">
- Welcome to{" "}
- <span className="inline-block h-12 w-auto sm:h-16">
- <Image
- src="/vtorio.svg"
- alt="VTOR.IO"
- width={96}
- height={24}
- className="h-full w-auto dark:hidden"
- priority
- />
- <Image
- src="/vtorio-dark.svg"
- alt="VTOR.IO"
- width={96}
- height={24}
- className="h-full w-auto hidden dark:block"
- priority
- />
- </span>
- </h1>
- <p className="mt-6 text-lg leading-8 text-muted-foreground">
- Streamline your workflow with powerful file management, intelligent imports,
- and comprehensive analytics. Automate your data workflows with ease.
- </p>
- <div className="mt-10 flex items-center justify-center gap-x-6">
- {user ? (
- <Link href="/dashboard">
- <Button size="lg" className="group">
- Go to Dashboard
- <ArrowRight className="ml-2 h-4 w-4 transition-transform group-hover:translate-x-1" />
- </Button>
- </Link>
- ) : (
- <>
- <Link href="/api/auth/login">
- <Button size="lg" className="group">
- Get Started
- <ArrowRight className="ml-2 h-4 w-4 transition-transform group-hover:translate-x-1" />
- </Button>
- </Link>
- </>
- )}
- </div>
- </div>
- </div>
- {/* Background decoration */}
- <div className="absolute inset-0 -z-10 overflow-hidden">
- <div className="absolute left-1/2 top-0 -translate-x-1/2 blur-3xl">
- <div className="aspect-[1155/678] w-[72.1875rem] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-20"></div>
- </div>
- </div>
- </section>
- {/* Features Section */}
- <section className="py-24 sm:py-32">
- <div className="container mx-auto px-4 sm:px-6 lg:px-8">
- <div className="mx-auto max-w-2xl text-center mb-16">
- <h2 className="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
- Everything you need to manage your data
- </h2>
- <p className="mt-4 text-lg text-muted-foreground">
- Powerful features designed to help you work smarter, not harder.
- </p>
- </div>
- <div className="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto">
- <Card className="relative overflow-hidden">
- <CardHeader>
- <div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
- <Zap className="w-6 h-6 text-primary" />
- </div>
- <CardTitle>Smart Imports</CardTitle>
- <CardDescription>
- Process Excel files with intelligent mapping and validation
- </CardDescription>
- </CardHeader>
- <CardContent>
- <p className="text-sm text-muted-foreground">
- Upload your Excel files and let our system intelligently map columns,
- validate data, and create structured imports with ease.
- </p>
- </CardContent>
- </Card>
- <Card className="relative overflow-hidden">
- <CardHeader>
- <div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
- <svg className="w-6 h-6 text-primary" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M13 10V3L4 14h7v7l9-11h-7z" />
- </svg>
- </div>
- <CardTitle>Automated Workflows</CardTitle>
- <CardDescription>
- Streamline repetitive tasks with intelligent automation and scheduled processing
- </CardDescription>
- </CardHeader>
- <CardContent>
- <p className="text-sm text-muted-foreground">
- Create powerful automation rules that trigger file processing, data validation,
- and report generation based on schedules or events. Save hours of manual work.
- </p>
- </CardContent>
- </Card>
- <Card className="relative overflow-hidden">
- <CardHeader>
- <div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
- <BarChart3 className="w-6 h-6 text-primary" />
- </div>
- <CardTitle>Analytics & Insights</CardTitle>
- <CardDescription>
- Get detailed reports and actionable insights from your data
- </CardDescription>
- </CardHeader>
- <CardContent>
- <p className="text-sm text-muted-foreground">
- Transform your raw data into meaningful insights with
- comprehensive analytics and customizable reporting dashboards.
- </p>
- </CardContent>
- </Card>
- </div>
- </div>
- </section>
- </div>
- );
- }
|