@@ -2,63 +2,64 @@ import { Card } from '@/components/ui/card'
22import { Badge } from '@/components/ui/badge'
33import { Button } from '@/components/ui/button'
44import { Heart , MessageCircle , Eye , Star , ExternalLink } from 'lucide-react'
5+ import Image from 'next/image'
56
67const recentProjects = [
78 {
89 id : 1 ,
910 title : 'Smart Campus Navigation App' ,
1011 author : 'Ahmad Rizki' ,
11- authorAvatar : '/placeholder.svg?height=40&width=40 ' ,
12+ authorAvatar : '/placeholder.svg' ,
1213 description :
1314 'Aplikasi navigasi kampus menggunakan AR dan machine learning untuk membantu mahasiswa baru' ,
1415 technologies : [ 'React Native' , 'TensorFlow' , 'Firebase' , 'ARCore' ] ,
1516 likes : 42 ,
1617 comments : 8 ,
1718 views : 156 ,
18- image : '/placeholder.svg?height=200&width=300 ' ,
19+ image : '/placeholder.svg' ,
1920 postedAt : '2 jam yang lalu' ,
2021 featured : true ,
2122 } ,
2223 {
2324 id : 2 ,
2425 title : 'E-Learning Platform POLNES' ,
2526 author : 'Siti Nurhaliza' ,
26- authorAvatar : '/placeholder.svg?height=40&width=40 ' ,
27+ authorAvatar : '/placeholder.svg' ,
2728 description :
2829 'Platform pembelajaran online dengan fitur video conference dan assignment management' ,
2930 technologies : [ 'Next.js' , 'PostgreSQL' , 'WebRTC' , 'Prisma' ] ,
3031 likes : 38 ,
3132 comments : 12 ,
3233 views : 203 ,
33- image : '/placeholder.svg?height=200&width=300 ' ,
34+ image : '/placeholder.svg' ,
3435 postedAt : '4 jam yang lalu' ,
3536 featured : false ,
3637 } ,
3738 {
3839 id : 3 ,
3940 title : 'IoT Greenhouse Monitoring' ,
4041 author : 'Bayu Pratama' ,
41- authorAvatar : '/placeholder.svg?height=40&width=40 ' ,
42+ authorAvatar : '/placeholder.svg' ,
4243 description : 'Sistem monitoring greenhouse otomatis dengan sensor IoT dan dashboard real-time' ,
4344 technologies : [ 'Arduino' , 'Node.js' , 'MongoDB' , 'Socket.io' ] ,
4445 likes : 29 ,
4546 comments : 6 ,
4647 views : 134 ,
47- image : '/placeholder.svg?height=200&width=300 ' ,
48+ image : '/placeholder.svg' ,
4849 postedAt : '6 jam yang lalu' ,
4950 featured : false ,
5051 } ,
5152 {
5253 id : 4 ,
5354 title : 'Blockchain Voting System' ,
5455 author : 'Dewi Kartika' ,
55- authorAvatar : '/placeholder.svg?height=40&width=40 ' ,
56+ authorAvatar : '/placeholder.svg' ,
5657 description : 'Sistem voting digital menggunakan blockchain untuk transparansi dan keamanan' ,
5758 technologies : [ 'Solidity' , 'Web3.js' , 'React' , 'Ethereum' ] ,
5859 likes : 51 ,
5960 comments : 15 ,
6061 views : 287 ,
61- image : '/placeholder.svg?height=200&width=300 ' ,
62+ image : '/placeholder.svg' ,
6263 postedAt : '8 jam yang lalu' ,
6364 featured : true ,
6465 } ,
@@ -117,8 +118,10 @@ function ProjectCard({ project }: { project: (typeof recentProjects)[number] })
117118 ) }
118119
119120 < div className = "relative overflow-hidden" >
120- < img
121+ < Image
121122 src = { project . image || '/placeholder.svg' }
123+ width = { 300 }
124+ height = { 200 }
122125 alt = { project . title }
123126 className = "w-full h-48 object-cover group-hover:scale-105 transition-transform duration-300"
124127 />
@@ -134,8 +137,10 @@ function ProjectCard({ project }: { project: (typeof recentProjects)[number] })
134137
135138 < div className = "p-6" >
136139 < div className = "flex items-center gap-3 mb-4" >
137- < img
140+ < Image
138141 src = { project . authorAvatar || '/placeholder.svg' }
142+ width = { 40 }
143+ height = { 40 }
139144 alt = { project . author }
140145 className = "w-8 h-8 rounded-full"
141146 />
0 commit comments