From 9e91bebb5a387d40169d69496ce3f827e5d15294 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Sat, 31 Aug 2019 18:48:16 +0100 Subject: [PATCH] feature #11: Created card presentation component --- src/components/cards/card.js | 30 +++++++++++++++++++++++++++++- src/tools/db.json | 2 +- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/src/components/cards/card.js b/src/components/cards/card.js index 41daef6..cc53944 100644 --- a/src/components/cards/card.js +++ b/src/components/cards/card.js @@ -1,2 +1,30 @@ import React from "react"; -import Card from "@material-ui/core/Card"; +import UiCard from "@material-ui/core/Card"; +import { CardContent, CardHeader, Typography } from "@material-ui/core"; + +const Card = ({ + _id, + number, + title, + description, + status, + board, + comments, + activity, + attachments, + owner, + members, + createdDate, + modifiedDate +}) => ( + + > + + + {description} + + + +); + +export default Card; diff --git a/src/tools/db.json b/src/tools/db.json index f9395de..2c29f85 100644 --- a/src/tools/db.json +++ b/src/tools/db.json @@ -1 +1 @@ -{"cards":[{"_id":"5d60727643805a36c4c71d11","title":"main until","boardId":"","status":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith","address":"32 Walpole Road","city":"London","postcode":"N17","__v":0}},{"_id":"5d6072760a36855fc69a385d","title":"worry know","boardId":"","status":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith","address":"32 Walpole Road","city":"London","postcode":"N17","__v":0}},{"_id":"5d60727602117c1e63eaaf33","title":"empty fog","boardId":"","status":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith","address":"32 Walpole Road","city":"London","postcode":"N17","__v":0}},{"_id":"5d6072760c989fa581296e02","title":"taste become","boardId":"","status":"","owner":{"_id":"5d42104a7979bd071c129604","firstName":"Dora","lastName":"Fitzgerald","address":"1300 Eknaw Path","city":"Evegirhe","postcode":"P8K 4T1","__v":0}},{"_id":"5d6072763a5e8a7c5838ccfc","title":"clean hurry","boardId":"","status":"","owner":{"_id":"5d42104a7979bd071c129604","firstName":"Dora","lastName":"Fitzgerald","address":"1300 Eknaw Path","city":"Evegirhe","postcode":"P8K 4T1","__v":0}},{"_id":"5d6072761396a6b379fa5c3a","title":"class invented","boardId":"","status":"","owner":{"_id":"5d42104a7979bd071c129604","firstName":"Dora","lastName":"Fitzgerald","address":"1300 Eknaw Path","city":"Evegirhe","postcode":"P8K 4T1","__v":0}},{"_id":"5d607276ba59ac18120faf88","title":"care respect","boardId":"","status":"","owner":{"_id":"5d42104a7979bd071c12960b","firstName":"Rodney","lastName":"Fitzgerald","address":"1961 Goku Heights","city":"Kivzupzi","postcode":"J5C 8H1","__v":0}},{"_id":"5d60727626e6e7175e135164","title":"stone enough","boardId":"","status":"","owner":{"_id":"5d42104a7979bd071c12960b","firstName":"Rodney","lastName":"Fitzgerald","address":"1961 Goku Heights","city":"Kivzupzi","postcode":"J5C 8H1","__v":0}},{"_id":"5d607276ba76a9f8094409f0","title":"visit gulf","boardId":"","status":"","owner":{"_id":"5d42104a7979bd071c12960b","firstName":"Rodney","lastName":"Fitzgerald","address":"1961 Goku Heights","city":"Kivzupzi","postcode":"J5C 8H1","__v":0}},{"_id":"5d607276f683aa17684f4288","title":"air running","boardId":"","status":"","owner":{"_id":"5d42104a7979bd071c12960b","firstName":"Rodney","lastName":"Fitzgerald","address":"1961 Goku Heights","city":"Kivzupzi","postcode":"J5C 8H1","__v":0}}],"users":[{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith","address":"32 Walpole Road","city":"London","postcode":"N17","__v":0,"userName":"claws circle","password":"$2b$05$2.3R3gIiLY0.k3W2NyFU1eS0By2gEatUxvFNZ/hm6w.uLP4xynrZK"},{"_id":"5d43fed51d0825849c0f0b67","firstName":"Rosa","lastName":"Smith","address":"32 Walpole Road","city":"London","postcode":"N17","__v":0,"userName":"court nation","password":"$2b$05$N8m6IdK07d.ebxqkS2pvDuBAh8oVkeVblDr/D36u5GdK3eKa9OrWy"},{"_id":"5d42104a7979bd071c129604","firstName":"Dora","lastName":"Fitzgerald","address":"1300 Eknaw Path","city":"Evegirhe","postcode":"P8K 4T1","__v":0,"userName":"brass indeed","password":"$2b$05$CB4O9hzF7Wx.C..hActQoOzjIiFVcKK79h6zJutK1seHj13b9i/gq"},{"_id":"5d42104a7979bd071c129605","firstName":"Bryan","lastName":"Fitzgerald","address":"1050 Dedu Point","city":"Irhekde","postcode":"G1K 2N9","__v":0,"userName":"interior one","password":"$2b$05$u3S3FSfVetkUrYAbQgUTROLbk7l4Ez3Z6PcQlp1XRiPoy83ult.BW"},{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald","address":"560 Fibab Glen","city":"Hudmakap","postcode":"T9U 0N6","__v":0,"userName":"season carried","password":"$2b$05$d1NOjWSsLqvjssyI1LKaK.QcnofuAwjgIozR86Pn/p2ixA0CjVX06"},{"_id":"5d42104a7979bd071c129607","firstName":"Alma","lastName":"Fitzgerald","address":"1630 Zuas Place","city":"Caturaagu","postcode":"G9E 7N0","__v":0,"userName":"stay underline","password":"$2b$05$MqkYhqxPam.a2LuUB7J9l.nDih2DRRIYxGoxh4SLzKxvA7W7Ltmjm"},{"_id":"5d42104a7979bd071c129608","firstName":"Billy","lastName":"Fitzgerald","address":"1689 Hopge Square","city":"Vinpati","postcode":"C2O 6D1","__v":0,"userName":"end owner","password":"$2b$05$1ErQO/LyTVZzPqXy5fv2AOEQUBcw0cypVQffxXX7J/1qJphFckDbO"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald","address":"1912 Dusved Ridge","city":"Atehasma","postcode":"N2D 7C3","__v":0,"userName":"column location","password":"$2b$05$BHvS9h08epkH8LL7CJ31HuCz09fYJ3DIv81w0BWZQu.mtoB0v7BV2"},{"_id":"5d42104a7979bd071c12960a","firstName":"Charlotte","lastName":"Fitzgerald","address":"611 Gumaf Way","city":"Kalover","postcode":"E4Y 2E7","__v":0,"userName":"action please","password":"$2b$05$8TrKFk/gSO241uG/4s6k.uJWi/0tc0KZPCoqbVryAfVu/7YfgDqvy"},{"_id":"5d42104a7979bd071c12960b","firstName":"Rodney","lastName":"Fitzgerald","address":"1961 Goku Heights","city":"Kivzupzi","postcode":"J5C 8H1","__v":0,"userName":"solution primitive","password":"$2b$05$ZQXo4wwzA.wzrGKY7/BM8uthaaoYXvkFx8HbbUDlPTwXMAGZOKsu."}]} \ No newline at end of file +{"cards":[{"_id":"5d6aa2c08040a256ce40c16b","number":"#0","title":"took division","description":"Veniam amet sint aliqua sit. Id nulla aliquip est ullamco excepteur sint aliquip. Ut in consequat esse incididunt. Laboris consequat pariatur aute incididunt labore elit. Velit veniam aute cupidatat laborum consectetur amet fugiat.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.779Z","modifiedDate":"2019-08-31T16:39:28.779Z"},{"_id":"5d6aa2c0340c4e6be56eab91","number":"#1","title":"four perfectly","description":"Exercitation aute eiusmod culpa officia. Dolor aliquip minim veniam veniam aute. Eiusmod velit magna labore. Consequat quis quis in adipisicing et est ea. Nisi consectetur occaecat in.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.779Z","modifiedDate":"2019-08-31T16:39:28.779Z"},{"_id":"5d6aa2c0c84791e741e771d8","number":"#2","title":"eaten chosen","description":"Consequat minim ipsum eiusmod qui velit proident. Adipisicing sint ad veniam qui reprehenderit consectetur elit dolor aliquip. Ea aliquip in ullamco culpa nisi adipisicing sit. Dolor eiusmod proident aute. Id elit velit aute commodo non ipsum.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.779Z","modifiedDate":"2019-08-31T16:39:28.779Z"},{"_id":"5d6aa2c0f16942ff1f889661","number":"#3","title":"plant build","description":"Ex voluptate irure proident non commodo. Est eiusmod magna magna qui non magna. Officia duis et non amet dolore. Quis culpa ex consectetur magna cupidatat. Eu do labore tempor.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.779Z","modifiedDate":"2019-08-31T16:39:28.779Z"},{"_id":"5d6aa2c0a8d87097a70116ba","number":"#4","title":"house mirror","description":"Consequat ullamco reprehenderit non eiusmod. Reprehenderit quis commodo commodo pariatur proident. Dolore fugiat ullamco dolor minim ea excepteur. Irure qui velit deserunt dolore sunt duis. Non officia aliquip nulla adipisicing excepteur eu quis quis.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.780Z","modifiedDate":"2019-08-31T16:39:28.780Z"},{"_id":"5d6aa2c00f0395222d6483ba","number":"#5","title":"new dawn","description":"Deserunt consequat nisi sunt et sint eu magna. Pariatur pariatur ex aliqua dolor Lorem fugiat nulla et veniam. Sunt nostrud est duis reprehenderit culpa esse occaecat pariatur. Aliquip nostrud occaecat officia laboris aute et cillum non ex. Ea ad sunt non adipisicing laborum fugiat sint.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.780Z","modifiedDate":"2019-08-31T16:39:28.780Z"},{"_id":"5d6aa2c07102a470b4f1066c","number":"#6","title":"income whose","description":"Ex officia est pariatur officia irure eu pariatur mollit. Sint excepteur cupidatat sunt do sit consequat non. Aute ea aliqua id do ut in. Non reprehenderit qui ea labore cupidatat excepteur excepteur qui aliquip. Mollit id labore voluptate nisi aute.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.780Z","modifiedDate":"2019-08-31T16:39:28.780Z"},{"_id":"5d6aa2c09cad9ad87fb52743","number":"#7","title":"occur compare","description":"Mollit ut sunt sit. Commodo commodo sit esse anim amet. Culpa nostrud exercitation cupidatat. Commodo duis esse aliqua non. Elit laborum consequat quis ullamco nulla in aliqua est.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.780Z","modifiedDate":"2019-08-31T16:39:28.780Z"},{"_id":"5d6aa2c0b3c3b66d9e80ceb6","number":"#8","title":"hold how","description":"Id fugiat et aliqua nisi. Ea laborum dolor exercitation sit. Veniam ea dolore ad est ad anim excepteur. Eiusmod magna aliquip duis. Anim deserunt dolor eu velit eiusmod aliquip eu consectetur Lorem.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.780Z","modifiedDate":"2019-08-31T16:39:28.780Z"},{"_id":"5d6aa2c07500c1f9ceb14f9b","number":"#9","title":"upon fourth","description":"Fugiat nulla tempor pariatur anim fugiat culpa est ut cillum. Excepteur commodo reprehenderit mollit dolor fugiat reprehenderit. Magna culpa enim esse Lorem occaecat esse culpa ullamco. Tempor culpa voluptate fugiat reprehenderit. Ex non laborum ullamco sit nostrud laborum Lorem.","status":"","board":"","comments":"","activity":"","attachments":"","owner":{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith"},"members":[{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald"}],"createdDate":"2019-08-31T16:39:28.780Z","modifiedDate":"2019-08-31T16:39:28.780Z"}],"users":[{"_id":"5d42e5d5e1e3d731df26010a","firstName":"Andrew","lastName":"Smith","address":"32 Walpole Road","city":"London","postcode":"N17","__v":0,"userName":"claws circle","password":"$2b$05$2.3R3gIiLY0.k3W2NyFU1eS0By2gEatUxvFNZ/hm6w.uLP4xynrZK"},{"_id":"5d43fed51d0825849c0f0b67","firstName":"Rosa","lastName":"Smith","address":"32 Walpole Road","city":"London","postcode":"N17","__v":0,"userName":"court nation","password":"$2b$05$N8m6IdK07d.ebxqkS2pvDuBAh8oVkeVblDr/D36u5GdK3eKa9OrWy"},{"_id":"5d42104a7979bd071c129604","firstName":"Dora","lastName":"Fitzgerald","address":"1300 Eknaw Path","city":"Evegirhe","postcode":"P8K 4T1","__v":0,"userName":"brass indeed","password":"$2b$05$CB4O9hzF7Wx.C..hActQoOzjIiFVcKK79h6zJutK1seHj13b9i/gq"},{"_id":"5d42104a7979bd071c129605","firstName":"Bryan","lastName":"Fitzgerald","address":"1050 Dedu Point","city":"Irhekde","postcode":"G1K 2N9","__v":0,"userName":"interior one","password":"$2b$05$u3S3FSfVetkUrYAbQgUTROLbk7l4Ez3Z6PcQlp1XRiPoy83ult.BW"},{"_id":"5d42104a7979bd071c129606","firstName":"Dale","lastName":"Fitzgerald","address":"560 Fibab Glen","city":"Hudmakap","postcode":"T9U 0N6","__v":0,"userName":"season carried","password":"$2b$05$d1NOjWSsLqvjssyI1LKaK.QcnofuAwjgIozR86Pn/p2ixA0CjVX06"},{"_id":"5d42104a7979bd071c129607","firstName":"Alma","lastName":"Fitzgerald","address":"1630 Zuas Place","city":"Caturaagu","postcode":"G9E 7N0","__v":0,"userName":"stay underline","password":"$2b$05$MqkYhqxPam.a2LuUB7J9l.nDih2DRRIYxGoxh4SLzKxvA7W7Ltmjm"},{"_id":"5d42104a7979bd071c129608","firstName":"Billy","lastName":"Fitzgerald","address":"1689 Hopge Square","city":"Vinpati","postcode":"C2O 6D1","__v":0,"userName":"end owner","password":"$2b$05$1ErQO/LyTVZzPqXy5fv2AOEQUBcw0cypVQffxXX7J/1qJphFckDbO"},{"_id":"5d42104a7979bd071c129609","firstName":"Adeline","lastName":"Fitzgerald","address":"1912 Dusved Ridge","city":"Atehasma","postcode":"N2D 7C3","__v":0,"userName":"column location","password":"$2b$05$BHvS9h08epkH8LL7CJ31HuCz09fYJ3DIv81w0BWZQu.mtoB0v7BV2"},{"_id":"5d42104a7979bd071c12960a","firstName":"Charlotte","lastName":"Fitzgerald","address":"611 Gumaf Way","city":"Kalover","postcode":"E4Y 2E7","__v":0,"userName":"action please","password":"$2b$05$8TrKFk/gSO241uG/4s6k.uJWi/0tc0KZPCoqbVryAfVu/7YfgDqvy"},{"_id":"5d42104a7979bd071c12960b","firstName":"Rodney","lastName":"Fitzgerald","address":"1961 Goku Heights","city":"Kivzupzi","postcode":"J5C 8H1","__v":0,"userName":"solution primitive","password":"$2b$05$ZQXo4wwzA.wzrGKY7/BM8uthaaoYXvkFx8HbbUDlPTwXMAGZOKsu."}]} \ No newline at end of file