This commit is contained in:
richard-loafle 2020-01-22 17:21:16 +09:00
commit 16e8d134a3
3 changed files with 123 additions and 30 deletions

View File

@ -1,3 +1,8 @@
$desktop-l-width: 1440px;
$tablet-l-width: 1024px;
$tablet-s-width: 768px;
$mob-l-width: 640px;
.login { .login {
width: 100%; width: 100%;
background-size: cover; background-size: cover;
@ -37,16 +42,16 @@ $ease-in-out: cubic-bezier(0.785, 0.135, 0.15, 0.86);
.slider { .slider {
position: relative; position: relative;
height: 100vh; height: 100%;
width: 100vw; width: 100%;
background: $main; background: $main;
overflow: hidden; overflow: hidden;
&_wrap { &_wrap {
position: absolute; position: absolute;
width: 100vw; width: 100%;
height: 100vh; height: 100%;
transform: translateX(100vw); transform: translateX(100%);
top: 0%; top: 0%;
left: 0; left: 0;
right: auto; right: auto;
@ -135,6 +140,9 @@ $ease-in-out: cubic-bezier(0.785, 0.135, 0.15, 0.86);
&_link { &_link {
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
display: flex;
justify-content: center;
justify-items: center;
font-family: $heebo; font-family: $heebo;
font-size: 1.2rem; font-size: 1.2rem;
letter-spacing: $base * 0.1; letter-spacing: $base * 0.1;
@ -146,7 +154,8 @@ $ease-in-out: cubic-bezier(0.785, 0.135, 0.15, 0.86);
border-radius: 100px; border-radius: 100px;
color: #00dbed; color: #00dbed;
width: $base * 5; width: $base * 5;
// next버튼 숨김
display: none;
&:before { &:before {
content: ''; content: '';
border-top: 1px solid white; border-top: 1px solid white;
@ -170,8 +179,8 @@ $ease-in-out: cubic-bezier(0.785, 0.135, 0.15, 0.86);
&_slide { &_slide {
position: absolute; position: absolute;
left: 0; left: 0;
height: 100vh; height: 100%;
width: 100vw; width: 100%;
transition: transform $time/3 $ease-in-out; transition: transform $time/3 $ease-in-out;
transition-delay: $time/3; transition-delay: $time/3;
pointer-events: none; pointer-events: none;
@ -192,7 +201,7 @@ $ease-in-out: cubic-bezier(0.785, 0.135, 0.15, 0.86);
transition-delay: $time/2 !important; transition-delay: $time/2 !important;
} }
.slider_inner { .slider_inner {
transform: scale(0.6); transform: scale(0.7);
box-shadow: 0 $base/3 $base * 1 rgba(darken($accent, 50%), 0.2); box-shadow: 0 $base/3 $base * 1 rgba(darken($accent, 50%), 0.2);
pointer-events: auto; pointer-events: auto;
opacity: 1; opacity: 1;
@ -255,19 +264,50 @@ $ease-in-out: cubic-bezier(0.785, 0.135, 0.15, 0.86);
::ng-deep .login-form-box { ::ng-deep .login-form-box {
position: absolute; position: absolute;
height: 60vh; width: 30vw;
top: 20%; height: 70%;
right: 20%; top: 15%;
right: 15%;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
z-index: 100; z-index: 100;
@media screen and (max-width: #{$tablet-l-width}), (max-height: 800px) {
width: 34vw;
}
.mat-form-field { .mat-form-field {
&:last-child { &:last-child,
&:first-child {
margin-top: 10px; margin-top: 10px;
} }
.mat-form-field-infix { .mat-form-field-infix {
padding-top: 0;
border: 0;
input { input {
line-height: 1em; line-height: 1em;
@media screen and (max-width: #{$tablet-l-width}), (max-height: 800px) {
font-size: 0.9em;
}
}
.mat-form-field-label-wrapper {
@media screen and (max-width: #{$tablet-l-width}), (max-height: 800px) {
font-size: 0.9em;
top: -1em;
}
}
.mat-form-field-subscript-wrapper {
.mat-error {
@media screen and (max-width: #{$tablet-l-width}), (max-height: 800px) {
font-size: 0.8em;
}
}
}
}
&.mat-focused,
&:not(.mat-form-field-hide-placeholder) {
.mat-form-field-label-wrapper {
@media screen and (max-width: #{$tablet-l-width}), (max-height: 800px) {
font-size: 0;
}
} }
} }
} }

View File

@ -111,10 +111,10 @@ export class LoginPageComponent implements OnInit, OnDestroy {
this.protocolService.disconnect(); this.protocolService.disconnect();
this.store.dispatch(logoutInitialize()); this.store.dispatch(logoutInitialize());
this.rotateInfomationIntervalObject = setInterval(() => { /*this.rotateInfomationIntervalObject = setInterval(() => {
this.rotateInfomationIndex = this.rotateInfomationIndex =
(this.rotateInfomationIndex + 1) % this.rotateInfomation.length; (this.rotateInfomationIndex + 1) % this.rotateInfomation.length;
}, 8000); }, 8000);*/
this.defatulLoginBtnText = this.translateService.instant('accounts.login'); this.defatulLoginBtnText = this.translateService.instant('accounts.login');
this.defatulWaitingTime = 5 * 60; // sec this.defatulWaitingTime = 5 * 60; // sec

View File

@ -1,7 +1,38 @@
$desktop-l-width: 1440px;
$tablet-l-width: 1024px;
$tablet-s-width: 768px;
$mob-l-width: 640px;
$login-max-height: 800px;
// 태블릿
@mixin tab {
@media screen and (max-width: #{$tablet-l-width}), (max-height: #{$login-max-height}) {
@content;
}
}
// 모바일 large
@mixin mob-large {
@media screen and (max-width: #{$mob-l-width}) {
@content;
}
}
@include tab {
.login-form {
width: 34vw;
min-width: 34vw;
font-size: 0.9em;
}
.mat-title {
width: 14vh;
height: 14vh;
margin: 10px 0 10px 0;
}
}
.login-form { .login-form {
position: relative; position: relative;
transform: scale(1); transform: scale(1);
width: 540px; width: 100%;
min-width: 100%; min-width: 100%;
top: 0; top: 0;
right: 0; right: 0;
@ -9,14 +40,6 @@
text-align: center; text-align: center;
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
border-radius: 0px; border-radius: 0px;
@media all and (max-height: 800px), (max-width: 1400px) {
width: 380px;
min-width: 380px;
}
@media all and (max-height: 1000px), (max-width: 1600px) {
width: 420px;
min-width: 420px;
}
.mat-title { .mat-title {
margin: 10px 0 40px 0; margin: 10px 0 40px 0;
@ -28,11 +51,10 @@
display: inline-flex; display: inline-flex;
background-size: 100% auto; background-size: 100% auto;
flex: 1 1 auto; flex: 1 1 auto;
@media all and (max-height: 800px), (max-width: 1400px) { /*@media all and (max-height: 800px), (max-width: 1400px) {
width: 120px; width: 14vh;
min-width: 120px;
margin: 10px 0 10px 0; margin: 10px 0 10px 0;
} }*/
} }
form { form {
@ -54,7 +76,7 @@
} }
.auto-login { .auto-login {
font-size: 13px; font-size: 0.9em;
font-weight: 600; font-weight: 600;
margin-bottom: 2vh; margin-bottom: 2vh;
} }
@ -134,3 +156,34 @@
} }
} }
} }
// 모바일 large
@include mob-large {
}
@include tab {
.login-form {
font-size: 0.9em;
padding: 12%;
.mat-title {
width: 14vh;
height: 14vh;
margin: 10px 0 10px 0;
}
.mat-form-field .mat-form-field-infix input {
font-size: 0.9em;
}
.policy {
position: absolute;
bottom: 0;
display: block;
text-align: center;
opacity: 0.7;
padding: 0;
border-radius: 0;
width: 100%;
margin-left: -12%;
font-size: 0.9em;
padding: 6px;
}
}
}