Skip to content

Commit

Permalink
FEAT: updated the code with minor design changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SANKALP1011 committed Feb 7, 2024
1 parent c304984 commit 6a57a3e
Show file tree
Hide file tree
Showing 12 changed files with 79 additions and 54 deletions.
57 changes: 27 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/Components/FollowerAnalysis/FollowerProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ const FollowerProgress: React.FC<FollowerAnalysis> = ({

return (
<div className="relative group items-start justify-center">
<div className="bb w-full absolute -inset-0.5 bg-gradient-to-r from-pink-600 to-purple-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<div className="gradientbackGround w-full absolute -inset-0.5 bg-gradient-to-r from-pink-600 to-purple-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<Card className="followerCard drop-shadow-2xl" style={{ backgroundColor:"black" }}>
<div className="mb-3">
{show && ( // Conditional rendering based on show state
{show && (
<RoughNotation type="underline" show={show} color="orange" strokeWidth={5}>
<h2 className="followerCardTitle font-mono">Followers</h2>
<h2 className="followerAnalysisCardTitle font-mono">Followers</h2>
</RoughNotation>
)}
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/Components/FollowerAnalysis/FollowingProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ const FollowingProgress: React.FC<FollowingAnalysis> = ({
const [show, setShow] = useState(true); // Define and initialize the state variable
return (
<div className="relative group items-start justify-center">
<div className="bb w-full absolute -inset-0.5 bg-gradient-to-r from-blue-600 to-red-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<div className="gradientbackGround w-full absolute -inset-0.5 bg-gradient-to-r from-blue-600 to-red-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<Card className="followerCard " style={{ backgroundColor: "black" }}>
<div className="mb-3">
{show && (
<RoughNotation type="underline" show={show} color="red" strokeWidth={5}>
<h2 className="followerCardTitle font-mono">Followers</h2>
<h2 className="followerAnalysisCardTitle font-mono">Followers</h2>
</RoughNotation>
)}
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/Components/FollowerAnalysis/RatioProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {FollowerFollowingRatio} from "@/Interface/api.interface";
export const RatioProgress: React.FC<FollowerFollowingRatio> = ({ FollowerToFollowingRatio }) => {
const ratio = FollowerToFollowingRatio || ""; // Using default parameter in function body
return (
<div>
<div></div>
<Card className="rounded-3xl w-32">
<div className="RatioProgressCard relative group items-start justify-center">
<div className="w-full absolute -inset-0.5 bg-gradient-to-r from-blue-600 to-red-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<Card className="rounded-3xl w-32 RatioProgressCard">
<h2 className="i">{ratio}</h2>
</Card>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/Components/Repository/RepoProgress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ const RepoProgress: React.FC<RepoCountAnalysis> = ({


return (
<div className="relative group items-start justify-center">
<div className="bb w-full absolute -inset-0.5 bg-gradient-to-r from-pink-600 to-purple-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<div className="relative group items-start justify-center mt-10">
<div className="gradientbackGround w-full absolute -inset-0.5 bg-gradient-to-r from-pink-600 to-purple-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<Card className="followerCard drop-shadow-2xl" style={{ backgroundColor:"black" }}>
<div className="mb-3">
{show && ( // Conditional rendering based on show state
<RoughNotation type="underline" show={show} color="orange" strokeWidth={5}>
<h2 className="followerCardTitle font-mono">Repo Count</h2>
<h2 className="followerAnalysisCardTitle font-mono">Repo Count</h2>
</RoughNotation>
)}
</div>
Expand All @@ -34,7 +34,7 @@ const RepoProgress: React.FC<RepoCountAnalysis> = ({
radius={40}
strokeWidth={10}
tooltip="Followers"
color={"green"}
color={"pink"}
>
<span className="text-md text-gray-700 font-large ">{RepoCount}</span>
</ProgressCircle>
Expand Down
22 changes: 22 additions & 0 deletions src/Services/analysis.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,26 @@ export const getRepoCountAnalysis = async(userId:string)=>{
catch(err){
return err;
}
}

export const getClosedCount = async(userId:string)=>{
const endPoint = "totalClosedIssuesCounts"
try{
const response = await fetch(`${BASE_API}${endPoint}?id=${userId}`)
return response;
}
catch(err){
return err;
}
}

export const getOpenCount = async(userId:string)=>{
const endPoint = "totalOpenIssuesCounts"
try{
const response = await fetch(`${BASE_API}${endPoint}?id=${userId}`)
return response;
}
catch(err){
return err;
}
}
4 changes: 4 additions & 0 deletions src/Styles/Dashboard/RatioProgress.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.RatioProgressCard{
height: 100px;

}
10 changes: 5 additions & 5 deletions src/Styles/Dashboard/followerProgress.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}


.followerCardTitle {
.followerAnalysisCardTitle {
font-size: 15px;
font-weight: bolder;
margin-top: 0;
Expand All @@ -38,13 +38,13 @@
border-radius: 50px;
z-index: 1;
}
.bb{
.gradientbackGround{
margin-left: 10%;
border-radius: 30px;
}
.i{
color: black;
}






1 change: 1 addition & 0 deletions src/Styles/Dashboard/langCount.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.langGradientBack{
border-radius: 30px;
width:610px
}
8 changes: 4 additions & 4 deletions src/Styles/Dashboard/main.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.tabCard{
background-color: black;
border-radius: 45px;
border-radius: 55px;
max-width: 230px;
height: auto;
height: 165px;
}
.tabCardBackGradient{
max-width: 240px;
border-radius: 45px;
max-width: 280px;
border-radius: 30px;
}
5 changes: 3 additions & 2 deletions src/app/Dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import FollowingProgress from "@/Components/FollowerAnalysis/FollowingProgress";
import LanguageCount from "@/Components/LanguageAnalysis/LanguageCount";
import RepoProgress from "@/Components/Repository/RepoProgress";


const VersionDashboard: React.FC = () => {
const [followerAnlData, setFollowerAnlData] = useState<FollowerAnalysis>({
followerCount: 0,
Expand Down Expand Up @@ -118,11 +119,11 @@ const VersionDashboard: React.FC = () => {
/>
</Grid>
<Grid numItems={1} numItemsLg={2}>
<div className="ml-6 mt-8 relative group items-start justify-cente">
<div className="ml-6 mt-10 relative group items-start justify-cente">
<div className="tabCardBackGradient absolute -inset-0.5 bg-gradient-to-r from-green-600 to-blue-600 blur opacity-75 group-hover:opacity-100 transition duration-1000 group-hover:duration-500 animate-pulse"></div>
<Card className="tabCard">
<TabGroup>
<TabList className="mt-8">
<TabList className="mt-1">
<Tab>Repos</Tab>
<Tab>Ratio</Tab>
<Tab>Stars</Tab>
Expand Down
2 changes: 1 addition & 1 deletion src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

body{
background-color: black;
background-color:black;
}


Expand Down

0 comments on commit 6a57a3e

Please sign in to comment.