Improved header styée

This commit is contained in:
grata
2023-05-05 12:11:08 +02:00
parent 9c44077b71
commit a24fce9fab
3 changed files with 23 additions and 12 deletions

View File

@@ -0,0 +1,9 @@
.button-container{
display: flex;
justify-content: space-between;
}
#logout{
justify-self: flex-end;
margin: 5px;
}

View File

@@ -1,4 +1,4 @@
<button (click)="clearAllCookies()">Logout</button> <div class="button-container">
<div class="dropdown dropdown-hover" id="translate"> <div class="dropdown dropdown-hover" id="translate">
<label tabindex="0" class="btn m-1 bg-black border-neutral text-base-100" <label tabindex="0" class="btn m-1 bg-black border-neutral text-base-100"
id="translateLabel">{{homeTranslations.translate}}</label> id="translateLabel">{{homeTranslations.translate}}</label>
@@ -9,4 +9,6 @@
<li (click)="switchLanguage('EN')"><a>EN</a></li> <li (click)="switchLanguage('EN')"><a>EN</a></li>
</ul> </ul>
</div> </div>
<button (click)="clearAllCookies()" class="btn btn-active btn-ghost" id="logout">Logout</button>
</div>
<router-outlet></router-outlet> <router-outlet></router-outlet>

View File

@@ -33,8 +33,8 @@
<a (click)="switch()"> <a (click)="switch()">
<span *ngIf="login">Register</span> <button class="btn-link" *ngIf="login">Register</button>
<span *ngIf="!login">Login</span> <button class="btn-link" *ngIf="!login">Login</button>
</a> </a>
</div> </div>