finished auth page

This commit is contained in:
Hope87 2021-06-14 15:56:10 +03:00
parent 2002bcc3d5
commit 732cb7a2bc
10 changed files with 406 additions and 221 deletions

View File

@ -2,20 +2,25 @@ import React from 'react';
import style from './Auth.module.css';
import ellipse from '../../images/ellipse.png';
import arrow from '../../images/arrow__login_page.png';
import male from '../../images/medium_male_big.png';
import authImg from '../../images/auth_img.png';
import cross from '../../images/cross.png';
import specialists from '../../images/specialists.png';
import text from '../../images/Body_Text.png';
import align from '../../images/align-left.png';
import phone from '../../images/phone.png';
import telegram from '../../images/telegram.png';
import vector from '../../images/Vector_Smart_Object.png';
import vectorBlack from '../../images/Vector_Smart_Object_black.png';
const Auth = ({ setAuthed }) => {
return (
<section className={style.auth}>
<div className={style.auth__background}>
<img className={style.vector} src={vector} alt="" />
<img className={style.vectorBlack} src={vectorBlack} alt="" />
<div className="container">
<div className="row">
<div className="col-xl-6">
<div className="col-12 col-xl-6">
<div className={style.auth__box}>
<h2 className={style.auth__title}>
Войти в <span>систему</span>
@ -40,12 +45,13 @@ const Auth = ({ setAuthed }) => {
<div className="col-xl-2">
<img className={style.auth__arrow} src={arrow} alt="" />
</div>
<div className="col-xl-4">
<div className="col-12 col-xl-4">
<div className={style.auth__info}>
<div className={style.auth__info__box}>
<img src={male} alt="" />
<img src={authImg} alt="" />
<h3>
Frontend разработчик, <br /> Middle
Управление
<br /> командой
</h3>
</div>
@ -60,11 +66,11 @@ const Auth = ({ setAuthed }) => {
</div>
<ul className={style.info__list}>
<li className={style.info__list__item}>Ruby on Rails</li>
<li className={style.info__list__item}>Php</li>
<li className={style.info__list__item}>Python</li>
<li className={style.info__list__item}>Рабочее пространство</li>
<li className={style.info__list__item}>Управления задачами</li>
{/* <li className={style.info__list__item}>Python</li>
<li className={style.info__list__item}>Vue.js</li>
<li className={style.info__list__item}>React. JS</li>
<li className={style.info__list__item}>React. JS</li> */}
</ul>
</div>
@ -74,28 +80,28 @@ const Auth = ({ setAuthed }) => {
</div>
<div className="row">
<div className="col-xl-7">
<div className="col-12 col-xl-7">
<div className={style.auth__footer__left}>
<div className={style.footer__left__img}>
<img src={align} alt="" />
</div>
<div className={style.footer__left__sp}>
<span>
© Адвего биржа контента 1. Копирайтинг, рерайтинг, переводы, работа на дому: поставщик уникального
контента. 2021{' '}
© Адвего биржа контента 1. Копирайтинг, рерайтинг, переводы, работа на дому: поставщик
уникального контента. 2021{' '}
</span>
</div>
</div>
</div>
<div className="col-xl-2">
<div className="col-4 col-xl-2">
<div className={style.auth__footer__icon}>
<img src={phone} alt="" />
<img src={telegram} alt="" />
</div>
</div>
<div className="col-xl-3">
<div className="col-8 col-xl-3">
<div className={style.auth__footer__right}>
<p className={style.phone}>+7 495 156 78 98</p>
<p className={style.workingHours}>Будни с 9:00 до 21:00</p>
@ -103,6 +109,7 @@ const Auth = ({ setAuthed }) => {
</div>
</div>
</div>
</div>
</section>
);
};

View File

@ -1,8 +1,53 @@
/* .auth {
background-color: #f1f1f1;
background: url(../../images/Vector_Smart_Object.png)-302px -720px no-repeat,
url(../../images/Vector_Smart_Object_black.png) 1760px 480px no-repeat;
} */
.auth {
background-color: #f1f1f1;
position: relative;
overflow: hidden;
}
.auth__background {
background-color: #f1f1f1;
position: relative;
}
.vector,
.vectorBlack {
position: absolute;
}
.vector {
top: -720px;
left: -320px;
}
.vectorBlack {
top: 460px;
right: -224px;
}
@media (max-width: 575.98px) {
.vector,
.vectorBlack {
display: none;
}
}
.auth__box {
display: flex;
flex-direction: column;
align-self: center;
margin-bottom: 154px;
margin-bottom: 194px;
}
@media (max-width: 575.98px) {
.auth__box {
margin-bottom: 44px;
}
}
.auth__title {
@ -13,7 +58,14 @@
letter-spacing: normal;
line-height: 77.81px;
text-align: left;
margin-top: 254px;
margin-top: 164px;
}
@media (max-width: 575.98px) {
.auth__title {
text-align: center;
margin-top: 44px;
}
}
.auth__title > span {
@ -69,7 +121,7 @@
}
.auth__form > input {
width: 366px;
max-width: 366px;
height: 75px;
box-shadow: 0 0 59px rgba(44, 44, 44, 0.05);
border-radius: 37px;
@ -111,31 +163,69 @@
text-align: center;
}
@media (max-width: 575.98px) {
.form__btn {
margin: 0 auto;
}
}
.auth__arrow {
margin-top: 360px;
}
@media (max-width: 575.98px) {
.auth__arrow {
display: none;
}
}
.auth__info {
background-color: #e1fccf;
margin-top: 140px;
width: 310px;
margin-top: 70px;
max-width: 310px;
padding-top: 30px;
position: relative;
padding-bottom: 160px;
}
@media (max-width: 575.98px) {
.auth__info {
max-width: 380px;
}
}
@media (max-width: 375.98px) {
.auth__info {
max-width: 340px;
}
}
.auth__info__box {
display: flex;
align-items: center;
}
@media (max-width: 575.98px) {
.auth__info__box {
flex-direction: column;
justify-content: center;
}
}
.auth__info__box > img {
width: 165px;
height: 165px;
width: 150px;
height: 150px;
margin-left: -84px;
margin-right: 30px;
}
@media (max-width: 575.98px) {
.auth__info__box > img {
margin-left: 0px;
margin-right: 0px;
}
}
.auth__info__box > h3 {
font-family: 'GT Eesti Pro Display';
font-size: 2em;
@ -144,8 +234,12 @@
letter-spacing: normal;
line-height: 36px;
text-align: left;
position: absolute;
right: -14px;
}
@media (max-width: 575.98px) {
.auth__info__box > h3 {
margin-top: 20px;
}
}
.auth__info__container {
@ -160,6 +254,12 @@
margin-top: 28px;
}
@media (max-width: 575.98px) {
.auth__info__img {
margin-left: 8px;
}
}
.auth__info__img > div > img {
margin-bottom: 40px;
}
@ -172,7 +272,14 @@
list-style: none;
margin-top: 110px;
position: absolute;
right: -116px;
/* right: -116px; */
left: 114px;
}
@media (max-width: 575.98px) {
.info__list {
left: 34px;
}
}
.info__list__item {
@ -186,6 +293,14 @@
text-align: left;
text-decoration: underline;
text-transform: uppercase;
margin-bottom: 34px;
}
@media (max-width: 575.98px) {
.info__list__item {
font-size: 2.6em;
margin-bottom: 14px;
}
}
.img__text {
@ -194,16 +309,35 @@
bottom: -84px;
}
@media (max-width: 575.98px) {
.img__text {
right: -10px;
}
}
.auth__footer__left {
display: flex;
align-items: center;
margin-bottom: 60px;
}
@media (max-width: 575.98px) {
.auth__footer__left {
margin-top: 120px;
}
}
.footer__left__sp {
padding: 0 100px 0 34px;
}
@media (max-width: 575.98px) {
.footer__left__sp {
padding: 0;
margin-left: 10px;
}
}
.auth__footer__left > div > span {
color: #18586e;
font-family: 'GT Eesti Pro Display';
@ -215,6 +349,12 @@
text-align: left;
}
@media (max-width: 575.98px) {
.auth__footer__left > div > span {
font-size: 1.2em;
}
}
.auth__footer__icon {
text-align: end;
}
@ -223,12 +363,23 @@
margin-left: 20px;
}
@media (max-width: 575.98px) {
.auth__footer__icon > img {
margin-left: 10px;
}
}
.auth__footer__right {
display: flex;
flex-direction: column;
align-items: left;
}
@media (max-width: 575.98px) {
.auth__footer__right {
margin-bottom: 20px;
}
}
.phone {
color: #003b65;
font-family: 'CeraPro';

View File

@ -16,18 +16,13 @@ const Candidate = () => {
const history = useHistory();
const { id: candidateId } = useParams();
console.log('candidateId', candidateId);
const currentCandidate = candidatesList.find((el) => el.id === Number(candidateId));
const { name, img, header } = currentCandidate;
console.log(currentCandidate);
let classes;
console.log(classes);
if (name === 'Backend') {
classes = style.back;
console.log(classes);
@ -95,10 +90,6 @@ const Candidate = () => {
</div>
</div>
</div>
{/* <h1>
Candidate name: <span>{currentCandidate.name}</span>
</h1> */}
</section>
);
};

View File

@ -154,7 +154,7 @@
@media (max-width: 375.98px) {
.candidate__main__description > h2 {
font-size: 2.8em;
font-size: 3em;
}
}

View File

@ -1,5 +1,4 @@
.SectionOne > h3 {
.SectionOne > h3 {
font-family: 'GT Eesti Pro Display';
font-size: 2.2em;
font-weight: 400;
@ -7,9 +6,9 @@
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
}
.SectionOne > p {
.SectionOne > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 100;
@ -17,10 +16,9 @@
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
}
.SectionOne > h4 {
.SectionOne > h4 {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 700;
@ -28,9 +26,9 @@
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
}
.SectionTwo > p {
.SectionTwo > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
@ -38,9 +36,9 @@
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
}
.SectionThree > h3 {
.SectionThree > h3 {
font-family: 'GT Eesti Pro Display';
font-size: 2.2em;
font-weight: 400;
@ -48,9 +46,9 @@
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
}
.SectionThree > p {
.SectionThree > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 100;
@ -58,9 +56,9 @@
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
}
.SectionThree > h4 {
.SectionThree > h4 {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 700;
@ -68,9 +66,9 @@
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
}
.SectionFour > p {
.SectionFour > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
@ -78,9 +76,9 @@
letter-spacing: normal;
line-height: 18px;
text-align: left;
}
}
.SectionFive > p {
.SectionFive > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
@ -88,18 +86,57 @@
letter-spacing: normal;
line-height: 16px;
text-align: left;
}
}
.SectionSkills {
@media (min-width: 576.98px) {
.SectionFive__btn {
display: none;
}
}
@media (max-width: 575.98px) {
.SectionFive__btn {
display: block;
width: 221px;
height: 49px;
box-shadow: 0 8px 20px rgba(82, 151, 34, 0.21);
border-radius: 24px;
background-color: #ffffff;
background-image: linear-gradient(to top, #6aaf5c 0%, #52b709 100%),
linear-gradient(
36deg,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.16) 47%,
rgba(255, 255, 255, 0.17) 50%,
rgba(255, 255, 255, 0) 100%
);
color: #ffffff;
font-family: 'Muller';
font-size: 1.3em;
letter-spacing: normal;
line-height: 56.7px;
text-align: left;
border: none;
text-align: center;
margin: 28px auto;
}
}
.SectionSkills {
border: 1px solid #69bf2c;
padding: 28px 40px 16px 30px;
margin-top: 60px;
border-radius: 10px;
margin-bottom: 60px;
}
@media (max-width: 575.98px) {
.SectionSkills {
display: none;
}
}
.SectionSkills > h3 {
.SectionSkills > h3 {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 700;
@ -107,9 +144,9 @@
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
}
.SectionSkills > p {
.SectionSkills > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 100;
@ -117,4 +154,4 @@
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
}

View File

@ -3,6 +3,7 @@ import style from './Section.module.css';
const SectionFive = () => {
return (
<>
<div className={style.SectionFive}>
<p>Регистрации/авторизации;</p>
<p>Управления правами менеджеров отеля, назначение поставщиков</p>
@ -12,6 +13,10 @@ const SectionFive = () => {
<p>Управления новостями отеля;</p>
<p>Просмотра расширенной статистики по заявкам и людям;</p>
</div>
<button type="submit" className={style.SectionFive__btn}>
Выбрать к собеседованию
</button>
</>
);
};

View File

@ -59,7 +59,6 @@ const Home = () => {
const [candidates, setCandidates] = useState([]);
const [selectedTab, setSelectedTab] = useState('');
// const [active, setActive] = useState(false);
useEffect(() => {
setTabs(tabsList);
@ -68,11 +67,6 @@ const Home = () => {
const handleBlockClick = (name) => {
setSelectedTab(name);
// const screenWidth = window.screen.width;
// if (screenWidth < 576) {
// setActive(true);
// }
};
return (

View File

@ -33,7 +33,7 @@
line-height: normal;
}
.outstaffing__box {
margin-top: 120px;
margin-top: 60px;
display: flex;
flex-direction: column;
align-items: center;

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
src/images/auth_img.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB