浏览代码

some features

amenpunk 2 年之前
父节点
当前提交
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,3 +1,7 @@
1
+:root {
2
+  --main: #fd4b4b;
3
+  --second: #2ec5d3;
4
+}
1 5
 .App {
2 6
     text-align: center;
3 7
 }
@@ -78,6 +82,7 @@
78 82
     flex-direction: row;
79 83
     padding : 90px;
80 84
     max-height : 175px;
85
+    margin-bottom:20px
81 86
 }
82 87
 .MuiFormControl{
83 88
     border : 1px solid #eceff1;
@@ -199,3 +204,6 @@
199 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,6 +1,6 @@
1 1
 import { Skeleton, Box } from '@mui/material';
2 2
 import React from 'react'
3
-const big_as = 50
3
+const big_as = 70
4 4
 
5 5
 export function Candidato (props) {
6 6
     let { password,puesto,DPI, aplicacion,pendientes } = props.user
@@ -30,10 +30,7 @@ export function Candidato (props) {
30 30
 
31 31
 export function Preview() {
32 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 34
             <Skeleton height={big_as} animation="wave" />
38 35
             <Skeleton height={big_as} animation="wave" />
39 36
             <Skeleton height={big_as} animation="wave" />

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

@@ -94,13 +94,15 @@ export default function Candidatos () {
94 94
                 <Row style={{ padding : 5 }}>
95 95
                     <Col>
96 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 98
                             <Pagination 
99
-                                siblingCount={5} 
99
+                                siblingCount={1} 
100
+                                boundaryCount={1}
100 101
                                 shape='rounded' 
101 102
                                 count={users.length} 
102 103
                                 page={page} 
103
-                                onChange={changePage} />
104
+                                onChange={changePage} 
105
+                            />
104 106
                         </Stack>
105 107
                     </Col>
106 108
                 </Row>

+ 3 - 2
src/Css/all.css

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

+ 2 - 1
src/Pages/Login.jsx

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