Skip to content

Commit

Permalink
Altera redirecionamento para componentes corretos
Browse files Browse the repository at this point in the history
  • Loading branch information
joao15victor08 committed Nov 16, 2023
1 parent 5061390 commit 018998c
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 62 deletions.
35 changes: 35 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@
"@angular/platform-browser": "^15.2.0",
"@angular/platform-browser-dynamic": "^15.2.0",
"@angular/router": "^15.2.0",
"angular-oauth2-oidc": "^15.0.1",
"jwt-decode": "^3.1.2",
"postcss-cli": "^10.1.0",
"postcss-import": "^15.1.0",
"postcss-loader": "^7.3.3",
"postcss-preset-env": "^9.2.0",
"postcss-scss": "^4.0.9",
"primeicons": "^6.0.1",
"primeng": "^15.4.1",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.12.0"
Expand Down
4 changes: 4 additions & 0 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import { AgoraComponent } from './pages/agora/agora.component';
import { ProgramacaoComponent } from './pages/programacao/programacao.component';
import { SuggestAgendaComponent } from './pages/suggest-agenda/suggest-agenda.component';
import { ParticipateComponent } from './pages/participate/participate.component';
import { MenuModule } from 'primeng/menu';
import { ToastModule } from 'primeng/toast';

@NgModule({
declarations: [
Expand Down Expand Up @@ -55,6 +57,8 @@ import { ParticipateComponent } from './pages/participate/participate.component'
HttpClientModule,
ReactiveFormsModule,
HttpClientModule,
MenuModule,
ToastModule
],
providers: [
AuthGuard,
Expand Down
140 changes: 81 additions & 59 deletions src/app/components/background/background.component.html
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>
23 changes: 20 additions & 3 deletions src/app/components/background/background.component.ts
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;
}

}

0 comments on commit 018998c

Please sign in to comment.