Last change
on this file since efaa053 was 07f4e8b, checked in by darsov2 <62809499+darsov2@…>, 13 months ago |
prefinal fixes
|
-
Property mode
set to
100644
|
File size:
2.2 KB
|
Line | |
---|
1 | import React from "react";
|
---|
2 | import {Container, Col, Row, Image} from "react-bootstrap";
|
---|
3 | import Navigation from "../Components/Layout/Navbar/Navigation";
|
---|
4 | import ResourcesTab from "../Components/Resources/ResourcesTab";
|
---|
5 | import {useState} from "react";
|
---|
6 | import useGet from "../Components/Hooks/useGet";
|
---|
7 | import {useAuth} from "../Components/Context/AuthContext";
|
---|
8 | import {Navigate} from "react-router-dom";
|
---|
9 |
|
---|
10 | const 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 |
|
---|
56 | export default ResourcesPage;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.