[main | DONE | ADDED]: app.component.ts: Changed alignment of the menuitems -> moved them to right & added item "Demo Tools" with an "Alpha" badge and links to "Community Recommendations" and "NL Search" | eosc-custom.less: Added css for classes ".alpha-badge > * > .badge" and ".alpha-badge .badge-mobile".

This commit is contained in:
Konstantina Galouni 2024-03-15 15:47:28 +02:00
parent 8a3714c832
commit afcbccf61e
4 changed files with 39 additions and 12 deletions

View File

@ -76,8 +76,8 @@ export class AppComponent {
title: this.agg.title,
logoUrl: this.agg.logoUrl,
logoSmallUrl: this.agg.logoUrl,
position: 'center',
menuPosition: 'center',
position: 'left',
menuPosition: 'right',
badge: false,
darkBg: false
};
@ -109,15 +109,23 @@ export class AppComponent {
this.menuItems = [
new MenuItem("home", "Home", "", "/", false, [], null, {}),
new MenuItem("search", "Search", "", "/search/find", false, [], ["/search/find"], {}),
new MenuItem("deposit", "Deposit", "", "/participate/deposit/learn-how", false, [], ["/participate/deposit/learn-how"], {}),
new MenuItem("link", "Link", "", "/participate/claim", false, [], ["/participate/claim"], {},
null, null, null, null, "_blank", "internal", false,
// new MenuItem("deposit", "Deposit", "", "/participate/deposit/learn-how", false, [], ["/participate/deposit/learn-how"], {}),
// new MenuItem("link", "Link", "", "/participate/claim", false, [], ["/participate/claim"], {},
// null, null, null, null, "_blank", "internal", false,
// [
// new MenuItem("", "Start linking", "", "/participate/claim", false, [], ["/participate/claim"], {}),
// new MenuItem("", "Learn more", this.properties.claimsInformationLink, "", false, [], [], {})
// ]
// ),
// new MenuItem("develop", "Develop", "", "/develop", false, [], ["/develop"], {})
new MenuItem("demo-tools", "Demo Tools", "", "", false, [], null, {},
null, null, "alpha-badge", null, "_blank", "internal", false,
[
new MenuItem("", "Start linking", "", "/participate/claim", false, [], ["/participate/claim"], {}),
new MenuItem("", "Learn more", this.properties.claimsInformationLink, "", false, [], [], {})
]
),
new MenuItem("develop", "Develop", "", "/develop", false, [], ["/develop"], {})
new MenuItem("recommendations", "Community Recommendations", "https://test.darelab.athenarc.gr/crps/", "", false, [], null, {}),
new MenuItem("nl-search", "NL Search", "https://darelab.athenarc.gr/nl_search/fc4eosc", "", false, [], null, {})
],
"Alpha"
)
];
let params = {};
// params[this.agg.queryFieldName] = this.agg.valueId;

@ -1 +1 @@
Subproject commit b68f375714b679743e586bb2fb4721e633e43fc1
Subproject commit 651102a5ba049b71bed8eb6a85a8d02cefcb24cc

View File

@ -184,4 +184,23 @@
.uk-button-primary {
background-image: none;
}
.alpha-badge > * > .badge {
position: absolute;
padding: 0 15px;
left: 0;
top: 8px;
color: crimson !important;
opacity: 0.2;
font-size: 10px;
}
.alpha-badge .badge-mobile {
position: absolute;
bottom: 2px;
left: 5px;
color: crimson !important;
opacity: 0.2;
font-size: 10px;
}

@ -1 +1 @@
Subproject commit 7aa9e577193e3a77415434fd5e6e856a21d5efeb
Subproject commit 37639eab68c63a506b7df10c42e3379c4a05d94d