jumbotron

master
Boris Voropaev 2023-11-02 16:17:57 +03:00
parent af13653ff1
commit d22d5d6557
3 changed files with 74 additions and 5 deletions

View File

@ -157,3 +157,73 @@ footer{
margin-top: 48px;
}
}
.user {
position: relative;
display: flex;
padding: 11px;
height: 64px;
justify-content: center;
background-color: #fff;
border-radius: 32px;
border: 1px solid var(--second-dis);
.avatar {
width: 38px;
height: 38px;
color: var(--prime);
border: 1px solid var(--prime);
background: #fff;
border-radius: 100%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
overflow: hidden;
.initials {
}
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
}
.name{
margin: 8px 4px 0 12px;
color: var(--second-act);
white-space: nowrap;
}
drop-down {
margin-top: 6px;
}
}
@media screen and (max-width: 1330px) {
.user {
.avatar {
background-color: var(--white);
margin-right: 18px;
}
.name{
display: none;
}
}
}

View File

@ -118,8 +118,8 @@ body {
.left-content{
width: 100%;
height: 100%;
max-width: 1280px;
margin: 0 40px;
max-width: 1360px;
padding: 0 40px;
position: relative;
display: flex;
flex-direction: row;
@ -136,7 +136,7 @@ body {
}
header-user-bar{
position: absolute;
right: 0;
right: 40px;
top: 32px;
}
.menu{

View File

@ -57,7 +57,6 @@ export class AuthenticationService {
if (!params) params = {include: 'avatar,privileges'};
console.log('URL',environment.apiUrl)
this.http.get(`${environment.apiUrl}/api/me`, {params: params}).subscribe((res: any) => {
console.log('USER',res.data)
this.user.next(res?.data);
});
}