Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added public/screenshots/google-oauth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/app/_components/CardInfo.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const CardInfo = ({
}) => {
return (
<div
className={`mt-10 p-6 bg-gray-100 dark:bg-zinc-800 dark:border-zinc-600 border border-gray-200 shadow rounded-lg ${classNames.container}`}
className={`mt-10 p-6 bg-gray-100 dark:bg-zinc-900 dark:border-zinc-800 border border-gray-200 shadow rounded-lg ${classNames.container}`}
>
{title && (
<p className={`font-semibold text-xl ${classNames.title}`}>{title}</p>
Expand Down
4 changes: 2 additions & 2 deletions src/app/_components/NumberOfContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const NumberOfContent = ({
}) => {
return (
<div className={`flex gap-3 items-start mb-2 ${className}`}>
<div className="size-5 text-sm border border-gray-400 rounded-sm text-gray-500 flex items-center justify-center">
<div className="size-5 min-w-5 text-sm border border-gray-400 rounded-sm text-gray-500 flex items-center justify-center">
{number}
</div>

Expand All @@ -37,7 +37,7 @@ export const NumberOfContent = ({
export const NumberWithMdx = ({ number, children, className }) => {
return (
<div className={`flex gap-3 items-start mb-2 ${className}`}>
<div className="size-5 text-sm border border-gray-400 rounded-sm text-gray-500 flex items-center justify-center">
<div className="size-5 min-w-5 text-sm border border-gray-400 rounded-sm text-gray-500 flex items-center justify-center">
{number}
</div>

Expand Down
48 changes: 48 additions & 0 deletions src/components/ui/badge.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import * as React from "react"
import { Slot } from "@radix-ui/react-slot"
import { cva, type VariantProps } from "class-variance-authority"

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

const badgeVariants = cva(
"inline-flex items-center justify-center rounded-full border border-transparent px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
{
variants: {
variant: {
default: "bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
secondary:
"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
destructive:
"bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
outline:
"border-border text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
ghost: "[a&]:hover:bg-accent [a&]:hover:text-accent-foreground",
link: "text-primary underline-offset-4 [a&]:hover:underline",
},
},
defaultVariants: {
variant: "default",
},
}
)

function Badge({
className,
variant = "default",
asChild = false,
...props
}: React.ComponentProps<"span"> &
VariantProps<typeof badgeVariants> & { asChild?: boolean }) {
const Comp = asChild ? Slot : "span"

return (
<Comp
data-slot="badge"
data-variant={variant}
className={cn(badgeVariants({ variant }), className)}
{...props}
/>
)
}

export { Badge, badgeVariants }
Loading