From 7ba8406be8b4aa282f31ff521884b55529c7a3c0 Mon Sep 17 00:00:00 2001 From: Jahongir Yusupov <91022355+jahongiry@users.noreply.github.com> Date: Fri, 19 Jan 2024 21:07:21 +0500 Subject: [PATCH] Add user image --- src/App.css | 4 +- src/pages/cards/Cards.js | 99 ++++++++++++++------------- src/pages/cards/cards.css | 12 +--- src/pages/offer/offer.css | 2 +- src/pages/profile/Profile.js | 2 +- src/pages/profile/ProfileOfferData.js | 2 +- src/slices/authSlice.js | 1 + 7 files changed, 60 insertions(+), 62 deletions(-) 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 ( -
openPopUp(game.id)}> Owner: {game.owner}
-