enzostvs HF staff commited on
Commit
66f6d06
·
1 Parent(s): 0012934

hover animate

Browse files
Files changed (1) hide show
  1. components/spaces/space.tsx +2 -2
components/spaces/space.tsx CHANGED
@@ -12,7 +12,7 @@ export const Space: React.FC<Props> = ({ space }) => {
12
  <Link
13
  href={`https://huggingface.co/spaces/${space.id}`}
14
  target="_blank"
15
- className="bg-gray-50 border border-gray-200 px-6 py-4 rounded-xl transition-all duration-300 hover:ring-[4px] ring-opacity-10 ring-blue-500"
16
  >
17
  <header className="flex items-center justify-between gap-5">
18
  <div>
@@ -57,7 +57,7 @@ export const Space: React.FC<Props> = ({ space }) => {
57
  </p>
58
  )}
59
  </div>
60
- <div className="flex items-center max-w-max rounded-full px-1.5 py-1 text-sm bg-gray-100/80 border border-gray-200 text-gray-600">
61
  <TiHeartFullOutline className="w-5" />
62
  <p className="text-gray-500 text-xs font-regular">{space.likes}</p>
63
  </div>
 
12
  <Link
13
  href={`https://huggingface.co/spaces/${space.id}`}
14
  target="_blank"
15
+ className="bg-gray-50 border border-gray-200 px-6 py-4 rounded-xl transition-all duration-300 hover:ring-[4px] ring-opacity-10 ring-blue-500 group"
16
  >
17
  <header className="flex items-center justify-between gap-5">
18
  <div>
 
57
  </p>
58
  )}
59
  </div>
60
+ <div className="flex items-center max-w-max rounded-full px-1.5 py-1 text-sm bg-gray-100/80 border border-gray-200 text-gray-600 transition-all duration-300 group-hover:bg-amber-50 group-hover:border-amber-200 group-hover:text-amber-500">
61
  <TiHeartFullOutline className="w-5" />
62
  <p className="text-gray-500 text-xs font-regular">{space.likes}</p>
63
  </div>