Skip to content

Commit

Permalink
Merge pull request #11 from fga-eps-mds/153-eh08--histórico-de-vídeos
Browse files Browse the repository at this point in the history
153 eh08  histórico de vídeos
  • Loading branch information
Jauzimm authored Jan 28, 2025
2 parents 8d45a6b + 455331c commit cae4182
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 18 deletions.
27 changes: 24 additions & 3 deletions src/app/pages/record/record.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@

.checkbox-label {
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2rem;
margin-bottom: 20px;
Expand All @@ -60,31 +61,51 @@


.checkbox-label input[type="checkbox"] {
margin-right: 10px;
margin-left: 10px;
width: 24px;
height: 24px;
cursor: pointer;
}


.record-controls {
.tracking_history {
text-align: center;
margin-bottom: 20px;
}

.record-controls {
display: flex;
justify-content: center;
gap: 10%;
text-align: center;
margin-bottom: 20px;
}

.record-controls button {
display: flex;
background-color: #2980b9;
color: #fff;
border: none;
padding: 12px 24px;
margin: 5px;
border-radius:25px;
border-radius: 25px;
cursor: pointer;
font-size: 1.1rem;
transition: background-color 0.3s ease, transform 0.2s ease;
}

.tracking_icons {
width: auto;
height: auto;
margin-right: 10px;
margin-top: 3px;
}

.tracking_icons_history {
width: auto;
height: auto;
margin-right: 10px;
}

.record-controls button:hover {
background-color: #1f6395;
Expand Down
34 changes: 19 additions & 15 deletions src/app/pages/record/record.component.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
<div class="record-container">
<header>
<div class="tracking_history my-4">
<label class="checkbox-label">
<img src="../../../assets/history_icon.svg" alt="history_icon" class="tracking_icons_history">
Rastreamento do Histórico
<input type="checkbox" [(ngModel)]="trackingEnabled" (change)="toggleTracking(trackingEnabled)" />
</label>
</div>
<h1 class="header-title">Histórico de Vídeos</h1>
</header>

<!-- 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"
[ngClass]="{ 'active': isAscendingActive }"
>
Ordenar Crescente
(click)="sortRecord(true)"
class="btn btn-secondary mr-2"
[ngClass]="{ 'active': isAscendingActive }"
>
<img src="../../../assets/up_arrow.svg" alt="up-arrow-icon" class="tracking_icons">
Ordenar Crescente
</button>
<button
(click)="sortRecord(false)"
class="btn btn-secondary"
[ngClass]="{ 'active': isDescendingActive }"
>
Ordenar Decrescente
(click)="sortRecord(false)"
class="btn btn-secondary"
[ngClass]="{ 'active': isDescendingActive }"
>
<img src="../../../assets/down_arrow.svg" alt="down-arrow-icon" class="tracking_icons">
Ordenar Decrescente
</button>
</div>

Expand Down
3 changes: 3 additions & 0 deletions src/assets/down_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/assets/history_icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/assets/up_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cae4182

Please sign in to comment.