From d1d8545330ca78ada99ce00dba8f75a4fd7a5645 Mon Sep 17 00:00:00 2001 From: SANKALP PANDEY Date: Wed, 21 Feb 2024 12:06:48 +0530 Subject: [PATCH] STYLE: updated the styling of the latest oldest repo componnet --- src/app/Dashboard/page.tsx | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/src/app/Dashboard/page.tsx b/src/app/Dashboard/page.tsx index 587c42c..20e6fdd 100644 --- a/src/app/Dashboard/page.tsx +++ b/src/app/Dashboard/page.tsx @@ -1,7 +1,7 @@ "use client"; import React, { useEffect, useState } from "react"; import { Grid, Card } from "@tremor/react"; -import ReactFlow, { Background, Controls } from 'reactflow'; +import { RoughNotation } from "react-rough-notation"; import { getFollowerAnalysis, getFollowingAnalysis, @@ -107,6 +107,7 @@ const VersionDashboard: React.FC = () => { const [oldestRepoCard, setShowOldestRepoCard] = useState(true); const [newestRepoCard, setNewRepoCard] = useState(false); + const [show, setShow] = useState(true); const getFollowerAnalysisData = async () => { try { @@ -323,7 +324,6 @@ const VersionDashboard: React.FC = () => {
-
@@ -342,23 +342,39 @@ const VersionDashboard: React.FC = () => {
-

{ - setNewRepoCard(false), setShowOldestRepoCard(true); - }} - className="text-pink-600 font-extrabold font-mono hover:text-orange-500 hover:cursor-pointer" + + {" "} +

{ + setNewRepoCard(false), setShowOldestRepoCard(true); + }} + className="text-blue-600 font-extrabold font-mono hover:text-pink-600 hover:cursor-pointer" + > + Oldest Repo + +

+
+ + - Oldest Repo - -

{ setNewRepoCard(true), setShowOldestRepoCard(false); }} - className="text-blue-600 font-extrabold font-mono hover:text-green-400 hover:cursor-pointer" + className="text-pink-600 font-extrabold font-mono hover:text-blue-600 hover:cursor-pointer" > Newest Repo

+
{oldestRepoCard && (