aboutsummaryrefslogtreecommitdiff
path: root/src/components/Card.jsx
blob: 053503301fc8a9a443eed4046565ce5c88ef0e8a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from "react";
import { Link } from "react-router-dom";
import "./Card.css";

const Card = (props) => {
    return (
        <Link className="cardLink" to={props.link}>
            <div className="Card animate">
                <p>
                    <span className="Latest">{props.latest}{props.suffix ?? ""}</span>
                </p>
                <h3>{props.name}</h3>
            </div>
        </Link>
    );
};

export default Card;