forked from
j4ck.xyz/tweets2bsky
A simple tool which lets you scrape twitter accounts and crosspost them to bluesky accounts! Comes with a CLI and a webapp for managing profiles! Works with images/videos/link embeds/threads.
1import * as React from 'react';
2import { cn } from '../../lib/utils';
3
4const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
5 <div
6 ref={ref}
7 className={cn(
8 'rounded-xl border border-border/70 bg-card/95 text-card-foreground shadow-sm backdrop-blur transition-[transform,box-shadow,border-color,background-color] duration-200 ease-out motion-reduce:transition-none motion-safe:hover:-translate-y-0.5 motion-safe:hover:shadow-md',
9 className,
10 )}
11 {...props}
12 />
13));
14Card.displayName = 'Card';
15
16const CardHeader = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
17 <div ref={ref} className={cn('flex flex-col space-y-1.5 p-6', className)} {...props} />
18));
19CardHeader.displayName = 'CardHeader';
20
21const CardTitle = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLHeadingElement>>(
22 ({ className, ...props }, ref) => <h3 ref={ref} className={cn('text-lg font-semibold tracking-tight', className)} {...props} />,
23);
24CardTitle.displayName = 'CardTitle';
25
26const CardDescription = React.forwardRef<HTMLParagraphElement, React.HTMLAttributes<HTMLParagraphElement>>(
27 ({ className, ...props }, ref) => <p ref={ref} className={cn('text-sm text-muted-foreground', className)} {...props} />,
28);
29CardDescription.displayName = 'CardDescription';
30
31const CardContent = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
32 <div ref={ref} className={cn('p-6 pt-0', className)} {...props} />
33));
34CardContent.displayName = 'CardContent';
35
36const CardFooter = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(({ className, ...props }, ref) => (
37 <div ref={ref} className={cn('flex items-center p-6 pt-0', className)} {...props} />
38));
39CardFooter.displayName = 'CardFooter';
40
41export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent };