-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Altera redirecionamento para componentes corretos
- Loading branch information
1 parent
5061390
commit 018998c
Showing
5 changed files
with
143 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
140 changes: 81 additions & 59 deletions
140
src/app/components/background/background.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,84 @@ | ||
<div class="w-full flex h-screen flex-col"> | ||
<div> | ||
<div class="pt-10 flex justify-center items-center"> | ||
<img alt="simbolo-unb" src="../../../assets/Simbolo_UnBTV-01 1.png"> | ||
</div> | ||
<div class="flex flex-row items-center justify-center w-full"> | ||
<nav class="text-programs"> | ||
<a routerLink="" class="px-2">Início</a>| | ||
<a routerLink="/agora" class="px-2">Agora na TV</a>| | ||
<a routerLink="/programacao" class="px-2">Programação</a>| | ||
<a routerLink="/transmissoes" class="pl-2">Transmissões</a> | ||
|
||
</nav> | ||
<img alt="hamburguer" (click)="toggleMenu()" src="../../../assets/hamburguer.svg"> | ||
</div> | ||
<div class="menu" *ngIf="isMenuOpened"> | ||
<a class="menu-item">teste</a> | ||
<a class="menu-item">teste</a> | ||
<a class="menu-item">teste</a> | ||
</div> | ||
</div> | ||
<div class="flex-grow"> | ||
<ng-content></ng-content> | ||
</div> | ||
<div class="flex flex-row items-center justify-center pb-10"> | ||
<div class="pr-2"> | ||
<a href="url_do_link_para_form-unb" target="_blank"> | ||
<img alt="form-unb" src="../../../assets/form-unb-tv.svg"> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://unbtv.unb.br/contato" target="_blank"> | ||
<img alt="telefone" src="../../../assets/telefone.svg"> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://unbtv.unb.br" target="_blank"> | ||
<img alt="website" src="../../../assets/website.svg"> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://www.youtube.com/@UnBTV" target="_blank"> | ||
<img alt="youtube" src="../../../assets/youtube.svg"> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://www.instagram.com/unbtv/" target="_blank"> | ||
<img alt="instagram" src="../../../assets/instagram.svg"> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://www.facebook.com/UnBTV" target="_blank"> | ||
<img alt="facebook" src="../../../assets/facebook.svg"> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="twitter.com/unb_tv" target="_blank"> | ||
<img alt="x" src="../../../assets/x.svg"> | ||
</a> | ||
</div> | ||
<div> | ||
<div class="pt-10 flex justify-center items-center"> | ||
<img alt="simbolo-unb" src="../../../assets/Simbolo_UnBTV-01 1.png" /> | ||
</div> | ||
<div class="flex flex-row items-center justify-center w-full"> | ||
<nav class="text-programs"> | ||
<a [routerLink]="['/stream']">Agora na TV</a> | ||
<div class="mx-2">|</div> | ||
<a [routerLink]="['/videos']">Catálogo</a> | ||
<div class="mx-2">|</div> | ||
<a [routerLink]="['/grid-days']">Programação</a> | ||
<div class="mx-2">|</div> | ||
<a [routerLink]="['/participate']">Participe</a> | ||
</nav> | ||
<!-- <img | ||
alt="hamburguer" | ||
(click)="toggleMenu()" | ||
src="../../../assets/hamburguer.svg" | ||
/> --> | ||
</div> | ||
<!-- <div class="menu"> | ||
<p-menu #menu [model]="items" [popup]="true"></p-menu> | ||
<button | ||
pButton | ||
type="button" | ||
(click)="menu.toggle($event)" | ||
icon="pi pi-bars" | ||
label="Show" | ||
></button> | ||
</div> --> | ||
<div class="card flex justify-content-center"> | ||
<p-toast></p-toast> | ||
<p-menu #menu [model]="items" [popup]="true"></p-menu> | ||
<button | ||
pButton | ||
type="button" | ||
(click)="menu.toggle($event)" | ||
icon="pi pi-bars" | ||
label="Show" | ||
></button> | ||
</div> | ||
</div> | ||
<div class="flex-grow"> | ||
<ng-content></ng-content> | ||
</div> | ||
<div class="flex flex-row items-center justify-center pb-10"> | ||
<div class="pr-2"> | ||
<a href="url_do_link_para_form-unb" target="_blank"> | ||
<img alt="form-unb" src="../../../assets/form-unb-tv.svg" /> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://unbtv.unb.br/contato" target="_blank"> | ||
<img alt="telefone" src="../../../assets/telefone.svg" /> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://unbtv.unb.br" target="_blank"> | ||
<img alt="website" src="../../../assets/website.svg" /> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://www.youtube.com/@UnBTV" target="_blank"> | ||
<img alt="youtube" src="../../../assets/youtube.svg" /> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://www.instagram.com/unbtv/" target="_blank"> | ||
<img alt="instagram" src="../../../assets/instagram.svg" /> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="https://www.facebook.com/UnBTV" target="_blank"> | ||
<img alt="facebook" src="../../../assets/facebook.svg" /> | ||
</a> | ||
</div> | ||
<div class="pr-2"> | ||
<a href="twitter.com/unb_tv" target="_blank"> | ||
<img alt="x" src="../../../assets/x.svg" /> | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,31 @@ | ||
import { Component } from '@angular/core'; | ||
import { Component, OnInit } from '@angular/core'; | ||
import { MenuItem, MessageService } from 'primeng/api'; | ||
|
||
|
||
@Component({ | ||
selector: 'app-background', | ||
templateUrl: './background.component.html', | ||
styleUrls: ['./background.component.css'] | ||
styleUrls: ['./background.component.css'], | ||
providers: [MessageService] | ||
}) | ||
export class BackgroundComponent { | ||
export class BackgroundComponent implements OnInit { | ||
isMenuOpened: boolean = false; | ||
items: MenuItem[] = []; | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
this.items = [ | ||
{ | ||
label: 'Profile', | ||
icon: 'pi pi-user', | ||
routerLink: '/profile' | ||
} | ||
] | ||
} | ||
|
||
toggleMenu(): void { | ||
this.isMenuOpened = !this.isMenuOpened; | ||
} | ||
|
||
} |