-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #226 from markalbrand56/angel
Perfil de administradores
- Loading branch information
Showing
21 changed files
with
958 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
uniEmpleos/src/components/PublicProfile/PublicProfileAdmin.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import React from "react" | ||
import style from "./PublicProfileAdmin.module.css" | ||
import { BiUser } from "react-icons/bi" | ||
import { HiOutlineMailOpen } from "react-icons/hi" | ||
import Button from "../Button/Button" | ||
const PublicProfileAdmin = ({ | ||
name, | ||
lastName, | ||
mail, | ||
pfp, | ||
suspended, | ||
funcSuspended, | ||
funcDelete, | ||
}) => { | ||
return ( | ||
<div className={style.mainContainer}> | ||
<div className={style.pfpContainer}> | ||
<img className={style.pfp} src={pfp} alt={`${name}`} /> | ||
</div> | ||
<div className={style.infoContainer}> | ||
<div className={style.nameContainer}> | ||
<BiUser size={30} /> | ||
{lastName ? ( | ||
<span className={style.name}>{`${name} ${lastName}`}</span> | ||
) : ( | ||
<span className={style.name}>{name}</span> | ||
)} | ||
</div> | ||
<div className={style.mailContainer}> | ||
<HiOutlineMailOpen size={30} /> | ||
<span className={style.info}>{mail}</span> | ||
</div> | ||
<div className={style.suspendedContainer}> | ||
<Button | ||
label={suspended ? "Activar" : "Suspender"} | ||
backgroundColor={suspended ? "#00FF00" : "#FF0000"} | ||
textColor="#FFFFFF" | ||
onClick={funcSuspended} | ||
/> | ||
<Button | ||
label="Eliminar" | ||
backgroundColor="#FF0000" | ||
textColor="#FFFFFF" | ||
onClick={funcDelete} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default PublicProfileAdmin |
85 changes: 85 additions & 0 deletions
85
uniEmpleos/src/components/PublicProfile/PublicProfileAdmin.module.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
.mainContainer { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: center; | ||
width: calc(100% - 40px); | ||
height: calc(100% - 40px); | ||
color: #000; | ||
gap: 10%; | ||
padding: 20px; | ||
} | ||
|
||
.pfpContainer { | ||
display: flex; | ||
align-items: center; | ||
justify-content: end; | ||
height: 80%; | ||
width: 50%; | ||
} | ||
|
||
.pfp { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 60%; | ||
height: 80%; | ||
object-fit: cover; | ||
border-radius: 10px; | ||
box-shadow: #00000040 0 54px 55px, #0000001f 0 -12px 30px, #0000001f 0 4px 6px, #0000002b 0 12px 13px, #00000017 0 -3px 5px; | ||
} | ||
|
||
.infoContainer { | ||
display: flex; | ||
flex-direction: column; | ||
padding: 15px; | ||
height: calc(100% - 30px); | ||
align-items: flex-start; | ||
justify-content: center; | ||
width: calc(50% - 30px); | ||
gap: 20px; | ||
} | ||
|
||
.infoContainer > * { | ||
display: flex; | ||
flex-direction: row; | ||
gap: 20px; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.infoContainer > div > span { | ||
font-size: 20px; | ||
color: #333; | ||
text-align: center; | ||
} | ||
|
||
.suspendedContainer { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
@media (max-width: 767px) { | ||
|
||
.mainContainer { | ||
flex-direction: column; | ||
} | ||
|
||
.pfpContainer { | ||
justify-content: center; | ||
align-items: center; | ||
width: 70%; | ||
height: 50%; | ||
} | ||
|
||
.infoContainer { | ||
width: 100%; | ||
height: 50%; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.