From 11b16512c8185b4e3255e4db2732e5da017afbda Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Mon, 30 Jan 2023 17:39:34 -0800 Subject: [PATCH] doc: create layout of the Card component --- src/components/Card.jsx | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/src/components/Card.jsx b/src/components/Card.jsx index 9e286c0..2ef5d2c 100644 --- a/src/components/Card.jsx +++ b/src/components/Card.jsx @@ -1,7 +1,39 @@ import React from "react"; -const Card = () => { - return
Card
; -}; +import { download } from "../assets"; +import { downloadImage } from "../utils"; + +const Card = ({ _id, name, prompt, photo }) => ( +
+ {prompt} +
+

{prompt}

+ +
+
+
+ {name[0]} +
+

{name}

+
+ +
+
+
+); export default Card;