forked from UnBTV/UnB-TV-Frontend
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into 10-gerenciador_admin
- Loading branch information
Showing
15 changed files
with
2,029 additions
and
616 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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,65 +1,90 @@ | ||
.record-container { | ||
justify-content: center; | ||
.header-title { | ||
color: green; /* Azul escuro para o título */ | ||
text-align: center; | ||
margin-bottom: 20px; | ||
font-size: 2rem; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
} | ||
|
||
* { | ||
font-family: Helvetica, sans-serif; | ||
|
||
.videos-container { | ||
display: flex; | ||
justify-content: center; | ||
margin-bottom: 20px; | ||
} | ||
|
||
header { | ||
|
||
.videos { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
padding: 1rem; | ||
gap: 20px; | ||
} | ||
|
||
|
||
.flex { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
transition: transform 0.3s ease; | ||
} | ||
|
||
header h1 { | ||
font-size: 2.4em; | ||
color: #00a550; | ||
padding-top: 0.5rem; | ||
padding-bottom: 0.5rem; | ||
|
||
.video-img { | ||
display: block; | ||
margin: 0 auto; | ||
border-radius: 7px; | ||
width: 220px; /* Mantém a proporção original da imagem */ | ||
height: 124px; /* Mantém a proporção original da imagem */ | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
transition: box-shadow 0.3s ease, transform 0.3s ease; | ||
} | ||
|
||
.videos-container { | ||
display: flex; | ||
justify-content: center; | ||
align-content: center; | ||
|
||
.video-img:hover { | ||
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); | ||
transform: translateY(-5px); /* Eleva o vídeo ligeiramente ao passar o mouse */ | ||
} | ||
|
||
.videos { | ||
|
||
.checkbox-label { | ||
display: flex; | ||
justify-content: center; | ||
flex-wrap: wrap; | ||
gap: 0.5rem; | ||
width: 100%; | ||
height: 100%; | ||
max-width: 80%; | ||
align-items: center; | ||
font-size: 1.2rem; | ||
margin-bottom: 20px; | ||
cursor: pointer; | ||
color: #34495e; | ||
} | ||
|
||
|
||
.checkbox-label input[type="checkbox"] { | ||
margin-right: 10px; | ||
width: 24px; | ||
height: 24px; | ||
cursor: pointer; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
header h1 { | ||
font-size: 2em; | ||
} | ||
|
||
.videos { | ||
max-width: 100%; | ||
gap: 0.25rem; | ||
} | ||
.record-controls { | ||
text-align: center; | ||
margin-bottom: 20px; | ||
} | ||
|
||
@media (max-width: 480px) { | ||
header h1 { | ||
font-size: 1.8em; | ||
} | ||
|
||
.videos { | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 0.25rem; | ||
} | ||
.record-controls button { | ||
background-color: #2980b9; | ||
color: #fff; | ||
border: none; | ||
padding: 12px 24px; | ||
margin: 5px; | ||
border-radius: 5px; | ||
cursor: pointer; | ||
font-size: 1.1rem; | ||
transition: background-color 0.3s ease, transform 0.2s ease; | ||
} | ||
|
||
|
||
.videos-container { | ||
padding: 0.5rem; | ||
} | ||
.record-controls button:hover { | ||
background-color: #1f6395; | ||
} |
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,18 +1,30 @@ | ||
<div class="record-container"> | ||
<header> | ||
<strong><h1>Histórico de vídeos</h1></strong> | ||
<h1 class="header-title">Histórico de Vídeos</h1> | ||
</header> | ||
<main class="videos-container"> | ||
|
||
|
||
<!-- Controle de Rastreamento com Checkbox --> | ||
<div class="record-controls my-4"> | ||
<label class="checkbox-label"> | ||
<input type="checkbox" [(ngModel)]="trackingEnabled" (change)="toggleTracking(trackingEnabled)" /> | ||
Rastreamento do Histórico | ||
</label> | ||
<button (click)="sortRecord(true)" class="btn btn-secondary mr-2">Ordenar Crescente</button> | ||
<button (click)="sortRecord(false)" class="btn btn-secondary">Ordenar Decrescente</button> | ||
</div> | ||
|
||
|
||
<main class="videos-container my-4"> | ||
<br> | ||
<div class="videos"> | ||
<div *ngFor="let video of filteredVideos" class="flex"> | ||
<div *ngFor="let video of filteredVideos; trackBy: trackByVideoId" class="flex"> | ||
<div> | ||
<div *ngFor="let image of video.images" [routerLink]="['/video', video.id]" class="cursor-pointer"> | ||
<img src="{{ image.href }}" alt="{{ video.title }}" class="w-36 h-[85px] rounded-[7px]" /> | ||
<img [src]="image.href" [alt]="video.title" class="w-36 h-[85px] rounded-[7px]" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</main> | ||
</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
Oops, something went wrong.