diff --git a/app/(app)/app/_sections/FeaturedLists.tsx b/app/(app)/app/_sections/FeaturedLists.tsx index bc4162a..2af19b1 100644 --- a/app/(app)/app/_sections/FeaturedLists.tsx +++ b/app/(app)/app/_sections/FeaturedLists.tsx @@ -8,8 +8,6 @@ import { import LiveBadge from "@/components/Badges/LiveBadge"; import { Button } from "@/components/ui/button"; import { RiArrowRightLine } from "react-icons/ri"; -import VideoCard from "@/components/VideoCard"; -import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; import { Card, CardContent, @@ -20,6 +18,7 @@ import Image from "next/image"; import { cn } from "@/lib/utils"; import { Avatar, AvatarImage, AvatarFallback } from "@radix-ui/react-avatar"; import { Badge } from "@/components/ui/badge"; +import { AspectRatio } from "@/components/ui/aspect-ratio"; export default function FeaturedLists() { const demo = [ { @@ -65,17 +64,19 @@ export default function FeaturedLists() { {demo.map((e) => (
- {e.title} + + {e.title} +
diff --git a/bun.lockb b/bun.lockb index 9717de9..3bdf862 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/components/VideoCard/index.tsx b/components/VideoCard/index.tsx index b766195..94b9dd1 100644 --- a/components/VideoCard/index.tsx +++ b/components/VideoCard/index.tsx @@ -2,7 +2,7 @@ import Image from "next/image"; import { cn } from "@/lib/utils"; import { Badge } from "../ui/badge"; import { RxClock } from "react-icons/rx"; - +import { AspectRatio } from "@/components/ui/aspect-ratio"; type VideoCardProps = { card: { picture: string; @@ -21,17 +21,19 @@ export default function VideoCard({ className, card }: VideoCardProps) { )} >
- {card.title} + + {card.title} +

{card.title}

diff --git a/components/ui/aspect-ratio.tsx b/components/ui/aspect-ratio.tsx new file mode 100644 index 0000000..d6a5226 --- /dev/null +++ b/components/ui/aspect-ratio.tsx @@ -0,0 +1,7 @@ +"use client" + +import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio" + +const AspectRatio = AspectRatioPrimitive.Root + +export { AspectRatio } diff --git a/package.json b/package.json index 1b1b8eb..0798e77 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@noble/hashes": "^1.3.2", "@nostr-dev-kit/ndk": "^2.0.0", "@nostr-dev-kit/ndk-react": "^0.1.1", + "@radix-ui/react-aspect-ratio": "^1.0.3", "@radix-ui/react-avatar": "^1.0.4", "@radix-ui/react-dialog": "^1.0.5", "@radix-ui/react-dropdown-menu": "^2.0.6",