Skip to content

Commit

Permalink
fix: Mentor Project card
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit-jain52 committed Nov 21, 2024
1 parent 1a8a81d commit e1ea952
Show file tree
Hide file tree
Showing 2 changed files with 168 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/MentorProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { IProjectDashboardInfo } from "../util/types";
import { ROUTER_PATHS } from "../util/constants";
import { Link } from "react-router-dom";
import { useAuthContext } from "../util/auth";
import "../styles/MentorProjectCard.css";

function MentorProjectCard({
id,
Expand Down
167 changes: 167 additions & 0 deletions src/styles/MentorProjectCard.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
.mentor-project-card {
background: #020f2b;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition:
transform 0.3s,
box-shadow 0.3s;
padding: 20px;
margin: 15px;
max-width: 380px;
width: 100%;
}

.mentor-project-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-header {
display: flex;
justify-content: space-around;
align-items: center;
margin-bottom: 15px;
}

.project-title {
font-size: 1.25rem;
font-weight: bold;
}

.status-approved,
.status-awaiting {
padding: 4px 10px;
border-radius: 4px;
font-size: 0.875rem;
font-weight: 600;
}

.status-approved {
background-color: #4caf50;
color: #fff;
}

.status-awaiting {
background-color: #ff9800;
color: #fff;
}

.mentor-info {
margin-bottom: 20px;
}

.mentor {
display: flex;
align-items: center;
margin-bottom: 10px;
}

.mentor span {
margin-left: 5px;
font-weight: 500;
}

.mentor-link,
.co-mentor-link {
color: #1e88e5;
text-decoration: none;
font-weight: 600;
transition: color 0.3s;
}

.mentor-link:hover,
.co-mentor-link:hover {
color: #1565c0;
}

.commit-pull-info {
display: flex;
justify-content: space-between;
}

.info-item {
display: flex;
align-items: center;
font-size: 0.875rem;
}

.info-item span {
margin-left: 5px;
font-weight: 600;
}

.lines-changed {
margin-top: 15px;
margin-bottom: 20px;
}

.lines-header {
font-size: 0.875rem;
font-weight: 600;
margin-bottom: 10px;
}

.lines-bar {
display: flex;
justify-content: space-between;
align-items: center;
}

.bar {
display: flex;
width: 100%;
height: 10px;
background-color: #e0e0e0;
border-radius: 5px;
margin: 0 10px;
}

.added-bar {
background-color: #4caf50;
border-radius: 5px;
height: 100%;
}

.removed-bar {
background-color: #f44336;
border-radius: 5px;
height: 100%;
}

.project-links {
display: flex;
justify-content: space-between;
align-items: center;
}

.view-project-btn,
.edit-project-btn {
padding: 8px 15px;
font-size: 0.875rem;
font-weight: 600;
border-radius: 4px;
text-decoration: none;
color: #fff;
transition: background-color 0.3s;
}

.view-project-btn {
background-color: #1e88e5;
}

.view-project-btn:hover {
background-color: #1565c0;
}

.edit-project-btn {
background-color: #ff9800;
}

.edit-project-btn:hover {
background-color: #fb8c00;
}

.no-co-mentor {
color: #757575;
}

0 comments on commit e1ea952

Please sign in to comment.