commit b87a45ae935227bc4b10ef6f886b4767369fa265
parent 6393d24f7939ce3f45f20300c3694ed114beaccf
Author: MTRNord <mtrnord1@gmail.com>
Date: Tue, 3 Jan 2023 23:51:35 +0100
Add hover effect to heart and comment icons
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/components/post.tsx b/src/components/post.tsx
@@ -23,8 +23,8 @@ export function Post({ user, post }: Props) {
</a>
<div className="flex text-data text-lg items-center">
<a className="mr-4 flex items-center" href="#">
- <span className="mr-2">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#AAB3CF">
+ <span className="mr-2 hover:fill-red-600 fill-[#AAB3CF] ease-in-out duration-150">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px">
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z" />
</svg>
@@ -32,8 +32,8 @@ export function Post({ user, post }: Props) {
<span>5</span>
</a>
<a className="flex items-center" href="#">
- <span className="mr-2">
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#AAB3CF">
+ <span className="mr-2 fill-[#AAB3CF] ease-in-out duration-150 hover:fill-orange-400">
+ <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px">
<path d="M0 0h24v24H0V0z" fill="none" />
<path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z" />
</svg>