mirror of
https://github.com/ishitb/binge.git
synced 2026-08-07 19:56:16 -04:00
Main Page start
This commit is contained in:
20
src/assets/card.js
Normal file
20
src/assets/card.js
Normal file
@@ -0,0 +1,20 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user