File size: 1,061 Bytes
f21d299
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from 'react';

const ProjectCard = ({ title, description, language, image }) => {
  return (
    <div className="group relative bg-white border border-gray-200 rounded-lg overflow-hidden shadow-sm hover:shadow-md transition-shadow duration-300">
      <div className="aspect-w-3 aspect-h-2 bg-gray-200 group-hover:opacity-75">
        <img src={image} alt={title} className="w-full h-full object-center object-cover" />
      </div>
      <div className="p-6">
        <h3 className="text-lg font-medium text-gray-900">
          <span className="absolute inset-0" aria-hidden="true"></span>
          {title}
        </h3>
        <p className="mt-2 text-sm text-gray-500">{description}</p>
        <div className="mt-4 flex items-center justify-between">
          <span className="text-sm font-medium text-primary-500">{language}</span>
          <button className="text-sm font-medium text-gray-500 hover:text-primary-500">
            Use Template
          </button>
        </div>
      </div>
    </div>
  );
};

export default ProjectCard;