Commit 890af766 authored by achinta's avatar achinta

fix: logo on login before page

parent 70042f91
<div class="container">
<div class="girls_login_container">
<div class="select_school">
<span>Select Your School</span>
</div>
<app-white-card
[cardTextHeading]="'Boys'"
[cardTextIcon]="'boy'"
[cardTextHeading]="'La Martiniere for Boys, Kolkata'"
[cardLink]="loginUrl"
[cardImg]="'./assets/image/b_logo.png'"
/>
</div>
<div class="boys_login_container">
<app-white-card
[cardTextHeading]="'Girls'"
[cardTextIcon]="'girl'"
[cardTextHeading]="'La Martiniere for Girls, Kolkata'"
[cardLink]="loginUrl"
[cardImg]="'./assets/image/g_logo.png'"
/>
</div>
</div>
\ No newline at end of file
......@@ -4,4 +4,19 @@
justify-content: center;
height: 100%;
gap: 30px;
flex-direction: column;
.girls_login_container,
.boys_login_container{
margin: 10px;
}
.select_school{
text-align: center;
margin-bottom: 10px;
span{
color: rgb(169 169 169);
font-size: 20px;
font-weight: 500;
}
}
}
\ No newline at end of file
......@@ -9,7 +9,8 @@ import { RequestMapperService } from '../../mappers/request-mapper.service';
imports: [
CommonModule,
MatCardModule,
WhiteCardComponent
WhiteCardComponent,
],
templateUrl: './before-login.component.html',
styleUrl: './before-login.component.scss'
......
......@@ -42,8 +42,8 @@ export class LoginComponent {
public hidePassword: boolean = true;
public loginForm = new FormGroup({
email: new FormControl('baswajit@majhi.com', [Validators.required]),
password: new FormControl('P@$$w0rd', [Validators.required]),
email: new FormControl('', [Validators.required]),
password: new FormControl('', [Validators.required]),
});
public authenticate(): void {
......
......@@ -3,6 +3,12 @@
<span class="material-symbols-outlined card_icon" *ngIf="cardTextIcon">
{{ cardTextIcon }}
</span>
<div class="card_img" *ngIf="cardImg">
<img [ngSrc]="cardImg" alt=""
width="100"
height="100"
>
</div>
<p class="card_heading" *ngIf="cardTextHeading">
{{ cardTextHeading }}
......
a {
text-decoration: none;
}
.white_card:hover{
.white_card:hover {
background-color: #d2d2d2;
}
.white_card {
background-color: var(--secondary-bg-color);
padding: 30px;
box-shadow: var(--box-shadow-small);
border-radius: var(--border-radius-mid);
text-align: center;
p{
display: flex;
align-items: center;
text-align: left;
gap: 20px;
// .card_img{
// img{
// height: 80px;
// width: 80px;
// }
// }
p {
margin: 0;
}
.card_icon {
font-size: 40px;
color: var(--primary-color);
......
import { CommonModule } from '@angular/common';
import { CommonModule, NgOptimizedImage } from '@angular/common';
import { Component, Input } from '@angular/core';
import { RouterModule } from '@angular/router';
......@@ -6,7 +6,8 @@ import { RouterModule } from '@angular/router';
selector: 'app-white-card',
imports: [
CommonModule,
RouterModule
RouterModule,
NgOptimizedImage
],
templateUrl: './white-card.component.html',
styleUrl: './white-card.component.scss'
......@@ -17,5 +18,6 @@ export class WhiteCardComponent {
@Input() cardTextParagraph: string = '';
@Input() cardTextIcon: string = '';
@Input() cardLink: string = '';
@Input() cardImg: string = '';
}
......@@ -28,7 +28,7 @@ export class LogoutService {
localStorage.clear();
localStorage.setItem('theme_mode', themeMode ?? '');
this._router.navigate([RequestMapperService.LOGIN_URL]).then(() => {
this._router.navigate([RequestMapperService.BEFORE_LOGIN_URL]).then(() => {
// window.location.reload();
this._toaster.success(message,'Ok');
});
......
......@@ -4,7 +4,7 @@
<mat-form-field class="full_width">
<mat-label>Current Password</mat-label>
<input
type="text"
type="password"
matInput
placeholder="Current Password"
#input
......@@ -19,7 +19,7 @@
<mat-form-field class="full_width">
<mat-label>New Password</mat-label>
<input
type="text"
type="password"
matInput
placeholder="New Password"
#input
......@@ -34,7 +34,7 @@
<mat-form-field class="full_width">
<mat-label>Confirm Password</mat-label>
<input
type="text"
type="password"
matInput
placeholder="Confirm Password"
#input
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment