Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lamarts mobile app angular
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arko Dey Bhowmick
Lamarts mobile app angular
Commits
589b8888
Commit
589b8888
authored
Apr 29, 2025
by
achinta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: change logo depend on school selection
parent
890af766
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
17 deletions
+44
-17
src/app/auth/before-login/before-login.component.html
src/app/auth/before-login/before-login.component.html
+8
-7
src/app/auth/before-login/before-login.component.ts
src/app/auth/before-login/before-login.component.ts
+4
-1
src/app/auth/login/login.component.html
src/app/auth/login/login.component.html
+1
-1
src/app/auth/login/login.component.ts
src/app/auth/login/login.component.ts
+8
-2
src/app/auth/service/auth.service.ts
src/app/auth/service/auth.service.ts
+9
-0
src/app/component-library/white-card/white-card.component.html
...pp/component-library/white-card/white-card.component.html
+1
-1
src/app/component-library/white-card/white-card.component.ts
src/app/component-library/white-card/white-card.component.ts
+2
-1
src/app/portal/navigation/topbar/topbar.component.html
src/app/portal/navigation/topbar/topbar.component.html
+1
-1
src/app/portal/navigation/topbar/topbar.component.ts
src/app/portal/navigation/topbar/topbar.component.ts
+10
-3
No files found.
src/app/auth/before-login/before-login.component.html
View file @
589b8888
...
...
@@ -4,19 +4,20 @@
<span>
Select Your School
</span>
</div>
<app-white-card
[cardTextHeading]=
"'La Martiniere for
Boy
s, Kolkata'"
[cardTextHeading]=
"'La Martiniere for
Girl
s, Kolkata'"
(emitWhiteCardClick)=
"selectedSchool('girls')"
[cardLink]=
"loginUrl"
[cardImg]=
"'./assets/image/b_logo.png'"
[cardImg]=
"'./assets/image/g_logo.png'"
/>
</div>
<div
class=
"boys_login_container"
>
<app-white-card
[cardTextHeading]=
"'La Martiniere for
Girl
s, Kolkata'"
[cardTextHeading]=
"'La Martiniere for
Boy
s, Kolkata'"
(emitWhiteCardClick)=
"selectedSchool('boys')"
[cardLink]=
"loginUrl"
[cardImg]=
"'./assets/image/g_logo.png'"
[cardImg]=
"'./assets/image/b_logo.png'"
/>
</div>
</div>
\ No newline at end of file
src/app/auth/before-login/before-login.component.ts
View file @
589b8888
...
...
@@ -19,5 +19,8 @@ export class BeforeLoginComponent {
public
loginUrl
=
`/
${
RequestMapperService
.
LOGIN_URL
}
`
;
public
selectedSchool
(
school
:
string
):
void
{
// console.log(school);
localStorage
.
setItem
(
'
logged_school
'
,
school
);
}
}
src/app/auth/login/login.component.html
View file @
589b8888
...
...
@@ -2,7 +2,7 @@
<div
class=
"phone_section"
>
<div
class=
"logo_section"
>
<img
class=
"login_logo"
[ngSrc]=
"
'./assets/image/logo_lamarts.png'
"
[ngSrc]=
"
loggedSchoolLogo
"
alt=
"Logo"
width=
"100"
height=
"100"
...
...
src/app/auth/login/login.component.ts
View file @
589b8888
import
{
CommonModule
,
NgOptimizedImage
,
isPlatformBrowser
}
from
'
@angular/common
'
;
import
{
Component
,
Inject
,
PLATFORM_ID
}
from
'
@angular/core
'
;
import
{
Component
,
Inject
,
OnInit
,
PLATFORM_ID
}
from
'
@angular/core
'
;
import
{
Router
,
RouterModule
}
from
'
@angular/router
'
;
import
{
RoundedButtonFullWidthComponent
}
from
'
../../component-library/rounded-button-full-width/rounded-button-full-width.component
'
;
import
{
AuthTransmissionService
}
from
'
../../raintree/transmission/auth-transmission.service
'
;
...
...
@@ -28,10 +28,12 @@ import { ToasterService } from '../../component-library/toaster/toaster.service'
templateUrl
:
'
./login.component.html
'
,
styleUrl
:
'
./login.component.scss
'
})
export
class
LoginComponent
{
export
class
LoginComponent
implements
OnInit
{
public
errorMessage
:
string
=
''
;
public
loggedSchoolLogo
:
string
=
''
;
constructor
(
private
_toaster
:
ToasterService
,
private
_authService
:
AuthService
,
...
...
@@ -46,6 +48,10 @@ export class LoginComponent {
password
:
new
FormControl
(
''
,
[
Validators
.
required
]),
});
public
ngOnInit
():
void
{
this
.
loggedSchoolLogo
=
this
.
_authService
.
getLoggedSchoolLogo
();
}
public
authenticate
():
void
{
if
(
this
.
loginForm
.
invalid
)
return
;
...
...
src/app/auth/service/auth.service.ts
View file @
589b8888
...
...
@@ -60,4 +60,13 @@ export class AuthService {
return
this
.
localStorageGetItemByKey
(
'
role_name
'
);
}
public
getLoggedSchoolLogo
():
string
{
let
logged_school
=
localStorage
.
getItem
(
'
logged_school
'
);
let
logo
=
''
;
if
(
logged_school
===
'
boys
'
)
logo
=
'
./assets/image/b_logo.png
'
;
if
(
logged_school
===
'
girls
'
)
logo
=
'
./assets/image/g_logo.png
'
;
return
logo
;
}
}
src/app/component-library/white-card/white-card.component.html
View file @
589b8888
<a
[routerLink]=
"cardLink"
>
<a
[routerLink]=
"cardLink"
(click)=
"emitWhiteCardClick.emit(null)"
>
<div
class=
"white_card"
>
<span
class=
"material-symbols-outlined card_icon"
*ngIf=
"cardTextIcon"
>
{{ cardTextIcon }}
...
...
src/app/component-library/white-card/white-card.component.ts
View file @
589b8888
import
{
CommonModule
,
NgOptimizedImage
}
from
'
@angular/common
'
;
import
{
Component
,
In
put
}
from
'
@angular/core
'
;
import
{
Component
,
EventEmitter
,
Input
,
Out
put
}
from
'
@angular/core
'
;
import
{
RouterModule
}
from
'
@angular/router
'
;
@
Component
({
...
...
@@ -19,5 +19,6 @@ export class WhiteCardComponent {
@
Input
()
cardTextIcon
:
string
=
''
;
@
Input
()
cardLink
:
string
=
''
;
@
Input
()
cardImg
:
string
=
''
;
@
Output
()
emitWhiteCardClick
:
EventEmitter
<
null
>
=
new
EventEmitter
<
null
>
();
}
src/app/portal/navigation/topbar/topbar.component.html
View file @
589b8888
...
...
@@ -8,7 +8,7 @@
</button>
<img
[ngSrc]=
"
'./assets/image/logo_lamarts.png'
"
[ngSrc]=
"
loggedSchoolLogo
"
width=
"200"
height=
"100"
alt=
"logo"
...
...
src/app/portal/navigation/topbar/topbar.component.ts
View file @
589b8888
import
{
NgOptimizedImage
,
isPlatformBrowser
}
from
'
@angular/common
'
;
import
{
Component
}
from
'
@angular/core
'
;
import
{
Component
,
OnInit
}
from
'
@angular/core
'
;
import
{
LogoutService
}
from
'
../service/logout.service
'
;
import
{
GetProfileInformationService
}
from
'
../service/get-profile-information.service
'
;
import
{
UserProfile
}
from
'
../../../auth/interface/user-profile
'
;
import
{
InitThemeService
}
from
'
../../../style-guide/service/initialize-theme.service
'
;
import
{
AuthService
}
from
'
../../../auth/service/auth.service
'
;
// import { ThemeModeChangerComponent } from "../../../component-library/theme-mode-changer/theme-mode-changer.component";
@
Component
({
...
...
@@ -15,20 +16,26 @@ import { InitThemeService } from '../../../style-guide/service/initialize-theme.
templateUrl
:
'
./topbar.component.html
'
,
styleUrl
:
'
./topbar.component.scss
'
})
export
class
TopBarComponent
{
export
class
TopBarComponent
implements
OnInit
{
public
userProfileInformation
:
UserProfile
=
{}
as
UserProfile
;
public
loggedSchoolLogo
:
string
=
''
;
public
isBrowser
:
boolean
=
false
;
constructor
(
private
_logoutService
:
LogoutService
,
private
_getProfileInformation
:
GetProfileInformationService
,
private
_themeService
:
InitThemeService
,
private
_authService
:
AuthService
,
)
{
this
.
_fetchProfileDetails
();
}
public
ngOnInit
():
void
{
this
.
loggedSchoolLogo
=
this
.
_authService
.
getLoggedSchoolLogo
();
}
public
toggleSidebar
():
void
{
this
.
_themeService
.
updateSidebarState
(
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment