From b20835257e2fb67c74f15c67e0552c6b4ed94638 Mon Sep 17 00:00:00 2001 From: caturbgs Date: Thu, 9 Dec 2021 19:55:53 +0700 Subject: [PATCH] fix: card product responsive --- src/pages/Transaction/Pulsa.js | 214 +++++++++++++-------------- src/pages/Transaction/Transaction.js | 4 +- 2 files changed, 106 insertions(+), 112 deletions(-) diff --git a/src/pages/Transaction/Pulsa.js b/src/pages/Transaction/Pulsa.js index 6392849..ded433a 100644 --- a/src/pages/Transaction/Pulsa.js +++ b/src/pages/Transaction/Pulsa.js @@ -2,126 +2,120 @@ import React from "react"; import {Button, Card, Col, Dropdown, Menu, message, Modal, Row, Space,} from "antd"; import {DownOutlined, TabletOutlined, UserOutlined} from "@ant-design/icons"; -//const style = { background: "#0092ff", padding: "8px 0" }; -const gridStyle = { - width: "18%", - textAlign: "center", - marginRight: "8px", - marginBottom: "20px", -}; - export const Pulsa = () => { - function handleMenuClick(e) { - message.info("Click on menu item."); - console.log("click", e); - } + function handleMenuClick(e) { + message.info("Click on menu item."); + console.log("click", e); + } - const menu = ( - - }> - 1st menu item - - }> - 2nd menu item - - }> - 3rd menu item - - - ); + const menu = ( + + }> + 1st menu item + + }> + 2nd menu item + + }> + 3rd menu item + + + ); - function success() { - Modal.success({ - content: 'some messages...some messages...', - }); - } + function success() { + Modal.success({ + content: 'some messages...some messages...', + }); + } - return ( -
- + const dataCard = [ + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + { + title: "DATA AXIS BRONET 2GB-60HR", + price: "Harga : Rp.6.000", + }, + ] + + return ( +
+ Sub-Category - - - - - - - - - + + + + + + + + + Produk & Nominal - - - - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
- - DATA AXIS BRONET 2GB-60HR -
- Harga : Rp.6.000 -
-
- - - -
+
+ + {dataCard.map((item, index) => ( + + + {item.title} +
+ {item.price} +
+ + ))} +
+ + + +
); }; diff --git a/src/pages/Transaction/Transaction.js b/src/pages/Transaction/Transaction.js index c255002..9d42dfe 100644 --- a/src/pages/Transaction/Transaction.js +++ b/src/pages/Transaction/Transaction.js @@ -55,10 +55,10 @@ export const Transaction = () => { Product - Prduct + Product - Prdct + Product