Procházet zdrojové kódy

[ADD] profile component

amenpunk před 3 roky
rodič
revize
8d8b17b950

+ 1 - 1
perfil.php

@@ -210,4 +210,4 @@
210 210
 }(jQuery));
211 211
 
212 212
 $('input[type=file]').customFile();
213
-  </script>
213
+  </script>

+ 2 - 2
psicoadmin/src/Components/Dashboard.js

@@ -161,7 +161,7 @@ function DashboardContent() {
161 161
                                 MenuListProps={{
162 162
                                     'aria-labelledby': 'basic-button',
163 163
                                 }}>
164
-                                <MenuItem onClick={handleCloseMov}>Profile</MenuItem>
164
+                                <MenuItem onClick={ () => navigate('/perfil') }>Perfil</MenuItem>
165 165
                                 <MenuItem onClick={handleCloseMov}>My account</MenuItem>
166 166
                                 <MenuItem onClick={handleCloseMov}>Logout</MenuItem>
167 167
                             </Menu>
@@ -222,7 +222,7 @@ function DashboardContent() {
222 222
                                 open={open_profile}
223 223
                                 onClose={handleClose}
224 224
                                 MenuListProps={{ 'aria-labelledby': 'basic-button', }}>
225
-                                <MenuItem onClick={() => console.log('opcion 1') }>Profile</MenuItem>
225
+                                <MenuItem onClick={() => navigate('perfil') }>Profile</MenuItem>
226 226
                                 <MenuItem onClick={() => console.log('opcion 2')}>My account</MenuItem>
227 227
                                 <MenuItem onClick={CerrarSession}>Logout</MenuItem>
228 228
                             </Menu>

+ 3 - 1
psicoadmin/src/Components/Routes.js

@@ -3,7 +3,6 @@ import { Routes, Route, Navigate, useNavigate } from "react-router-dom";
3 3
 
4 4
 import { Dashboard } from "./Dashboard";
5 5
 import { Login } from '../Pages/Login'
6
-import { NotFound } from '../Pages/NotFound'
7 6
 import { Home } from '../Pages/Home'
8 7
 import { Puestos } from '../Pages/Puestos'
9 8
 import { Contras  } from '../Pages/Contras'
@@ -14,6 +13,8 @@ import { Historial } from '../Pages/Historial'
14 13
 import { Pruebas } from '../Pages/Pruebas'
15 14
 import { PruebaNueva } from '../Pages/PruebaNueva'
16 15
 import { PruebaAsignar } from '../Pages/PruebaAsignar'
16
+import { NotFound } from '../Pages/404'
17
+import { Profile } from '../Pages/Profile'
17 18
 
18 19
 import useAuth from '../Auth/useAuth'
19 20
 
@@ -40,6 +41,7 @@ export default function MyRoutes () {
40 41
                         <Route path="dashboard" element={<Dashboard/>}>
41 42
                             <Route path="home" element={<Home/>} />
42 43
                             <Route path="puestos" element={<Puestos/>} />
44
+                            <Route path="perfil" element={<Profile/>} />
43 45
                             <Route path="contrasenas" element={<Contras/>} />
44 46
                             <Route path="expedientes" element={<Expedientes/>} />
45 47
                             <Route path="resultados" element={<Resultados/>} />

+ 2 - 1
psicoadmin/src/Css/all.css

@@ -1096,8 +1096,9 @@ section.lockscreen {
1096 1096
     height:200px;
1097 1097
 }
1098 1098
 .page_notfound {
1099
+    padding-top: 15%;
1099 1100
     display: table-cell;
1100
-    vertical-align: middle;
1101
+    vertical-align: middle !important;
1101 1102
 }
1102 1103
 section.error_page {
1103 1104
     background: #f1f1f1;

+ 17 - 0
psicoadmin/src/Pages/404.js

@@ -0,0 +1,17 @@
1
+import { Col, Row }  from 'react-bootstrap'
2
+
3
+export function NotFound() {
4
+    return(
5
+        <section class="error_page">
6
+            <div class="page_notfound">
7
+                <Row class="row">
8
+                    <Col md="12">
9
+                        <h1>404</h1>
10
+                        <h3>Upss!.. Algo salió mal</h3>
11
+                        <p>No pudimos encontrar la página que estás buscando.</p>
12
+                    </Col>
13
+                </Row>
14
+            </div>    
15
+        </section>
16
+    )
17
+}

+ 63 - 0
psicoadmin/src/Pages/Profile.js

@@ -0,0 +1,63 @@
1
+import ProfilePicture from '../Images/man.png';
2
+import { Col, Row } from 'react-bootstrap'
3
+
4
+export function Profile () {
5
+    return (
6
+        <div class="content-section">
7
+            <div class="main">
8
+                <h1 class="breadcrumb-header">Perfil</h1>
9
+                <Row>
10
+                    <Col md="12">
11
+                        <div class="panel">
12
+                            <Row class="row">
13
+                                <Col md="4">
14
+                                    <div class="img-container">
15
+                                        <img src={ProfilePicture}/>
16
+                                    </div>
17
+                                </Col>
18
+                                <Col md="8">
19
+                                    <div class="custom-file-upload">
20
+                                        <input type="file" id="file" name="myfiles[]" multiple readonly />
21
+                                    </div>
22
+                                </Col>
23
+                            </Row>
24
+                            <Row>
25
+                                <Col md="6">
26
+                                    <div class="inputs_config">
27
+                                        <p>Datos personales</p>
28
+                                        <label>Nombre</label>
29
+                                        <input type="text" name="nombre_user" placeholder="Fernando Vásquez"/>
30
+                                        <label>Puesto / Profesión</label>
31
+                                        <input type="text" name="puesto" placeholder="Gerente general"/>
32
+                                        <label>Dirección</label>
33
+                                        <input type="text" name="direccion" placeholder="Melbourn, Australia"/>
34
+                                        <label>Número</label>
35
+                                        <input type="number" name="numero" placeholder="12345678"/>
36
+                                    </div>
37
+                                </Col>
38
+                                <Col md="6">
39
+                                    <div class="inputs_config">
40
+                                        <p>Redes sociales</p>
41
+                                        <label>Facebook</label>
42
+                                        <input type="text" name="facebook" placeholder="Link de Facebook"/>
43
+                                        <label>Linkein</label>
44
+                                        <input type="text" name="linkedin" placeholder="Link de Linkedin"/>
45
+                                        <label>Instagram</label>
46
+                                        <input type="text" name="instagram" placeholder="Link de Instagram"/>
47
+                                        <label>Correo</label>
48
+                                        <input type="email" name="instagram" placeholder="Correo electrónico"/>
49
+                                    </div>
50
+                                </Col>
51
+                            </Row>
52
+                            <div class="boton_guardar_info">
53
+                                <div class="success_btn">
54
+                                    <a href="#">Guardar</a>
55
+                                </div>
56
+                            </div>
57
+                        </div>
58
+                    </Col>
59
+                </Row>
60
+            </div>
61
+        </div>
62
+    )
63
+}