Skip to content

Commit

Permalink
Simple card
Browse files Browse the repository at this point in the history
  • Loading branch information
ILmoshe committed Jul 23, 2024
1 parent c5749a0 commit ba0cb95
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 1 deletion.
8 changes: 7 additions & 1 deletion geommdb_ui/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import ConnectionCard from "@/components/connection-card";
import { ModeToggle } from "@/components/toggle-theme";
import { Button } from "@/components/ui/button";
import Image from "next/image";

export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-between p-24">

<div className="grid grid-cols-3 gap-4">
<ConnectionCard />
<ConnectionCard />
<ConnectionCard />
<ConnectionCard />
</div>
</main>
);
}
51 changes: 51 additions & 0 deletions geommdb_ui/src/components/connection-card.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
/**
* v0 by Vercel.
* @see https://v0.dev/t/zCP3j9rTQHk
* Documentation: https://v0.dev/docs#integrating-generated-code-into-your-nextjs-app
*/
import {
Card,
CardHeader,
CardTitle,
CardDescription,
CardContent,
} from "@/components/ui/card";
import { Label } from "@/components/ui/label";
import { Input } from "@/components/ui/input";
import { Button } from "@/components/ui/button";

export default function ConnectionCard() {
return (
<Card className="w-full max-w-md">
<CardHeader>
<CardTitle>Connect to GEOMMDB</CardTitle>
<CardDescription>
Connect your application to a GEOMMDB instance.
</CardDescription>
</CardHeader>
<CardContent>
<form className="grid gap-4">
<div className="grid gap-2">
<Label htmlFor="host">Host</Label>
<Input id="host" placeholder="Enter GEOMMDB host" />
</div>
<div className="grid gap-2">
<Label htmlFor="port">Port</Label>
<Input id="port" type="number" placeholder="Enter GEOMMDB port" />
</div>
<div className="grid gap-2">
<Label htmlFor="password">Password</Label>
<Input
id="password"
type="password"
placeholder="Enter GEOMMDB password"
/>
</div>
<Button type="submit" className="w-full">
Connect
</Button>
</form>
</CardContent>
</Card>
);
}

0 comments on commit ba0cb95

Please sign in to comment.