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
|
Rev | Line | |
---|
[d565449] | 1 | import { Link } from "react-router-dom";
|
---|
| 2 | import React from "react";
|
---|
| 3 |
|
---|
| 4 | function 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 |
|
---|
| 25 | export default CardItem;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.