@@ -11,6 +11,7 @@ import {
1111import { Fragment } from "react" ;
1212import Image from "next/image" ;
1313import LinkButton from "@/components/shared/LinkButton" ;
14+ import TextPill from "@/components/shared/TextPill" ;
1415
1516interface ProjectModalProps {
1617 project : Project ;
@@ -45,30 +46,31 @@ const ProjectModal: React.FC<ProjectModalProps> = ({ project, onClose }) => {
4546 leaveFrom = "opacity-100 scale-100"
4647 leaveTo = "opacity-0 scale-95"
4748 >
48- < DialogPanel className = "bg-white rounded-lg shadow-xl max-w-2xl w-full p-6 relative" >
49+ < DialogPanel className = "bg-foreground dark:bg-slate-900 dark:text-foreground rounded-lg shadow-xl max-w-2xl w-full p-6 relative" >
4950 < button
5051 onClick = { onClose }
5152 className = "absolute top-4 right-4 text-gray-500 hover:text-gray-800"
5253 >
5354 < FontAwesomeIcon icon = { faTimes } className = "fa-lg" />
5455 </ button >
55- < Image
56- src = { image }
57- alt = { title }
58- className = "rounded-lg w-full mt-6 mb-4 object-cover h-60"
59- />
60- < DialogTitle
61- as = "h3"
62- className = "text-3xl font-bold text-gray-800 mb-2"
63- >
56+ { image && (
57+ < Image
58+ src = { image }
59+ alt = { title }
60+ className = "rounded-lg w-full mt-6 mb-4 object-cover h-60"
61+ />
62+ ) }
63+ < DialogTitle as = "h3" className = "text-3xl font-bold mb-2" >
6464 { title }
6565 </ DialogTitle >
6666 { subtitle && (
67- < h4 className = "text-sm text-gray-500 mb-4" > { subtitle } </ h4 >
67+ < h4 className = "text-sm text-gray-600 dark:text-gray-400 mb-4" >
68+ { subtitle }
69+ </ h4 >
6870 ) }
69- < p className = "text-gray-600 text-sm " > { description } </ p >
71+ < p className = "text-sm pr-10 text-justify " > { description } </ p >
7072 { links && (
71- < div className = "flex flex-wrap gap-2 mt-4 " >
73+ < div className = "flex flex-wrap gap-2 mt-6 " >
7274 { links . map ( ( link , i ) => (
7375 < LinkButton
7476 key = { i }
@@ -82,12 +84,7 @@ const ProjectModal: React.FC<ProjectModalProps> = ({ project, onClose }) => {
8284 ) }
8385 < div className = "flex flex-wrap gap-2 mt-4" >
8486 { tags . map ( ( tag , i ) => (
85- < span
86- key = { i }
87- className = "bg-blue-100 text-blue-700 text-xs font-medium px-2 py-1 rounded-full"
88- >
89- { tag }
90- </ span >
87+ < TextPill key = { i } text = { tag } />
9188 ) ) }
9289 </ div >
9390 </ DialogPanel >
0 commit comments