-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
425e3ce
commit 1feeeb1
Showing
9 changed files
with
83 additions
and
55 deletions.
There are no files selected for viewing
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
16 changes: 2 additions & 14 deletions
16
src/app/components/annotations/pages/search/search.component.scss
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,25 +1,13 @@ | ||
$gap-size: 0.5em; | ||
|
||
.annotations-grid { | ||
display: flex; | ||
justify-content: start; | ||
justify-content: space-evenly; | ||
flex-wrap: wrap; | ||
flex-direction: row; | ||
|
||
position: relative; | ||
gap: $gap-size; | ||
gap: 1em; | ||
min-height: 2rem; | ||
} | ||
|
||
.preview-item { | ||
display: inline-block; | ||
flex: 0 0 calc(20% - $gap-size); | ||
|
||
position: relative; | ||
min-width: calc(20% - $gap-size); | ||
min-height: 133px; | ||
} | ||
|
||
.annotation-grid-controls { | ||
position: relative; | ||
} |
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
23 changes: 23 additions & 0 deletions
23
src/app/components/shared/audio-event-card/audio-event-card.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<div class="card p-2"> | ||
<oe-axes> | ||
<oe-indicator> | ||
<oe-spectrogram | ||
[id]="'spectrogram-' + audioEvent.id" | ||
[src]="audioEvent.audioLink" | ||
scaling="stretch" | ||
color-map="audacity" | ||
></oe-spectrogram> | ||
</oe-indicator> | ||
</oe-axes> | ||
|
||
<div class="card-header"> | ||
<h5 class="card-title text-truncate">{{ audioEvent.tags }}</h5> | ||
</div> | ||
|
||
<div class="card-body"> | ||
<a class="info-line" [href]="audioEvent.listenViewUrl">{{ | ||
audioEvent.startTimeSeconds | date | ||
}}</a> | ||
<a class="info-line" [href]="audioEvent.viewUrl">More information</a> | ||
</div> | ||
</div> |
4 changes: 4 additions & 0 deletions
4
src/app/components/shared/audio-event-card/audio-event-card.component.scss
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.info-line { | ||
display: block; | ||
width: 100%; | ||
} |
Empty file.
11 changes: 11 additions & 0 deletions
11
src/app/components/shared/audio-event-card/audio-event-card.component.ts
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component, Input } from "@angular/core"; | ||
import { Verification } from "@models/Verification"; | ||
|
||
@Component({ | ||
selector: "baw-audio-event-card", | ||
templateUrl: "audio-event-card.component.html", | ||
styleUrl: "audio-event-card.component.scss", | ||
}) | ||
export class AudioEventCardComponent { | ||
@Input({ required: true }) public audioEvent: Verification; | ||
} |
11 changes: 11 additions & 0 deletions
11
src/app/components/shared/audio-event-card/audio-event-card.module.ts
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from "@angular/core"; | ||
import { CommonModule } from "@angular/common"; | ||
import { AudioEventCardComponent } from "./audio-event-card.component"; | ||
|
||
@NgModule({ | ||
declarations: [AudioEventCardComponent], | ||
imports: [CommonModule], | ||
exports: [AudioEventCardComponent], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
}) | ||
export class AudioEventCardModule {} |
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