You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
445 B
21 lines
445 B
interface CardProps {
|
|
title: string;
|
|
image: string;
|
|
text: string;
|
|
}
|
|
|
|
function Card({ title, image, text }: CardProps) {
|
|
return (
|
|
<>
|
|
<div className="card w-25 ms-5">
|
|
<img src={image} className="card-img-top" alt={title} />
|
|
<div className="card-body">
|
|
<h5 className="card-title">{title}</h5>
|
|
<p className="card-text">{text}</p>
|
|
</div>
|
|
</div>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default Card;
|