page.tsx 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. import Link from "next/link";
  2. import { getKindeServerSession } from "@kinde-oss/kinde-auth-nextjs/server";
  3. import { ArrowRight, Zap, Shield, BarChart3 } from "lucide-react";
  4. import { Button } from "@/components/ui/button";
  5. import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";
  6. export default async function Home() {
  7. const { getUser } = getKindeServerSession();
  8. const user = await getUser();
  9. return (
  10. <div className="min-h-screen bg-gradient-to-br from-slate-50 to-slate-100 dark:from-slate-900 dark:to-slate-800">
  11. {/* Hero Section */}
  12. <section className="relative overflow-hidden py-24 sm:py-32">
  13. <div className="container mx-auto px-4 sm:px-6 lg:px-8">
  14. <div className="mx-auto max-w-2xl text-center">
  15. <h1 className="text-4xl font-bold tracking-tight text-foreground sm:text-6xl">
  16. Welcome to{" "}
  17. <span className="bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent">
  18. VTOR.IO
  19. </span>
  20. </h1>
  21. <p className="mt-6 text-lg leading-8 text-muted-foreground">
  22. Streamline your workflow with powerful file management, intelligent imports,
  23. and comprehensive analytics. Built for modern teams who value efficiency.
  24. </p>
  25. <div className="mt-10 flex items-center justify-center gap-x-6">
  26. {user ? (
  27. <Link href="/dashboard">
  28. <Button size="lg" className="group">
  29. Go to Dashboard
  30. <ArrowRight className="ml-2 h-4 w-4 transition-transform group-hover:translate-x-1" />
  31. </Button>
  32. </Link>
  33. ) : (
  34. <>
  35. <Link href="/api/auth/login">
  36. <Button size="lg" className="group">
  37. Get Started
  38. <ArrowRight className="ml-2 h-4 w-4 transition-transform group-hover:translate-x-1" />
  39. </Button>
  40. </Link>
  41. </>
  42. )}
  43. </div>
  44. </div>
  45. </div>
  46. {/* Background decoration */}
  47. <div className="absolute inset-0 -z-10 overflow-hidden">
  48. <div className="absolute left-1/2 top-0 -translate-x-1/2 blur-3xl">
  49. <div className="aspect-[1155/678] w-[72.1875rem] bg-gradient-to-tr from-[#ff80b5] to-[#9089fc] opacity-20"></div>
  50. </div>
  51. </div>
  52. </section>
  53. {/* Features Section */}
  54. <section className="py-24 sm:py-32">
  55. <div className="container mx-auto px-4 sm:px-6 lg:px-8">
  56. <div className="mx-auto max-w-2xl text-center mb-16">
  57. <h2 className="text-3xl font-bold tracking-tight text-foreground sm:text-4xl">
  58. Everything you need to manage your data
  59. </h2>
  60. <p className="mt-4 text-lg text-muted-foreground">
  61. Powerful features designed to help you work smarter, not harder.
  62. </p>
  63. </div>
  64. <div className="grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto">
  65. <Card className="relative overflow-hidden">
  66. <CardHeader>
  67. <div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
  68. <Zap className="w-6 h-6 text-primary" />
  69. </div>
  70. <CardTitle>Smart Imports</CardTitle>
  71. <CardDescription>
  72. Process Excel files with intelligent mapping and validation
  73. </CardDescription>
  74. </CardHeader>
  75. <CardContent>
  76. <p className="text-sm text-muted-foreground">
  77. Upload your Excel files and let our system intelligently map columns,
  78. validate data, and create structured imports with ease.
  79. </p>
  80. </CardContent>
  81. </Card>
  82. <Card className="relative overflow-hidden">
  83. <CardHeader>
  84. <div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
  85. <Shield className="w-6 h-6 text-primary" />
  86. </div>
  87. <CardTitle>Secure Storage</CardTitle>
  88. <CardDescription>
  89. Your files are encrypted and safely stored in the cloud
  90. </CardDescription>
  91. </CardHeader>
  92. <CardContent>
  93. <p className="text-sm text-muted-foreground">
  94. Enterprise-grade security with encrypted file storage,
  95. access controls, and audit trails for complete peace of mind.
  96. </p>
  97. </CardContent>
  98. </Card>
  99. <Card className="relative overflow-hidden">
  100. <CardHeader>
  101. <div className="w-12 h-12 bg-primary/10 rounded-lg flex items-center justify-center mb-4">
  102. <BarChart3 className="w-6 h-6 text-primary" />
  103. </div>
  104. <CardTitle>Analytics & Insights</CardTitle>
  105. <CardDescription>
  106. Get detailed reports and actionable insights from your data
  107. </CardDescription>
  108. </CardHeader>
  109. <CardContent>
  110. <p className="text-sm text-muted-foreground">
  111. Transform your raw data into meaningful insights with
  112. comprehensive analytics and customizable reporting dashboards.
  113. </p>
  114. </CardContent>
  115. </Card>
  116. </div>
  117. </div>
  118. </section>
  119. </div>
  120. );
  121. }