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

hover animation

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 group"
16
  >
17
  <header className="flex items-center justify-between gap-5">
18
  <div>
@@ -59,7 +59,7 @@ export const Space: React.FC<Props> = ({ space }) => {
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>
64
  </div>
65
  </header>
 
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:-translate-y-1.5 hover:border-amber-400 hover:shadow-xl hover:shadow-black/5 group"
16
  >
17
  <header className="flex items-center justify-between gap-5">
18
  <div>
 
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-xs font-regular">{space.likes}</p>
63
  </div>
64
  </div>
65
  </header>