Skip to content

Commit e66b56a

Browse files
committed
Cleaned up the "Projects" Tab
1 parent 4a82b7e commit e66b56a

2 files changed

Lines changed: 10 additions & 21 deletions

File tree

src/components/ProjectCard.tsx

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React from "react";
32
import { Card, CardContent, CardFooter, CardHeader } from "@/components/ui/card";
43
import { Badge } from "@/components/ui/badge";
@@ -34,14 +33,14 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
3433
<Card className="overflow-hidden h-full flex flex-col transition-all hover:shadow-md">
3534
<div className="relative h-48">
3635
<img
37-
src={image}
36+
src={image || "/placeholder.svg"}
3837
alt={title}
3938
className="w-full h-full object-cover"
4039
/>
4140
<div className="absolute top-3 left-3">
4241
<Badge
4342
variant="secondary"
44-
className="text-xs truncate max-w-[150px]"
43+
className="text-xs truncate max-w-[180px]"
4544
style={{
4645
backgroundColor: categoryBgColor,
4746
color: categoryTextColor
@@ -57,14 +56,6 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
5756
>
5857
{status}
5958
</Badge>
60-
{recruitingFor && (
61-
<Badge
62-
variant="secondary"
63-
className="bg-green-600 text-white border-green-600 text-xs"
64-
>
65-
Recruiting
66-
</Badge>
67-
)}
6859
</div>
6960
</div>
7061

@@ -93,7 +84,12 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project }) => {
9384
</Button>
9485
</a>
9586
) : (
96-
<span className="text-sm italic text-gray-500">Private Repository</span>
87+
<div className="flex-grow">
88+
<Button variant="outline" className="w-full flex items-center justify-center gap-2" disabled>
89+
<Github size={16} className="flex-shrink-0" />
90+
<span className="truncate text-gray-500">Private Repository</span>
91+
</Button>
92+
</div>
9793
)}
9894

9995
{recruitingFor && (

src/data/projectsData.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export interface Project {
66
description: string;
77
category: "Chip Design" | "AI Hardware" | "IoT" | "Smart Manufacturing" | "TinyML" | "Spiking Neural Networks";
88
status: "Active" | "Completed" | "Discontinued";
9-
image: string;
9+
image?: string;
1010
githubLink?: string;
1111
year: number;
1212
recruitingFor?: boolean;
@@ -20,7 +20,6 @@ export const projectsData: Project[] = [
2020
description: "SNN implementation in C for efficient spiking neural network computation with optimized performance and debugging capabilities.",
2121
category: "Spiking Neural Networks",
2222
status: "Active",
23-
image: "/media/projects/spikingc.png",
2423
githubLink: "https://github.com/example/spikingc",
2524
year: 2023,
2625
recruitingFor: true
@@ -31,7 +30,7 @@ export const projectsData: Project[] = [
3130
description: "SNN-based gesture recognition system developed during the November 2023 Hackathon with Fortiss.",
3231
category: "Spiking Neural Networks",
3332
status: "Completed",
34-
image: "/media/projects/gesture-recognition.png",
33+
image: "",
3534
year: 2023
3635
},
3736
{
@@ -40,7 +39,6 @@ export const projectsData: Project[] = [
4039
description: "Implementation of a Dense Layer with Leaky Integrate and Fire (LIF) neurons in SystemVerilog for FPGA deployment.",
4140
category: "Chip Design",
4241
status: "Active",
43-
image: "/media/projects/densespiking-rtl.png",
4442
year: 2023,
4543
recruitingFor: true
4644
},
@@ -50,7 +48,6 @@ export const projectsData: Project[] = [
5048
description: "Hardware acceleration for Vision Transformer models specialized for drone applications with optimization for size and power constraints.",
5149
category: "AI Hardware",
5250
status: "Active",
53-
image: "/media/projects/drone-vit.jpg",
5451
year: 2023
5552
},
5653
{
@@ -59,7 +56,6 @@ export const projectsData: Project[] = [
5956
description: "A mobile-optimized Vision Transformer model using spiking neural networks for efficient visual processing on edge devices.",
6057
category: "Spiking Neural Networks",
6158
status: "Active",
62-
image: "/media/projects/mobile-vit.jpg",
6359
year: 2023
6460
},
6561
{
@@ -68,7 +64,6 @@ export const projectsData: Project[] = [
6864
description: "An intelligent scheduling system for manufacturing industries that optimizes production processes and resource allocation using AI algorithms.",
6965
category: "Smart Manufacturing",
7066
status: "Active",
71-
image: "/media/projects/smart-scheduling.png",
7267
year: 2023,
7368
recruitingFor: true
7469
},
@@ -78,7 +73,6 @@ export const projectsData: Project[] = [
7873
description: "Development of a compiler that optimizes neural network models for various hardware accelerators, leveraging IREE (IR Execution Environment) technology.",
7974
category: "AI Hardware",
8075
status: "Active",
81-
image: "/media/projects/ai-compiler.png",
8276
githubLink: "https://github.com/example/ai-compiler-iree",
8377
year: 2023
8478
},
@@ -88,7 +82,6 @@ export const projectsData: Project[] = [
8882
description: "A custom processor design optimized for deep learning inference with minimal energy consumption for battery-powered devices.",
8983
category: "Chip Design",
9084
status: "Discontinued",
91-
image: "/media/projects/dl-processor.jpg",
9285
year: 2021
9386
}
9487
];

0 commit comments

Comments
 (0)