Skip to content

Commit

Permalink
feat(ui): add Card component to the ui kit page
Browse files Browse the repository at this point in the history
  • Loading branch information
LilaRest committed May 16, 2023
1 parent a6c1a7d commit 174718b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 5 deletions.
33 changes: 29 additions & 4 deletions src/app/ui/page.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
import { Button, buttonSizes, buttonVariants } from "@/components/ui";
import {
Button,
buttonSizes,
buttonVariants,
Card,
cardVariants,
} from "@/components/ui";
import { NextPage } from "next";

const Page: NextPage = () => {
return (
<>
<div className="flex flex-col items-center p-14 gap-14">
<h1 className="text-3xl font-bold text-center">Ledgity DApp UI kit</h1>
<div className="flex w-screen p-8">
<div className="flex flex-col items-center p-14">
<h1 className="text-3xl font-bold text-center mb-12">
Ledgity DApp UI kit
</h1>
<div className="flex w-screen p-12 gap-12">
<section>
<h2 className="text-2xl text-center font-semibold">Buttons</h2>
<div className="p-2">
Expand All @@ -21,6 +29,23 @@ const Page: NextPage = () => {
))}
</div>
</section>
<section>
<h2 className="text-2xl text-center font-semibold">Cards</h2>
<div className="p-2">
{cardVariants.map((variant, index) => (
<Card variant={variant} key={index} className="max-w-lg">
<h3 className="font-bold text-xl text-center">{variant}</h3>
<br />
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
</p>
</Card>
))}
</div>
</section>
</div>
</div>
</>
Expand Down
3 changes: 2 additions & 1 deletion src/components/ui/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
export * from "./Button";
export * from "./Scroller";
export * from "./Scroller";
export * from "./Card";

0 comments on commit 174718b

Please sign in to comment.