aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2020-11-14 19:10:56 -0500
committerGalen Guyer <galen@galenguyer.com>2020-11-14 19:10:56 -0500
commitcf76432d4821481c19278b488efd84b4df26525b (patch)
treed36d8802befc59e4b7d31b539130ba56d51c62c5 /src
parent3cd68d3504db4ad63abdec64e7de226ca2cbcb01 (diff)
make buttons better
buttons change their background and text color on hover now to make their purpose more clear, and the Link element covers the whole button now. Thanks for the suggestions Tessa!
Diffstat (limited to 'src')
-rw-r--r--src/Card.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Card.js b/src/Card.js
index 626cec0..86ee54d 100644
--- a/src/Card.js
+++ b/src/Card.js
@@ -8,21 +8,21 @@ const Card = (props) => {
diff = "+" + diff.toString();
}
return (
- <div className="Card bg-white rounded-lg border-2 border-orange-300 p-4 m-4">
- <Link to={props.link}>
+ <Link className="Card" style={{padding: 0}} to={props.link}>
+ <div className="group bg-white hover:bg-orange-400 rounded-lg border-2 border-orange-300 hover:border-orange-400 p-4 m-6 transition ease-in-out duration-300">
<p>
- <span className="text-2xl">
+ <span className="text-2xl group-hover:text-white transition ease-in-out duration-300">
{props.latest}
{props.suffix}{" "}
</span>
- <span className="Diff text-gray-600 text-sm">
+ <span className="Diff text-gray-600 group-hover:text-gray-100 text-sm transition ease-in-out duration-300">
({diff}
{props.suffix})
</span>
</p>
- <h3 className="text-base">{props.name}</h3>
- </Link>
+ <h3 className="text-base group-hover:text-white transition ease-in-out duration-300">{props.name}</h3>
</div>
+ </Link>
);
};