浏览代码

some features

amenpunk 3 年之前
父节点
当前提交
98ea174d5d
共有 5 个文件被更改,包括 20 次插入11 次删除
  1. 8 0
      src/App.css
  2. 2 5
      src/Components/Home/Candidato.jsx
  3. 5 3
      src/Components/Home/Candidatos.js
  4. 3 2
      src/Css/all.css
  5. 2 1
      src/Pages/Login.jsx

+ 8 - 0
src/App.css

1
+:root {
2
+  --main: #fd4b4b;
3
+  --second: #2ec5d3;
4
+}
1
 .App {
5
 .App {
2
     text-align: center;
6
     text-align: center;
3
 }
7
 }
78
     flex-direction: row;
82
     flex-direction: row;
79
     padding : 90px;
83
     padding : 90px;
80
     max-height : 175px;
84
     max-height : 175px;
85
+    margin-bottom:20px
81
 }
86
 }
82
 .MuiFormControl{
87
 .MuiFormControl{
83
     border : 1px solid #eceff1;
88
     border : 1px solid #eceff1;
199
     font-size:14px;
204
     font-size:14px;
200
 }
205
 }
201
 
206
 
207
+#login_btn_fn:hover{
208
+    background-color: var(--second)
209
+}

+ 2 - 5
src/Components/Home/Candidato.jsx

1
 import { Skeleton, Box } from '@mui/material';
1
 import { Skeleton, Box } from '@mui/material';
2
 import React from 'react'
2
 import React from 'react'
3
-const big_as = 50
3
+const big_as = 70
4
 
4
 
5
 export function Candidato (props) {
5
 export function Candidato (props) {
6
     let { password,puesto,DPI, aplicacion,pendientes } = props.user
6
     let { password,puesto,DPI, aplicacion,pendientes } = props.user
30
 
30
 
31
 export function Preview() {
31
 export function Preview() {
32
     return(
32
     return(
33
-        <Box sx={{ width: '100%'}}>
34
-            <Skeleton height={big_as} animation="wave" />
35
-            <Skeleton height={big_as} animation="wave" />
36
-            <Skeleton height={big_as} animation="wave" />
33
+        <Box sx={{ width: '100%' }}>
37
             <Skeleton height={big_as} animation="wave" />
34
             <Skeleton height={big_as} animation="wave" />
38
             <Skeleton height={big_as} animation="wave" />
35
             <Skeleton height={big_as} animation="wave" />
39
             <Skeleton height={big_as} animation="wave" />
36
             <Skeleton height={big_as} animation="wave" />

+ 5 - 3
src/Components/Home/Candidatos.js

94
                 <Row style={{ padding : 5 }}>
94
                 <Row style={{ padding : 5 }}>
95
                     <Col>
95
                     <Col>
96
                         <Stack style={{ display : 'flex', flexDirection : 'row', alignItems: 'baseline'  }} spacing={2}>
96
                         <Stack style={{ display : 'flex', flexDirection : 'row', alignItems: 'baseline'  }} spacing={2}>
97
-                            <Typography style={{ paddingTop : 15, paddingRight : 10 }}>Page: {page}</Typography>
97
+                            <Typography style={{ paddingTop : 15, paddingRight : 10 }}>Página: {page}</Typography>
98
                             <Pagination 
98
                             <Pagination 
99
-                                siblingCount={5} 
99
+                                siblingCount={1} 
100
+                                boundaryCount={1}
100
                                 shape='rounded' 
101
                                 shape='rounded' 
101
                                 count={users.length} 
102
                                 count={users.length} 
102
                                 page={page} 
103
                                 page={page} 
103
-                                onChange={changePage} />
104
+                                onChange={changePage} 
105
+                            />
104
                         </Stack>
106
                         </Stack>
105
                     </Col>
107
                     </Col>
106
                 </Row>
108
                 </Row>

+ 3 - 2
src/Css/all.css

1748
     flex-direction : row;
1748
     flex-direction : row;
1749
     align-items: center;
1749
     align-items: center;
1750
     background: #d7d7d7;
1750
     background: #d7d7d7;
1751
-    /* padding: 10px; */
1751
+    padding-top: 10px;
1752
+    padding-bottom: 10px;
1752
     border: 1px solid #dcdcdc;
1753
     border: 1px solid #dcdcdc;
1753
-    /* height : 45px; */
1754
+    height : 53px;
1754
 }
1755
 }
1755
 .header_historial p{
1756
 .header_historial p{
1756
     /* margin: 0!important; */
1757
     /* margin: 0!important; */

+ 2 - 1
src/Pages/Login.jsx

161
                                 label="Recordarme"
161
                                 label="Recordarme"
162
                             />
162
                             />
163
                             <Button
163
                             <Button
164
+                                id="login_btn_fn"
164
                                 type="submit"
165
                                 type="submit"
165
                                 fullWidth
166
                                 fullWidth
166
                                 variant="contained"
167
                                 variant="contained"
167
-                                sx={{ mt: 3, mb: 2, bgcolor :'#fd4b4b'  }}
168
+                                sx={{ mt: 3, mb: 2, bgcolor :'var(--main)'  }}
168
                             >
169
                             >
169
                                 Ingresar
170
                                 Ingresar
170
                             </Button>
171
                             </Button>