Skip to content

Commit

Permalink
Merge pull request #43 from AElfProject/main
Browse files Browse the repository at this point in the history
deploy to gh pages
  • Loading branch information
yongenaelf authored Jul 16, 2024
2 parents 50f771a + 4b5e057 commit 4e25c19
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
4 changes: 2 additions & 2 deletions components/blocks/child-pages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ async function getData(id: string) {
export async function ChildPages(props: ChildPages) {
const data = await getData(props.wiki_catalog.wiki_token);
return (
<div className="grid lg:grid-cols-3 gap-2 my-8">
{data.map((i) => (
<div className="grid lg:grid-cols-2 gap-2 my-8">
{data.map(i => (
<Link key={key()} href={i.href}>
<Card className="hover:border-black h-full">
<CardHeader>
Expand Down
41 changes: 24 additions & 17 deletions components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react"
import * as React from "react";

import { cn } from "@/lib/utils"
import { cn } from "@/lib/utils";

const Card = React.forwardRef<
HTMLDivElement,
Expand All @@ -14,8 +14,8 @@ const Card = React.forwardRef<
)}
{...props}
/>
))
Card.displayName = "Card"
));
Card.displayName = "Card";

const CardHeader = React.forwardRef<
HTMLDivElement,
Expand All @@ -26,23 +26,23 @@ const CardHeader = React.forwardRef<
className={cn("flex flex-col space-y-1.5 p-6", className)}
{...props}
/>
))
CardHeader.displayName = "CardHeader"
));
CardHeader.displayName = "CardHeader";

const CardTitle = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLHeadingElement>
>(({ className, ...props }, ref) => (
<h3
<h2
ref={ref}
className={cn(
"text-2xl font-semibold leading-none tracking-tight",
"text-[1.2rem] leading-none tracking-tight font-bold",
className
)}
{...props}
/>
))
CardTitle.displayName = "CardTitle"
));
CardTitle.displayName = "CardTitle";

const CardDescription = React.forwardRef<
HTMLParagraphElement,
Expand All @@ -53,16 +53,16 @@ const CardDescription = React.forwardRef<
className={cn("text-sm text-muted-foreground", className)}
{...props}
/>
))
CardDescription.displayName = "CardDescription"
));
CardDescription.displayName = "CardDescription";

const CardContent = React.forwardRef<
HTMLDivElement,
React.HTMLAttributes<HTMLDivElement>
>(({ className, ...props }, ref) => (
<div ref={ref} className={cn("p-6 pt-0", className)} {...props} />
))
CardContent.displayName = "CardContent"
));
CardContent.displayName = "CardContent";

const CardFooter = React.forwardRef<
HTMLDivElement,
Expand All @@ -73,7 +73,14 @@ const CardFooter = React.forwardRef<
className={cn("flex items-center p-6 pt-0", className)}
{...props}
/>
))
CardFooter.displayName = "CardFooter"
));
CardFooter.displayName = "CardFooter";

export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent }
export {
Card,
CardHeader,
CardFooter,
CardTitle,
CardDescription,
CardContent,
};

0 comments on commit 4e25c19

Please sign in to comment.