diff --git a/src/App.css b/src/App.css
index 2fed7dc..e844678 100644
--- a/src/App.css
+++ b/src/App.css
@@ -31,8 +31,8 @@ img {
}
.container {
- padding-left: 5vw;
- padding-right: 5vw;
+ padding-left: 2.5vw;
+ padding-right: 2.5vw;
}
.btn {
diff --git a/src/pages/cards/Cards.js b/src/pages/cards/Cards.js
index 9fd438d..05c8442 100644
--- a/src/pages/cards/Cards.js
+++ b/src/pages/cards/Cards.js
@@ -1,11 +1,11 @@
-import React, { useState } from "react";
-import "./cards.css";
-import logo1 from "../../component/header/logo1_1.png";
-import pubg from "../../img/pubg.jpeg";
-import { NavLink, Link } from "react-router-dom";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { faStar } from "@fortawesome/free-solid-svg-icons";
-import Popup from "./popup/Popup";
+import React, { useState } from 'react';
+import './cards.css';
+import logo1 from '../../component/header/logo1_1.png';
+import pubg from '../../img/pubg.jpeg';
+import { NavLink, Link } from 'react-router-dom';
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
+import { faStar } from '@fortawesome/free-solid-svg-icons';
+import Popup from './popup/Popup';
const Cards = () => {
const [selectedGameId, setSelectedGameId] = useState(null);
@@ -18,46 +18,50 @@ const Cards = () => {
{
id: 1,
img: pubg,
- name: "game1",
+ name: 'game1',
level: 62,
- rp: "3 ta olingan",
+ rp: '3 ta olingan',
skins: "Juda ko'p",
price: 2000,
- owner: "Jahongir",
- description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!",
+ owner: 'Jahongir',
+ description:
+ 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!',
},
{
id: 2,
img: pubg,
- name: "game1",
+ name: 'game1',
level: 62,
- rp: "3 ta olingan",
+ rp: '3 ta olingan',
skins: "Juda ko'p",
price: 2000,
- owner: "Jahongir",
- description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!",
+ owner: 'Jahongir',
+ description:
+ 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!',
},
{
id: 3,
img: pubg,
- name: "game1",
+ name: 'game1',
level: 62,
- rp: "3 ta olingan",
+ rp: '3 ta olingan',
skins: "Juda ko'p",
price: 2000,
- owner: "Jahongir",
- description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!",
+ owner: 'Jahongir',
+ description:
+ 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!',
},
{
id: 4,
img: pubg,
- name: "game1",
+ name: 'game1',
level: 62,
- rp: "3 ta olingan",
+ rp: '3 ta olingan',
skins: "Juda ko'p",
price: 2000,
- owner: "Jahongir",
- description: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!",
+ owner: 'Jahongir',
+ description:
+ 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Nobis, ipsa!',
},
];
@@ -67,33 +71,32 @@ const Cards = () => {
const selectedGame = games.find((game) => game.id === selectedGameId);
return (
-
-
-
+
+
+
-
+
-
Filterlash
-
-
-
-
-
+
Filterlash
+
+
+
+
-
+
{games.map((game) => (
-
-
+
+
openPopUp(game.id)}
- className="card-img"
+ className='card-img'
src={game.img}
- alt="image"
+ alt='image'
/>
openPopUp(game.id)}>{game.name}
@@ -109,14 +112,14 @@ const Cards = () => {
openPopUp(game.id)}>
Owner: {game.owner}
-
openPopUp(game.id)}>
-
-
-
-
-
+
openPopUp(game.id)}>
+
+
+
+
+
-