Skip to content

Commit

Permalink
Merge pull request i-barysiuk#37 from i-barysiuk/f39/adaptationloginpage
Browse files Browse the repository at this point in the history
f39/adaptation
  • Loading branch information
i-barysiuk authored Aug 3, 2019
2 parents dc18620 + d9a3aba commit e5fc3e7
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
1 change: 1 addition & 0 deletions app/src/components/loginForm/style.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
display: flex;
flex-direction: column;
align-items: center;

}
.userName {
margin-top: 10px;
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/tips/Tips.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Tips = props => {
var list = props.tips ? props.tips : getRandom(tips, 5);

return (
<div className={style.container}>
<div className={style.container + " " + props.className}>
<Carousel autoplay>
{list.map((item, i) => {
return (
Expand Down
8 changes: 5 additions & 3 deletions app/src/views/login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@ const Login = props => {
<img src={logo} className={style.logo} alt="logo" />
<p>Система заботы о студентах</p>
<h2 className={style.header}>Рады видеть Вас снова!</h2>
<p>
<div className={style.textbar}>
Что бы начать использовать данный продукт вы должны быть
авторизованы в системе. Пожалуйста введите ваш логин и пароль в
форме справа.
</p>
<Tips />
</div>

<Tips className={style.tips} />

<div className={style.buttons}>
<Button
type="primary"
Expand Down
21 changes: 20 additions & 1 deletion app/src/views/login/style.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$bar-width: 40%;
$main-width: 60%;
$logo-width: 200px;
$logo-width-mobile: 130px;

.container {
display: flex;
Expand Down Expand Up @@ -57,12 +58,30 @@ $logo-width: 200px;
@media screen and (max-width: 700px) {
.container {
flex-direction: column;
font-size: 14px;
}
.bar {
width: 100%;
height: 20%;
height: 40%;
}
.main {
width: 100%;
padding: 20px;
}
.textbar,
.tips,
.buttons {
display: none;
}
.logo {
width: $logo-width-mobile;
}
.pageName {
margin: 0;
font-size: 15px;
}
.header {
font-size: 17px;
font-weight: bold;
}
}

0 comments on commit e5fc3e7

Please sign in to comment.