Skip to content

Commit 0b849ab

Browse files
tkohrjahow
authored andcommitted
feat(header): adapt UI to latest geocat mockups (#12)
1 parent f78b3fc commit 0b849ab

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

apps/datahub/src/app/home/navigation-menu/navigation-menu.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
ROUTER_ROUTE_NEWS,
1010
ROUTER_ROUTE_ORGANISATIONS,
1111
} from '../../router/constants'
12-
import { getThemeConfig } from '@geonetwork-ui/util/app-config'
12+
// import { getThemeConfig } from '@geonetwork-ui/util/app-config'
1313

1414
marker('datahub.header.news')
1515
marker('datahub.header.datasets')
@@ -21,7 +21,7 @@ marker('datahub.header.organisations')
2121
changeDetection: ChangeDetectionStrategy.OnPush,
2222
})
2323
export class NavigationMenuComponent {
24-
foregroundColor = getThemeConfig().HEADER_FOREGROUND_COLOR || '#ffffff'
24+
foregroundColor = /*getThemeConfig().HEADER_FOREGROUND_COLOR ||*/ '#ffffff'
2525
displayMobileMenu = false
2626
tabLinks = [
2727
{

apps/datahub/src/app/record/header-record/header-record.component.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
[label]="'datahub.search.back' | translate"
1010
[icon]="'arrow_back'"
1111
[style.--navigation-button-color]="foregroundColor"
12+
[style.--color-background]="'#ffffff'"
1213
>
1314
</gn-ui-navigation-button>
1415
</div>
@@ -17,17 +18,17 @@
1718
*ngIf="metadata?.uniqueIdentifier"
1819
[record]="metadata"
1920
[displayCount]="false"
20-
class="flex text-background content-center"
21+
class="flex text-background content-center bg-white rounded px-2 items-center justify-center font-semibold text-sm leading-5"
2122
[style.color]="foregroundColor"
2223
[style.--star-toggle-enabled-color]="foregroundColor"
2324
[style.--star-toggle-disabled-color]="foregroundColor"
2425
></gn-ui-favorite-star>
25-
<gn-ui-language-switcher
26+
<!-- <gn-ui-language-switcher
2627
*ngIf="showLanguageSwitcher"
2728
class="language-switcher text-[13px] mt-0.5"
2829
[style.--color-main]="foregroundColor"
2930
[style.--color-gray-300]="foregroundColor"
30-
></gn-ui-language-switcher>
31+
></gn-ui-language-switcher> -->
3132
</div>
3233
</div>
3334
<div
@@ -39,7 +40,7 @@
3940
</div>
4041
<div
4142
class="flex flex-row flex-wrap gap-2 mb-4 ml-4 sm:mr-[332px]"
42-
[style.color]="foregroundColor"
43+
[style.color]="'#ffffff'"
4344
>
4445
<div
4546
*ngIf="(isGeodata$ | async) === true"

libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<button
2-
class="group flex items-center justify-center gap-1 backdrop-blur p-1 bg-primary-opacity-30 rounded content-center"
2+
class="bg-white text-xs font-semibold group flex items-center justify-center gap-1 backdrop-blur py-1.5 px-2 bg-primary-opacity-30 rounded content-center"
33
>
4-
<mat-icon class="material-symbols-outlined align-middle w-[18px]">{{
5-
icon
6-
}}</mat-icon>
4+
<mat-icon
5+
class="material-symbols-outlined align-middle w-[18px] text-primary"
6+
>{{ icon }}</mat-icon
7+
>
78
<span
89
class="mx-2 mt-0.5 text-[16px] tracking-widest content-center opacity-75"
910
>{{ label.toUpperCase() }}</span

0 commit comments

Comments
 (0)