developer resume

This commit is contained in:
Николай Полтщук 2024-08-07 18:06:10 +03:00
parent 4cd3118649
commit 4464324ae2
2 changed files with 26 additions and 16 deletions

View File

@ -32,7 +32,7 @@ export const Summary = () => {
const [gitInfo, setGitInfo] = useState([]);
const [editSummaryOpen, setEditSummaryOpen] = useState(false);
const [editSkills, setEditSkills] = useState(false);
const [userInfo, setUserInfo] = useState({})
const [userInfo, setUserInfo] = useState({});
const [summary, setSummary] = useState("");
const [selectedSkills, setSelectedSkills] = useState([]);
const [selectSkillsOpen, setSelectSkillsOpen] = useState(false);
@ -67,11 +67,11 @@ export const Summary = () => {
fio: res.userCard.fio,
specification: res.userCard.specification,
level: res.userCard.level_title,
position: res.userCard.position.name,
})
setSummary(res.userCard.vc_text)
setSelectedSkills(res.userCard.skillValues)
})
position: res.userCard.position.name
});
setSummary(res.userCard.vc_text);
setSelectedSkills(res.userCard.skillValues);
});
}
}, [userId]);
@ -149,19 +149,29 @@ export const Summary = () => {
<div className={openGit ? "summary__info open-git" : "summary__info"}>
<div className="summary__person">
<img
src={userId ? urlForLocal(userInfo.photo) :
profileInfo?.photo ? urlForLocal(profileInfo.photo) : avatarMok
src={
userId
? urlForLocal(userInfo.photo)
: profileInfo?.photo
? urlForLocal(profileInfo.photo)
: avatarMok
}
className="summary__avatar"
alt="avatar"
/>
<p className="summary__name">
{userId ? userInfo.fio : (profileInfo?.fio || profileInfo?.username)}{" "}
{userId
? userInfo.fio
: profileInfo?.fio || profileInfo?.username}{" "}
{userId ? userInfo.specification : profileInfo.specification}
</p>
<hr />
<div className="summary__direction">{userId ? userInfo.position : profileInfo?.position?.name}</div>
<div className="summary__level">{userId ? userInfo.level : profileInfo?.level_title}</div>
<div className="summary__direction">
{userId ? userInfo.position : profileInfo?.position?.name}
</div>
<div className="summary__level">
{userId ? userInfo.level : profileInfo?.level_title}
</div>
</div>
{!openGit && (
<button className="summary__git" onClick={() => setOpenGit(true)}>
@ -174,7 +184,7 @@ export const Summary = () => {
<div className="summary__skills skills__section">
<div className="summary__sections__head">
<h3>Основной стек</h3>
{!userId &&
{!userId && (
<button
className={editSkills ? "edit" : ""}
onClick={() => {
@ -186,7 +196,7 @@ export const Summary = () => {
>
{editSkills ? "Сохранить" : "Редактировать"}
</button>
}
)}
</div>
<div className="skills__section__items">
{editSkills ? (
@ -256,7 +266,7 @@ export const Summary = () => {
<div className="experience__block">
<div className="summary__sections__head">
<h3>Опыт работы</h3>
{!userId &&
{!userId && (
<button
className={editSummaryOpen ? "edit" : ""}
onClick={() => {
@ -268,7 +278,7 @@ export const Summary = () => {
>
{editSummaryOpen ? "Сохранить" : "Редактировать"}
</button>
}
)}
</div>
{editSummaryOpen ? (
<CKEditor

View File

@ -20,6 +20,7 @@ import { Profile } from "@pages/Profile/Profile";
import { ProjectTracker } from "@pages/ProjectTracker/ProjectTracker";
import { Stack } from "@pages/Stack/Stack";
import Statistics from "@pages/Statistics/Statistics";
import { Summary } from "@pages/Summary/Summary";
import { Tracker } from "@pages/Tracker/Tracker";
import { TrackerIntro } from "@pages/TrackerIntro/TrackerIntro";
import { ViewReport } from "@pages/ViewReport/ViewReport";
@ -27,7 +28,6 @@ import { WelcomePage } from "@pages/WelcomePage/WelcomePage";
import { Calendar } from "@components/Calendar/Calendar";
import { Candidate } from "@components/Candidate/Candidate";
import { Summary } from "@pages/Summary/Summary";
export const PartnerPage = () => {
return (