Skip to content

Commit

Permalink
feat: update dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminshafii committed Dec 31, 2024
1 parent 2b7dcda commit b42edb6
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions packages/web/app/dashboard/lifetime/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
import { AutomatedSetup } from "./automated-setup";
import { LegacySetup } from "./legacy-setup";
import { InfoIcon, BookOpenIcon, Link, ArrowLeftIcon } from "lucide-react";
import { InfoIcon, BookOpenIcon, } from "lucide-react";
import { Button } from "@/components/ui/button";

import Link from "next/link";
export default function LifetimeAccessPage() {
return (
<div className="min-h-screen bg-gradient-to-b from-gray-100 to-gray-200 dark:from-gray-900 dark:to-gray-800">
Expand All @@ -18,6 +18,22 @@ export default function LifetimeAccessPage() {
</TabsList>

<TabsContent value="automated">
<div className="flex items-center justify-between mb-6 p-4 rounded-lg border bg-card">
<div className="space-y-1">
<p className="text-sm text-muted-foreground">
Already deployed your instance?
</p>
<p className="text-xs text-muted-foreground">
Visit your deployment dashboard to manage models and API keys
</p>
</div>
<Link href="/dashboard/deployment" className="shrink-0">
<Button variant="outline" className="gap-2">
Deployment Dashboard
</Button>
</Link>
</div>

<div className="space-y-6 mb-8">
<div className="rounded-lg border bg-card shadow-sm transition-all">
<div className="flex items-center gap-3 border-b p-4">
Expand Down Expand Up @@ -75,12 +91,7 @@ export default function LifetimeAccessPage() {
</div>
<AutomatedSetup />
{/* if you alread deployed you can also check out the deployment page */}
<Link href="/dashboard/deployment">
<Button>
<ArrowLeftIcon className="h-4 w-4" />
Back to Dashboard
</Button>
</Link>

</TabsContent>

<TabsContent value="legacy">
Expand Down

0 comments on commit b42edb6

Please sign in to comment.