mirror of
https://github.com/ishitb/binge.git
synced 2026-08-07 11:53:17 -04:00
21 lines
440 B
JavaScript
21 lines
440 B
JavaScript
import React, { useState, useEffect } from "react";
|
|
import "./card.css";
|
|
|
|
function Card({ name, image, network }) {
|
|
return (
|
|
<div
|
|
className="card"
|
|
style={
|
|
{
|
|
background: `url(${image}) no-repeat center center/cover`
|
|
}
|
|
}
|
|
>
|
|
<h1>{name}</h1>
|
|
<p>Network : {network} </p>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default Card;
|