diff --git a/src/app/_modules/auth/auth-modal/auth-modal.component.html b/src/app/_modules/auth/auth-modal/auth-modal.component.html index 1507c29..869fe57 100644 --- a/src/app/_modules/auth/auth-modal/auth-modal.component.html +++ b/src/app/_modules/auth/auth-modal/auth-modal.component.html @@ -1,12 +1,11 @@ - -
+ +

Вход в систему

Регистрация

Восстановление пароля

Сброс пароля

-
- +
@@ -17,5 +16,5 @@
- + diff --git a/src/app/_modules/auth/forms/login/auth-form-login.component.html b/src/app/_modules/auth/forms/login/auth-form-login.component.html index b547a78..5984341 100644 --- a/src/app/_modules/auth/forms/login/auth-form-login.component.html +++ b/src/app/_modules/auth/forms/login/auth-form-login.component.html @@ -15,10 +15,10 @@
- + +
diff --git a/src/app/_modules/auth/forms/signup/auth-form-signup.component.html b/src/app/_modules/auth/forms/signup/auth-form-signup.component.html index 987bb58..ace9023 100644 --- a/src/app/_modules/auth/forms/signup/auth-form-signup.component.html +++ b/src/app/_modules/auth/forms/signup/auth-form-signup.component.html @@ -42,7 +42,7 @@
{{error}}
- +
diff --git a/src/app/_modules/auth/forms/signup/auth-form-signup.component.ts b/src/app/_modules/auth/forms/signup/auth-form-signup.component.ts index e75f668..7693c32 100644 --- a/src/app/_modules/auth/forms/signup/auth-form-signup.component.ts +++ b/src/app/_modules/auth/forms/signup/auth-form-signup.component.ts @@ -79,4 +79,11 @@ export class AuthFormSignupComponent implements OnInit { let trans = {'The given data was invalid.': 'Проверьте правильность заполнения формы'}; this.error = trans[error.message] || error.message; } + + login(){ + this.router.navigate( + [ {outlets: {auth: 'login'}}], + {skipLocationChange: true} + ).then(); + } } diff --git a/src/app/_modules/widjet/cms-modal/cms-modal.component.html b/src/app/_modules/widjet/cms-modal/cms-modal.component.html new file mode 100644 index 0000000..3338f00 --- /dev/null +++ b/src/app/_modules/widjet/cms-modal/cms-modal.component.html @@ -0,0 +1,15 @@ +
+ +
+
+
+ + +
+
+ +
+ +
\ No newline at end of file diff --git a/src/app/_modules/widjet/cms-modal/cms-modal.component.scss b/src/app/_modules/widjet/cms-modal/cms-modal.component.scss new file mode 100644 index 0000000..f7be9c3 --- /dev/null +++ b/src/app/_modules/widjet/cms-modal/cms-modal.component.scss @@ -0,0 +1,114 @@ +:host{ + position: fixed; + width: 100vw; + height: 100vh; + left: 0; + top: 0; + display: flex; + align-items: center; + justify-content: center; + z-index: 10000; + + font-family: PT Sans; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 24px; + + .cms-modal-overlay{ + position: fixed; + width: 100vw; + height: 100vh; + left: 0; + top: 0; + background-color: rgba(62, 61, 64, 0.7); + z-index: 1000; + } + .cms-modal-bar{ + position: fixed; + max-height: 100vh; + width: 448px; + background-color: var(--white); + border: 1px solid var(--second-dis); + display: flex; + flex-direction: column; + border-radius: 4px; + padding: 24px 24px 0; + z-index: 1000; + overflow: hidden; + gap: 24px; + .cms-modal-header{ + display: flex; + justify-content: space-between; + align-items: center; + h4{ + font-family: PT Sans; + font-size: 20px; + font-style: normal; + font-weight: 700; + line-height: 28px; + margin: 0; + } + ico{ + cursor: pointer; + } + } + .cms-modal-body{ + overflow-y: auto; + } + .cms-modal-footer{ + display: flex; + justify-content: flex-end; + gap: 20px; + } + } + ::ng-deep{ + button{ + border-radius: 4px; + padding: 8px 20px; + font-family: PT Sans; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 24px; + letter-spacing: 0.56px; + text-transform: uppercase; + border: 1px solid; + &.prime{ + background-color: var(--prime); + color: var(--white); + border-color: var(--prime); + &:hover{ + background-color: var(--prime-act); + border-color: var(--prime-act); + } + } + &.outline{ + background-color: var(--white); + color: var(--prime); + &:hover{ + background-color: var(--white); + color: var(--prime-act); + border-color: var(--prime-act); + } + } + } + input{ + width: 100%; + height: 40px; + padding: 8px 16px; + border-radius: 4px; + border: solid 1px var(--second-dis); + font-family: PT Sans; + font-size: 16px; + font-style: normal; + font-weight: 400; + line-height: 24px; + } + input:autofill{ + background-color: var(--prime-dis); + border-color: var(--prime); + background-image: none !important; + } + } +} \ No newline at end of file diff --git a/src/app/_modules/widjet/cms-modal/cms-modal.component.ts b/src/app/_modules/widjet/cms-modal/cms-modal.component.ts new file mode 100644 index 0000000..8bb76b8 --- /dev/null +++ b/src/app/_modules/widjet/cms-modal/cms-modal.component.ts @@ -0,0 +1,24 @@ +import { Component, Output, EventEmitter } from '@angular/core'; +import {WindowScrollingService} from "@app/_services/window-scrolling.service"; + +@Component({ + selector: 'cms-modal', + templateUrl: './cms-modal.component.html', + styleUrls: ['./cms-modal.component.scss'] +}) +export class CmsModalComponent { + @Output() close = new EventEmitter(); + + constructor( private windowScrollingService: WindowScrollingService ){} + + ngOnInit(){ + this.windowScrollingService.disable(); + } + ngOnDestroy(){ + this.windowScrollingService.enable(); + } + + cls(){ + this.close.emit('close') + } +} diff --git a/src/app/_modules/widjet/widjet.module.ts b/src/app/_modules/widjet/widjet.module.ts index 6af64bc..6ac36ec 100644 --- a/src/app/_modules/widjet/widjet.module.ts +++ b/src/app/_modules/widjet/widjet.module.ts @@ -13,6 +13,7 @@ import { ModalComponent } from './modal/modal.component'; import {SwiperModule} from "swiper/angular"; import { SwiperGalleryComponent } from './swiper-gallery/swiper-gallery.component'; import {FullscreenGalleryComponent} from "@app/_modules/widjet/swiper-gallery/fullscreen/fullscreen-gallery.component"; +import { CmsModalComponent } from './cms-modal/cms-modal.component'; @NgModule({ @@ -32,7 +33,8 @@ import {FullscreenGalleryComponent} from "@app/_modules/widjet/swiper-gallery/fu FileIcoComponent, ModalComponent, SwiperGalleryComponent, - FullscreenGalleryComponent + FullscreenGalleryComponent, + CmsModalComponent ], exports: [ IcoComponent, @@ -44,7 +46,8 @@ import {FullscreenGalleryComponent} from "@app/_modules/widjet/swiper-gallery/fu FileIcoComponent, ModalComponent, SwiperGalleryComponent, - FullscreenGalleryComponent + FullscreenGalleryComponent, + CmsModalComponent ] }) export class WidjetModule { diff --git a/src/vniigaz-v2/css/_forms.scss b/src/vniigaz-v2/css/_forms.scss index 09d081c..bf2c714 100644 --- a/src/vniigaz-v2/css/_forms.scss +++ b/src/vniigaz-v2/css/_forms.scss @@ -457,6 +457,8 @@ auth-page{ } auth-page, auth-modal{ + + h2 { margin: 0 0 24px; font-size: 24px; @@ -507,7 +509,7 @@ auth-page, auth-modal{ flex-direction: row; align-items: center; width: 100%; - flex-wrap: wrap; + justify-content: space-between; row-gap: 18px; .remember { display: flex; @@ -525,7 +527,6 @@ auth-page, auth-modal{ cursor: pointer; display: flex; justify-content: space-between; - flex-basis: 100%; } }