jorandradefig

Card.js

Jun 4th, 2021 (edited)
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import Button from "./Button"
  2.  
  3. const Card = (props) => {
  4.     const { card } = props;
  5.     return(
  6.         <div id="Card" className="col-4">
  7.             <video src={require(`../assets/video/${card.video}`).default} />
  8.             <div className="body">
  9.                 <img src={require(`../assets/img/${card.profileIMG}`).default} />
  10.                 <p>{card.name}</p>
  11.                 <p>{card.username}</p>
  12.                 <Button text={"Follow"} type={"primary"}/>
  13.             </div>
  14.         </div>
  15.     )
  16. }
  17.  
  18. export default Card;
Add Comment
Please, Sign In to add comment