Dariky commited on
Commit
8c7fe42
·
verified ·
1 Parent(s): a56d13e

Upload components/ContentCard.jsx with huggingface_hub

Browse files
Files changed (1) hide show
  1. components/ContentCard.jsx +15 -0
components/ContentCard.jsx ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const ContentCard = ({ title, description, icon, onClick }) => (
2
+ <div className="group relative overflow-hidden rounded-xl bg-white p-6 shadow-md transition-all hover:shadow-lg">
3
+ <div className="mb-4 flex items-center justify-center rounded-full bg-blue-100 p-3 text-blue-600 group-hover:bg-blue-200">
4
+ {icon}
5
+ </div>
6
+ <h3 className="text-xl font-bold text-gray-900">{title}</h3>
7
+ <p className="mt-2 text-gray-600">{description}</p>
8
+ <button
9
+ onClick={onClick}
10
+ className="mt-6 w-full rounded-lg bg-blue-600 py-2 text-sm font-medium text-white transition-colors hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
11
+ >
12
+ Print Content
13
+ </button>
14
+ </div>
15
+ );