瀏覽代碼

Added resposnive design

pull/49/head
Safet Purkovic 3 年之前
父節點
當前提交
2c6ef18fb4

+ 64
- 11
src/assets/styles/components/_selectionProcessPage.scss 查看文件

padding-left: 0.3rem; padding-left: 0.3rem;
color: #226CB0; color: #226CB0;
letter-spacing: 0.02em; letter-spacing: 0.02em;

@include media-below($bp-xl) {
font-size: 14px;
}
}

h1,
h3 {
@include media-below($bp-xl) {
font-size: 18px;
}
} }


.level-header-spliter { .level-header-spliter {
padding-left: 0.3rem; padding-left: 0.3rem;
color: #272727; color: #272727;
letter-spacing: 0.02em; letter-spacing: 0.02em;

@include media-below($bp-xl) {
font-size: 18px;
}
} }


.selection-levels-processes { .selection-levels-processes {
border-radius: 18px; border-radius: 18px;
gap: 18px; gap: 18px;
margin-right: 36px; margin-right: 36px;

@include media-below($bp-xl) { @include media-below($bp-xl) {
margin-right: 20px !important; margin-right: 20px !important;
padding: 36px !important;
padding: 18px !important;
} }
} }


flex: none; flex: none;
order: 0; order: 0;
flex-grow: 0; flex-grow: 0;

@include media-below($bp-xl) {
font-size: 18px;
}
} }


.selection-item-name, .selection-item-name,
border: 1px solid #E4E4E4; border: 1px solid #E4E4E4;
border-radius: 18px; border-radius: 18px;
transition: 0.3s; transition: 0.3s;
@include media-below($bp-xl) {
justify-content: space-between;
padding: 18px;
width: 303px;
}
} }


.sel-item .status { .sel-item .status {
flex: none; flex: none;
order: 0; order: 0;
flex-grow: 0; flex-grow: 0;
@include media-below($bp-xl) {
font-size: 14px;
order:1;
}
}

.sel-item .date-name{
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 18px;
cursor: pointer;
width: 100%;
order: 1;
@include media-below($bp-xl) {
flex-direction: column;
font-size: 14px;
order: 0;
flex-grow: 0;
gap:4px;
}
} }


.sel-item .date {
.sel-item .date-name .date {
font-family: 'Source Sans Pro'; font-family: 'Source Sans Pro';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
line-height: 20px;
color: #272727; color: #272727;
flex: none;
font-size: 14px !important;
order: 0;
} }


.sel-item .full-name {
.full-name {
height: 20px; height: 20px;
font-family: 'Source Sans Pro'; font-family: 'Source Sans Pro';
font-style: normal; font-style: normal;
color: #226CB0; color: #226CB0;
flex: 3 0 auto; flex: 3 0 auto;
order: 1; order: 1;
@include media-below($bp-xl) {
text-align: left !important;
font-size: 14px !important;
}
}

.full-name p,.sel-item .date-name .date p{
@include media-below($bp-xl) {
font-size: 14px !important;
}
} }




flex: none; flex: none;
order: 0; order: 0;
flex-grow: 0; flex-grow: 0;
@include media-below($bp-xl) {
font-size: 14px !important;
}
} }


