diff --git a/sharedComponents/bottom.component.html b/sharedComponents/bottom.component.html index 56aff793..c2b60454 100644 --- a/sharedComponents/bottom.component.html +++ b/sharedComponents/bottom.component.html @@ -1,3 +1,30 @@ + +
+
+
+
+ flag black white low +
+
+
+ +
+
+ +
+
+
+
+
+ OpenAIRE +
+
+
+
@@ -176,14 +203,6 @@
-
@@ -240,3 +259,4 @@
+ diff --git a/sharedComponents/bottom.component.ts b/sharedComponents/bottom.component.ts index 25ec88ae..8af2c7f3 100644 --- a/sharedComponents/bottom.component.ts +++ b/sharedComponents/bottom.component.ts @@ -5,6 +5,7 @@ import{MenuItem} from './menu'; import { ConfigurationService } from '../utils/configuration/configuration.service'; import {EnvProperties} from "../utils/properties/env-properties"; import {Subscription} from "rxjs"; +import {properties} from '../../../environments/environment'; @Component({ selector: 'bottom', @@ -25,9 +26,10 @@ showPage ={}; @Input() grantAdvance:boolean = true; grantAdvanceText = "OpenAIRE-Advance receives funding from the European Union's Horizon 2020 Research and Innovation programme under Grant Agreement No. 777541."; grantConenctText = "OpenAIRE-Connect receives funding from the European Union's Horizon 2020 Research and Innovation programme under grant agreement No. 731011 and No. 777541."; -@Input() properties:EnvProperties; +@Input() properties:EnvProperties = properties; @Input() darkBackground:boolean=true; @Input() centered:boolean=false; +@Input() shortView: boolean = false; sectionClass= "uk-section-primary"; subs: Subscription[] = []; diff --git a/sharedComponents/menu.ts b/sharedComponents/menu.ts index ec65630f..6e478988 100644 --- a/sharedComponents/menu.ts +++ b/sharedComponents/menu.ts @@ -7,12 +7,13 @@ export class MenuItem { entitiesRequired: string[] = []; // openaire entities used in page "publication, dataset, organization, software, project, datasource" routeRequired: string[] = []; // the routes that if aren't enable the menu item doesn't make sense params: any = {}; + fragment: string; markAsActive: boolean; items: MenuItem[] = []; icon: string; open: boolean; - constructor(id: string, title: string, url: string, route: string, needsAuthorization: boolean, entitiesRequired: string[], routeRequired: string[], params, icon=null) { + constructor(id: string, title: string, url: string, route: string, needsAuthorization: boolean, entitiesRequired: string[], routeRequired: string[], params, icon=null, fragment = null) { this.id = id; this.title = title; this.url = url; @@ -24,6 +25,7 @@ export class MenuItem { this.markAsActive = true; this.items = []; this.icon = icon; + this.fragment = fragment; } public setMarkAsActive(showActive: boolean) { diff --git a/sharedComponents/navigationBar.component.html b/sharedComponents/navigationBar.component.html index efd4aa13..ebc4ede1 100644 --- a/sharedComponents/navigationBar.component.html +++ b/sharedComponents/navigationBar.component.html @@ -87,7 +87,7 @@ {{menu.rootItem.title}}
  • {{submenu.title}} {{menu.rootItem.title}} + [queryParams]="menu.rootItem.params" [fragment]="menu.rootItem.fragment"> {{menu.rootItem.title}}
  • {{submenu.title}} + routerLink="{{submenu.route}}" [queryParams]="submenu.params" [fragment]="submenu.fragment">{{submenu.title}} {{submenu.title}}
  • diff --git a/utils/full-page-slider/full-page-slider.component.css b/utils/full-page-slider/full-page-slider.component.css index 290de04e..32c01643 100644 --- a/utils/full-page-slider/full-page-slider.component.css +++ b/utils/full-page-slider/full-page-slider.component.css @@ -1,15 +1,24 @@ .top-bar { position: fixed; top: 0; - left: 0; + left: 121px; height: 100px; - width: 100%; + width: calc(100% - 121px); + z-index: 1; +} + +.bottom-bar { + position: fixed; + bottom: 0; + left: 121px; + height: 100px; + width: calc(100% - 121px); z-index: 1; } section { position: fixed; - top:10%; + top: 100px; left: 120px; height: calc(100% - 100px); width: calc(100% - 120px); @@ -23,7 +32,7 @@ section { width: 120px; border-right: 1px solid #4687E6; background-color: white; - z-index: 2; + z-index: 1; } .menu .logo { diff --git a/utils/full-page-slider/full-page-slider.component.ts b/utils/full-page-slider/full-page-slider.component.ts index 720d0541..afcf74d8 100644 --- a/utils/full-page-slider/full-page-slider.component.ts +++ b/utils/full-page-slider/full-page-slider.component.ts @@ -1,12 +1,13 @@ import {AfterContentInit, Component, ContentChildren, Input, OnInit, QueryList} from "@angular/core"; import {SlideComponent} from "./slide.component"; +import {BehaviorSubject, Observable} from 'rxjs'; @Component({ selector: 'fp-slider', template: `