Skip to content

Commit

Permalink
Destaca pagina atual no header
Browse files Browse the repository at this point in the history
Co-authored-by: Gabriela Tiago <[email protected]>
  • Loading branch information
Marcosatc147 and GabrielaTiago committed Nov 30, 2023
1 parent d1f719a commit 578aa1b
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions src/app/components/background/background.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,52 @@
<div class="pt-10 flex justify-center items-center">
<img alt="simbolo-unb" src="../../../assets/Simbolo_UnBTV-01 1.png" />
</div>
<div *ngIf="!getActiveRoute()">
<div *ngIf="getActualRoute() !== '/login'">
<nav class="flex flex-row items-center justify-center pl-3">
<ul class="flex flex-row gap-1 text-xs">
<li class="text-blue-brand">
<div *ngIf="getActualRoute() === '/stream'">
<li class="text-blue-brand font-bold text-[#00A550]">
<a [routerLink]="['/stream']">Agora na TV</a>
</li>
<div class="mx-2 text-blue-brand">|</div>
</div>
<div *ngIf="getActualRoute() !== '/stream'">
<li class="text-blue-brand">
<a [routerLink]="['/videos']">Catálogo</a>
<a [routerLink]="['/stream']">Agora na TV</a>
</li>
</div>
<div class="mx-2 text-blue-brand">|</div>
<div *ngIf="getActualRoute() === '/videos'">
<li class="text-blue-brand font-bold text-[#00A550]">
<a [routerLink]="['/videos']">Catálogo</a>
</li>
</div>
<div *ngIf="getActualRoute() !== '/videos'">
<li class="text-blue-brand" >
<a [routerLink]="['/videos']">Catálogo</a>
</li>
</div>
<div class="mx-2 text-blue-brand">|</div>
<div *ngIf="getActualRoute() === '/grid-days'">
<li class="text-blue-brand font-bold text-[#00A550]">
<a [routerLink]="['/grid-days']">Programação</a>
</li>
</div>
<div *ngIf="getActualRoute() !== '/grid-days'">
<li class="text-blue-brand">
<a [routerLink]="['/grid-days']">Programação</a>
</li>
</div>
<div class="mx-2 text-blue-brand">|</div>
<li class="text-blue-brand">
<div *ngIf="getActualRoute() === '/participate'" >
<li class="text-blue-brand font-bold text-[#00A550]">
<a [routerLink]="['/participate']">Participe</a>
</li>
</div>
<div *ngIf="getActualRoute() !== '/participate'" >
<li class="text-blue-brand">
<a [routerLink]="['/participate']">Participe</a>
</li>
</div>
</ul>
<div class="card flex justify-content-center mx-2">
<p-menu #menu [model]="items" [popup]="true"></p-menu>
Expand Down

0 comments on commit 578aa1b

Please sign in to comment.