.active-process { .active-process {
border-radius: 18px; border-radius: 18px;
gap: 18px; gap: 18px;
margin-right: 36px; margin-right: 36px;

@include media-below($bp-xl) { @include media-below($bp-xl) {
margin-right: 20px !important; margin-right: 20px !important;
padding: 36px !important; padding: 36px !important;
background: #ffffff; background: #ffffff;
gap: 18px; gap: 18px;
margin-right: 36px; margin-right: 36px;

@include media-below($bp-xl) { @include media-below($bp-xl) {
margin-right: 20px !important; margin-right: 20px !important;
padding: 36px !important; padding: 36px !important;
flex-grow: 0; flex-grow: 0;
} }


// .active-process-card-number{
// flex: 3 0 auto;
// }

.active-process-card-logo { .active-process-card-logo {
margin-left: auto; margin-left: auto;
flex: none; flex: none;

+ 0
- 3
src/components/Selection/ApplicantSelection.js 查看文件

</div>} </div>}
</div> </div>





<div className="active-process-card-body"> <div className="active-process-card-body">
<div className="active-process-card-date"> <div className="active-process-card-date">
<p> <p>

+ 9
- 7
src/components/Selection/Selection.js 查看文件

import React from "react"; import React from "react";
import PropTypes from "prop-types"; import PropTypes from "prop-types";
import { selectDoneProcessError } from "../../store/selectors/processSelectors"; import { selectDoneProcessError } from "../../store/selectors/processSelectors";
import { selectAuthUser} from "../../store/selectors/userSelectors"
import { selectAuthUser } from "../../store/selectors/userSelectors"
import { setDoneProcessReq } from "../../store/actions/processes/processAction"; import { setDoneProcessReq } from "../../store/actions/processes/processAction";
import { useDispatch, useSelector } from "react-redux"; import { useDispatch, useSelector } from "react-redux";
import { formatDateSrb, formatTimeSrb } from "../../util/helpers/dateHelpers"; import { formatDateSrb, formatTimeSrb } from "../../util/helpers/dateHelpers";
var data = e.dataTransfer.getData("text/plain"); var data = e.dataTransfer.getData("text/plain");
const selectionProcess = JSON.parse(data); const selectionProcess = JSON.parse(data);
if (selectionProcess.selectionLevelId !== selId) { if (selectionProcess.selectionLevelId !== selId) {
dispatch(setDoneProcessReq({
dispatch(setDoneProcessReq({
id: selectionProcess.id, id: selectionProcess.id,
name: "radnom name", name: "radnom name",
applicantId: selectionProcess.applicant.applicantId, applicantId: selectionProcess.applicant.applicantId,
<div className="status"> <div className="status">
<button>{item.status}</button> <button>{item.status}</button>
</div> </div>
<div className="date">
{item.date !== null && item.date !== "" && <p>{formatDateSrb(item.date)} <span className="grey">|</span> {formatTimeSrb(item.date)}</p>}
</div>
<div className="full-name">
<p>{item.applicant.firstName + " " + item.applicant.lastName}</p>
<div className="date-name">
<div className="date">
{item.date !== null && item.date !== "" && <p>{formatDateSrb(item.date)} <span className="grey">|</span> {formatTimeSrb(item.date)}</p>}
</div>
<div className="full-name">
<p>{item.applicant.firstName + " " + item.applicant.lastName}</p>
</div>
</div> </div>
</div> </div>
} }

+ 1
- 0
src/i18n/resources/rs.js 查看文件

}, },
selection: { selection: {
title: "Tok Selekcije", title: "Tok Selekcije",
subtitle: "Svi kandidati",
tipHeader: "Savet za uspešan Screening test", tipHeader: "Savet za uspešan Screening test",
tipBody: "Zapamtite da odeljenje za ljudske resurse u sebi sadrži reč „ljudski“. HR treba da vas vidi kakvi ste i da bi stekli osećaj za vašu stvarnu ličnost i postarali se da se dobro uklopite u kompaniju. Zato je bolje da se ponašate prirodno i opušteno. Važno je i pokazati da posedujete snažne međuljudske veštine i da se ponašate profesionalno. Na dan intervjua budite tačni, predstavite se pristojno i obucite se na odgovarajući način. To znači da razmislite o slici kompanije, ali i da se odevate na način koji vam je ugodan tokom dana." tipBody: "Zapamtite da odeljenje za ljudske resurse u sebi sadrži reč „ljudski“. HR treba da vas vidi kakvi ste i da bi stekli osećaj za vašu stvarnu ličnost i postarali se da se dobro uklopite u kompaniju. Zato je bolje da se ponašate prirodno i opušteno. Važno je i pokazati da posedujete snažne međuljudske veštine i da se ponašate profesionalno. Na dan intervjua budite tačni, predstavite se pristojno i obucite se na odgovarajući način. To znači da razmislite o slici kompanije, ali i da se odevate na način koji vam je ugodan tokom dana."
}, },

+ 1
- 1
src/pages/SelectionProcessPage/SelectionProcessPage.js 查看文件

| |
</span> </span>
<span className="level-header-subheader"> <span className="level-header-subheader">
Svi kandidati
{t("selection.subtitle")}
</span> </span>
</h1> </h1>
<IconButton <IconButton

Loading…
取消
儲存