@@ -1,11 +1,21 @@
11import Link from "next/link";
22import GatewayImage from "./Image";
3+import classNames from "classnames";
34
4−const ResourceCard = ({ type, shortcode, title, color, image }) => (
5+const ResourceCard = ({ type, shortcode, title, description = "", color, image, full }) => (
56 <Link href={`/${type}s/${shortcode}`}>
6− <div className="cursor-pointer rounded-xl bg-wall-100 p-4 flex items-center space-x-4 mr-2 my-1">
7+ <div className={classNames("cursor-pointer rounded-xl bg-wall-100 p-4 flex items-center space-x-4 mr-2 my-1", {
8+ "basis-full": full
9+ })}>
710 <GatewayImage color={color} image={image || color} size={50} />
8− <a className="font-semibold">{title}</a>
11+ {full
12+ ? <><div className="flex flex-col w-full">
13+ <a className="font-semibold">{title}</a>
14+ <p className="hidden lg:block">{description}</p>
15+ </div>
16+ <a className="button-lg bg-green-400 text-white shrink-0">View {type}</a>
17+ </>
18+ : <a className="font-semibold">{title}</a>}
919 </div>
1020 </Link>
1121);