-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dh): btns and cards for custom api urls
- Loading branch information
Showing
5 changed files
with
102 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.tab-header-label { | ||
@apply uppercase text-sm text-primary opacity-75 hover:text-primary-darker; | ||
} | ||
|
94 changes: 70 additions & 24 deletions
94
apps/datahub/src/app/record/record-apis/record-apis.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,25 +1,71 @@ | ||
<p | ||
class="font-title text-[28px] font-medium mt-8 mb-5 text-title text-center sm:mt-12 sm:mb-[-22px] sm:text-left" | ||
translate | ||
> | ||
record.metadata.api | ||
</p> | ||
<gn-ui-carousel | ||
containerClass="gap-4 py-10" | ||
stepsContainerClass="right-[var(--container-outside-width)] bottom-[calc(100%-12px)] top-auto" | ||
> | ||
<gn-ui-api-card | ||
*ngFor=" | ||
let link of facade.apiLinks$ | async; | ||
let first = first; | ||
let last = last | ||
" | ||
[link]="link" | ||
class="w-80" | ||
[ngClass]="{ | ||
'mr-[var(--container-outside-width)]': last, | ||
'ml-[var(--container-outside-width)]': first | ||
}" | ||
<div class="flex flex-row"> | ||
<p | ||
class="font-title text-[28px] font-medium mt-8 mb-5 text-title text-center sm:mt-12 sm:mb-[-22px] sm:text-left" | ||
translate | ||
> | ||
</gn-ui-api-card> | ||
</gn-ui-carousel> | ||
record.metadata.api | ||
</p> | ||
<mat-tab-group | ||
(selectedIndexChange)="onTabIndexChange($event)" | ||
animationDuration="200ms" | ||
mat-stretch-tabs="false" | ||
mat-align-tabs="start" | ||
> | ||
<mat-tab> | ||
<ng-template mat-tab-label> | ||
<span class="tab-header-label sm:ml-32" translate | ||
>URLS PREDEFINIES</span | ||
> | ||
</ng-template> | ||
<div class="block py-10"> | ||
<gn-ui-carousel | ||
containerClass="gap-4 py-10" | ||
stepsContainerClass="right-[var(--container-outside-width)] bottom-[calc(100%-12px)] top-auto" | ||
> | ||
<gn-ui-api-card | ||
*ngFor=" | ||
let link of facade.apiLinks$ | async; | ||
let first = first; | ||
let last = last | ||
" | ||
[custom]="false" | ||
[link]="link" | ||
class="w-80" | ||
[ngClass]="{ | ||
'mr-[var(--container-outside-width)]': last, | ||
'ml-[var(--container-outside-width)]': first | ||
}" | ||
> | ||
</gn-ui-api-card> | ||
</gn-ui-carousel> | ||
</div> | ||
</mat-tab> | ||
<mat-tab> | ||
<ng-template mat-tab-label> | ||
<span class="tab-header-label" translate>URLS PERSONNALISEES</span> | ||
</ng-template> | ||
<div class="block py-10"> | ||
<gn-ui-carousel | ||
containerClass="gap-4 py-10" | ||
stepsContainerClass="right-[var(--container-outside-width)] bottom-[calc(100%-12px)] top-auto" | ||
> | ||
<gn-ui-api-card | ||
*ngFor=" | ||
let link of facade.apiLinks$ | async; | ||
let first = first; | ||
let last = last | ||
" | ||
[custom]="true" | ||
[link]="link" | ||
class="w-80" | ||
[ngClass]="{ | ||
'mr-[var(--container-outside-width)]': last, | ||
'ml-[var(--container-outside-width)]': first | ||
}" | ||
> | ||
</gn-ui-api-card> | ||
</gn-ui-carousel> | ||
</div> | ||
</mat-tab> | ||
</mat-tab-group> | ||
</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
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