source: imaps-frontend/src/pages/IMaps/components/CardItem.jsx

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 641 bytes
Line 
1import { Link } from "react-router-dom";
2import React from "react";
3
4function CardItem(props) {
5 return (
6 <>
7 <li className="cards__item">
8 <a className="cards__item__link" href={props.path}>
9 <figure className="cards__item__pic-wrap" data-category={props.label}>
10 <img
11 className="cards__item__img"
12 alt="Travel Image"
13 src={props.src}
14 />
15 </figure>
16 <div className="cards__item__info">
17 <h5 className="cards__item__text">{props.text}</h5>
18 </div>
19 </a>
20 </li>
21 </>
22 );
23}
24
25export default CardItem;
Note: See TracBrowser for help on using the repository browser.