From cf76432d4821481c19278b488efd84b4df26525b Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Sat, 14 Nov 2020 19:10:56 -0500 Subject: 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! --- src/Card.js | 12 ++++++------ tailwind.config.js | 14 ++++++++------ 2 files changed, 14 insertions(+), 12 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 ( -
- + +

- + {props.latest} {props.suffix}{" "} - + ({diff} {props.suffix})

-

{props.name}

- +

{props.name}

+ ); }; diff --git a/tailwind.config.js b/tailwind.config.js index 3de92ff..d6359c8 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,11 +1,13 @@ module.exports = { purge: ["./src/**/*.html", "./src/**/*.jsx", "./src/**/*.js"], theme: { - extend: { - screens: { - xs: { max: "400px" }, + extend: { + screens: { + xs: { max: "400px" }, + }, }, - }, }, - }; - \ No newline at end of file + variants: { + textColor: ["responsive", "hover", "focus", "group-hover"], + }, +}; -- cgit v1.2.3