source: frontend/src/Pages/ResourcesPage.js@ 07f4e8b

Last change on this file since 07f4e8b was 07f4e8b, checked in by darsov2 <62809499+darsov2@…>, 5 months ago

prefinal fixes

  • Property mode set to 100644
File size: 2.2 KB
Line 
1import React from "react";
2import {Container, Col, Row, Image} from "react-bootstrap";
3import Navigation from "../Components/Layout/Navbar/Navigation";
4import ResourcesTab from "../Components/Resources/ResourcesTab";
5import {useState} from "react";
6import useGet from "../Components/Hooks/useGet";
7import {useAuth} from "../Components/Context/AuthContext";
8import {Navigate} from "react-router-dom";
9
10const ResourcesPage = (props) => {
11
12 const Auth = useAuth();
13 const user = Auth.getUser();
14
15 return (
16 <>
17 <Navigation/>
18 {<Container>
19 <Row className="mb-5">
20 <h2 style={{color: "#159895", textAlign: "left"}}>Мои ресурси</h2>
21 </Row>
22 <Row className="mb-5">
23 <Col>
24 <Row className="d-flex mb-3">
25 <Col
26 className="d-flex justify-content-center"
27 style={{maxWidth: "30%"}}
28 >
29 <Image
30 src="https://t3.ftcdn.net/jpg/05/16/27/58/360_F_516275801_f3Fsp17x6HQK0xQgDQEELoTuERO4SsWV.jpg"
31 style={{
32 height: "5em",
33 borderRadius: "50%",
34 maxWidth: "100%",
35 }}
36 className="m-auto"
37 ></Image>
38 </Col>
39 <Col className="d-flex justify-content-center">
40 <Container className="pt-2" style={{textAlign: "left"}}>
41 <h4>{user.name + " " + user.surname}</h4>
42 <h5>{user.username}</h5>
43 </Container>
44 </Col>
45 </Row>
46 </Col>
47 </Row>
48 <Row>
49 <ResourcesTab tab={props.tab}></ResourcesTab>
50 </Row>
51 </Container>}
52 </>
53 );
54};
55
56export default ResourcesPage;
Note: See TracBrowser for help on using the repository browser.