Added new theme (again), updated some homepage stuff
This commit is contained in:
parent
ec5ee847e0
commit
9deffbb099
17 changed files with 349 additions and 423 deletions
|
|
@ -2,19 +2,6 @@ import * as React from "react";
|
|||
|
||||
import { cn } from "../lib/utils";
|
||||
|
||||
/**
|
||||
* Executes Card.
|
||||
* @param {
|
||||
className,
|
||||
size = "default",
|
||||
...props
|
||||
} Parameter {
|
||||
className,
|
||||
size = "default",
|
||||
...props
|
||||
}.
|
||||
* @returns unknown.
|
||||
*/
|
||||
function Card({
|
||||
className,
|
||||
size = "default",
|
||||
|
|
@ -25,7 +12,7 @@ function Card({
|
|||
data-slot="card"
|
||||
data-size={size}
|
||||
className={cn(
|
||||
"group/card flex flex-col gap-4 overflow-hidden rounded-lg bg-card py-4 text-xs/relaxed text-card-foreground ring-1 ring-foreground/10 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 *:[img:first-child]:rounded-t-lg *:[img:last-child]:rounded-b-lg",
|
||||
"group/card flex flex-col gap-4 overflow-hidden rounded-xl bg-card py-4 text-sm text-card-foreground ring-1 ring-foreground/10 has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:gap-3 data-[size=sm]:py-3 data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
|
@ -33,17 +20,12 @@ function Card({
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes CardHeader.
|
||||
* @param { className, ...props } Parameter { className, ...props }.
|
||||
* @returns unknown.
|
||||
*/
|
||||
function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return (
|
||||
<div
|
||||
data-slot="card-header"
|
||||
className={cn(
|
||||
"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-lg px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",
|
||||
"group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-4 group-data-[size=sm]/card:px-3 has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-4 group-data-[size=sm]/card:[.border-b]:pb-3",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
|
@ -51,41 +33,29 @@ function CardHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes CardTitle.
|
||||
* @param { className, ...props } Parameter { className, ...props }.
|
||||
* @returns unknown.
|
||||
*/
|
||||
function CardTitle({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return (
|
||||
<div
|
||||
data-slot="card-title"
|
||||
className={cn("text-sm font-medium", className)}
|
||||
className={cn(
|
||||
"text-base leading-snug font-medium group-data-[size=sm]/card:text-sm",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes CardDescription.
|
||||
* @param { className, ...props } Parameter { className, ...props }.
|
||||
* @returns unknown.
|
||||
*/
|
||||
function CardDescription({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return (
|
||||
<div
|
||||
data-slot="card-description"
|
||||
className={cn("text-xs/relaxed text-muted-foreground", className)}
|
||||
className={cn("text-sm text-muted-foreground", className)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes CardAction.
|
||||
* @param { className, ...props } Parameter { className, ...props }.
|
||||
* @returns unknown.
|
||||
*/
|
||||
function CardAction({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return (
|
||||
<div
|
||||
|
|
@ -99,11 +69,6 @@ function CardAction({ className, ...props }: React.ComponentProps<"div">) {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes CardContent.
|
||||
* @param { className, ...props } Parameter { className, ...props }.
|
||||
* @returns unknown.
|
||||
*/
|
||||
function CardContent({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return (
|
||||
<div
|
||||
|
|
@ -114,17 +79,12 @@ function CardContent({ className, ...props }: React.ComponentProps<"div">) {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Executes CardFooter.
|
||||
* @param { className, ...props } Parameter { className, ...props }.
|
||||
* @returns unknown.
|
||||
*/
|
||||
function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
|
||||
return (
|
||||
<div
|
||||
data-slot="card-footer"
|
||||
className={cn(
|
||||
"flex items-center rounded-b-lg px-4 group-data-[size=sm]/card:px-3 [.border-t]:pt-4 group-data-[size=sm]/card:[.border-t]:pt-3",
|
||||
"flex items-center rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/card:p-3",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
|
|
|||
Loading…
Reference in a new issue