From 4a47e1585f7932b872fc77a7cd2daf0b6141dc23 Mon Sep 17 00:00:00 2001 From: Juan Andrade Date: Tue, 7 May 2024 16:25:49 -0300 Subject: [PATCH 1/2] Remove duplicated component --- components/tabs/Ranking/Podium.tsx | 130 ------------------------ components/tabs/Ranking/leaderboard.tsx | 5 - 2 files changed, 135 deletions(-) delete mode 100644 components/tabs/Ranking/Podium.tsx diff --git a/components/tabs/Ranking/Podium.tsx b/components/tabs/Ranking/Podium.tsx deleted file mode 100644 index 6a2222d..0000000 --- a/components/tabs/Ranking/Podium.tsx +++ /dev/null @@ -1,130 +0,0 @@ -import { cn } from "@/lib/utils"; -import { cva, type VariantProps } from "class-variance-authority"; -import { CrownIcon, UserIcon } from "lucide-react"; -import React from "react"; - -interface PodiumProps { - name: string; - value: string; - position: 1 | 2 | 3; -} - -const gradientVariants = cva( - "flex w-[96%] flex-col items-center gap-3 bg-gradient-to-t to-80% py-4", - { - variants: { - gradient: { - gold: "from-yellow-500/5 dark:from-yellow-500/10", - silver: "from-neutral-300/20 dark:from-neutral-300/10", - bronze: "from-amber-700/5 dark:from-amber-700/10", - }, - }, - defaultVariants: { - gradient: "gold", - }, - } -); - -const podiumVariants = cva( - "xs:rounded-b-md flex w-full items-start justify-center bg-neutral-100 dark:bg-neutral-900/75", - { - variants: { - size: { - small: "p-4 md:p-6", - large: "md:p-6 md:py-12 p-4 py-8", - }, - }, - } -); - -const Podium = ({ name, value, position }: PodiumProps) => { - const variant = - position === 1 ? "gold" : position === 2 ? "silver" : "bronze"; - - return ( -
-
-
-
-
-
- -
-
-