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,103 +2,110 @@ import React from 'react';
import style from './Auth.module.css'; import style from './Auth.module.css';
import ellipse from '../../images/ellipse.png'; import ellipse from '../../images/ellipse.png';
import arrow from '../../images/arrow__login_page.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 cross from '../../images/cross.png';
import specialists from '../../images/specialists.png'; import specialists from '../../images/specialists.png';
import text from '../../images/Body_Text.png'; import text from '../../images/Body_Text.png';
import align from '../../images/align-left.png'; import align from '../../images/align-left.png';
import phone from '../../images/phone.png'; import phone from '../../images/phone.png';
import telegram from '../../images/telegram.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 }) => { const Auth = ({ setAuthed }) => {
return ( return (
<section className={style.auth}> <section className={style.auth}>
<div className="container"> <div className={style.auth__background}>
<div className="row"> <img className={style.vector} src={vector} alt="" />
<div className="col-xl-6"> <img className={style.vectorBlack} src={vectorBlack} alt="" />
<div className={style.auth__box}> <div className="container">
<h2 className={style.auth__title}> <div className="row">
Войти в <span>систему</span> <div className="col-12 col-xl-6">
</h2> <div className={style.auth__box}>
<div className={style.auth__partners}> <h2 className={style.auth__title}>
<img src={ellipse} alt="" /> Войти в <span>систему</span>
<span>Для партнеров</span> </h2>
<div className={style.auth__partners}>
<img src={ellipse} alt="" />
<span>Для партнеров</span>
</div>
<form className={style.auth__form}>
<label htmlFor="login">Ваш логин:</label>
<input id="login" type="text" placeholder="Логин" />
<label htmlFor="password">Пароль:</label>
<input id="password" type="password" placeholder="Пароль" />
<button className={style.form__btn} type="submit" onClick={() => setAuthed(true)}>
Войти
</button>
</form>
</div> </div>
<form className={style.auth__form}>
<label htmlFor="login">Ваш логин:</label>
<input id="login" type="text" placeholder="Логин" />
<label htmlFor="password">Пароль:</label>
<input id="password" type="password" placeholder="Пароль" />
<button className={style.form__btn} type="submit" onClick={() => setAuthed(true)}>
Войти
</button>
</form>
</div> </div>
</div> <div className="col-xl-2">
<div className="col-xl-2"> <img className={style.auth__arrow} src={arrow} alt="" />
<img className={style.auth__arrow} src={arrow} alt="" /> </div>
</div> <div className="col-12 col-xl-4">
<div className="col-xl-4"> <div className={style.auth__info}>
<div className={style.auth__info}> <div className={style.auth__info__box}>
<div className={style.auth__info__box}> <img src={authImg} alt="" />
<img src={male} alt="" /> <h3>
<h3> Управление
Frontend разработчик, <br /> Middle <br /> командой
</h3> </h3>
</div>
<div className={style.auth__info__container}>
<div className={style.auth__info__img}>
<div>
<img className="cross" src={cross} alt="" />
</div>
<div>
<img className={style.specialists} src={specialists} alt="" />
</div>
</div> </div>
<ul className={style.info__list}> <div className={style.auth__info__container}>
<li className={style.info__list__item}>Ruby on Rails</li> <div className={style.auth__info__img}>
<li className={style.info__list__item}>Php</li> <div>
<li className={style.info__list__item}>Python</li> <img className="cross" src={cross} alt="" />
<li className={style.info__list__item}>Vue.js</li> </div>
<li className={style.info__list__item}>React. JS</li> <div>
</ul> <img className={style.specialists} src={specialists} alt="" />
</div> </div>
</div>
<img className={style.img__text} src={text} alt="" /> <ul className={style.info__list}>
</div> <li className={style.info__list__item}>Рабочее пространство</li>
</div> <li className={style.info__list__item}>Управления задачами</li>
</div> {/* <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> */}
</ul>
</div>
<div className="row"> <img className={style.img__text} src={text} alt="" />
<div className="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{' '}
</span>
</div> </div>
</div> </div>
</div> </div>
<div className="col-xl-2"> <div className="row">
<div className={style.auth__footer__icon}> <div className="col-12 col-xl-7">
<img src={phone} alt="" /> <div className={style.auth__footer__left}>
<img src={telegram} alt="" /> <div className={style.footer__left__img}>
<img src={align} alt="" />
</div>
<div className={style.footer__left__sp}>
<span>
© Адвего биржа контента 1. Копирайтинг, рерайтинг, переводы, работа на дому: поставщик
уникального контента. 2021{' '}
</span>
</div>
</div>
</div> </div>
</div>
<div className="col-xl-3"> <div className="col-4 col-xl-2">
<div className={style.auth__footer__right}> <div className={style.auth__footer__icon}>
<p className={style.phone}>+7 495 156 78 98</p> <img src={phone} alt="" />
<p className={style.workingHours}>Будни с 9:00 до 21:00</p> <img src={telegram} alt="" />
</div>
</div>
<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>
</div>
</div> </div>
</div> </div>
</div> </div>

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

View File

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

View File

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

View File

@ -1,120 +1,157 @@
.SectionOne > h3 {
font-family: 'GT Eesti Pro Display';
font-size: 2.2em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
.SectionOne > h3 { .SectionOne > p {
font-family: 'GT Eesti Pro Display'; font-family: 'GT Eesti Pro Display';
font-size: 2.2em; font-size: 1.8em;
font-weight: 400; font-weight: 100;
font-style: normal; font-style: normal;
letter-spacing: normal; letter-spacing: normal;
line-height: 36px; line-height: 28px;
text-align: left; text-align: left;
}
.SectionOne > h4 {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 700;
font-style: normal;
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
.SectionTwo > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
.SectionThree > h3 {
font-family: 'GT Eesti Pro Display';
font-size: 2.2em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
.SectionThree > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 100;
font-style: normal;
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
.SectionThree > h4 {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 700;
font-style: normal;
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
.SectionFour > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 18px;
text-align: left;
}
.SectionFive > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 16px;
text-align: left;
}
@media (min-width: 576.98px) {
.SectionFive__btn {
display: none;
} }
}
.SectionOne > p { @media (max-width: 575.98px) {
font-family: 'GT Eesti Pro Display'; .SectionFive__btn {
font-size: 1.8em; display: block;
font-weight: 100; width: 221px;
font-style: normal; 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; letter-spacing: normal;
line-height: 28px; line-height: 56.7px;
text-align: left; text-align: left;
border: none;
text-align: center;
margin: 28px auto;
} }
}
.SectionOne > h4 { .SectionSkills {
font-family: 'GT Eesti Pro Display'; border: 1px solid #69bf2c;
font-size: 1.8em; padding: 28px 40px 16px 30px;
font-weight: 700; margin-top: 60px;
font-style: normal; border-radius: 10px;
letter-spacing: normal; margin-bottom: 60px;
line-height: 36px; }
text-align: left;
}
.SectionTwo > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
.SectionThree > h3 {
font-family: 'GT Eesti Pro Display';
font-size: 2.2em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
.SectionThree > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 100;
font-style: normal;
letter-spacing: normal;
line-height: 28px;
text-align: left;
}
.SectionThree > h4 {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 700;
font-style: normal;
letter-spacing: normal;
line-height: 36px;
text-align: left;
}
.SectionFour > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 18px;
text-align: left;
}
.SectionFive > p {
font-family: 'GT Eesti Pro Display';
font-size: 1.8em;
font-weight: 400;
font-style: normal;
letter-spacing: normal;
line-height: 16px;
text-align: left;
}
@media (max-width: 575.98px) {
.SectionSkills { .SectionSkills {
border: 1px solid #69bf2c; display: none;
padding: 28px 40px 16px 30px;
margin-top: 60px;
border-radius: 10px;
margin-bottom: 60px;
} }
}
.SectionSkills > h3 { .SectionSkills > h3 {
font-family: 'GT Eesti Pro Display'; font-family: 'GT Eesti Pro Display';
font-size: 1.8em; font-size: 1.8em;
font-weight: 700; font-weight: 700;
font-style: normal; font-style: normal;
letter-spacing: normal; letter-spacing: normal;
line-height: 28px; line-height: 28px;
text-align: left; text-align: left;
} }
.SectionSkills > p { .SectionSkills > p {
font-family: 'GT Eesti Pro Display'; font-family: 'GT Eesti Pro Display';
font-size: 1.8em; font-size: 1.8em;
font-weight: 100; font-weight: 100;
font-style: normal; font-style: normal;
letter-spacing: normal; letter-spacing: normal;
line-height: 28px; line-height: 28px;
text-align: left; text-align: left;
} }

View File

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

View File

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

View File

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