From c597c5e0c5e94580670818d7087e96ab0ff516fc Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 3 Mar 2022 18:24:17 +0200 Subject: [PATCH] Change icons in get-started to outline. Add get-started button in navbar --- src/app/app.component.ts | 73 +++++++++++-------- .../get-started/get-started.component.html | 4 +- src/app/openaireLibrary | 2 +- src/assets/openaire-theme | 2 +- 4 files changed, 46 insertions(+), 35 deletions(-) diff --git a/src/app/app.component.ts b/src/app/app.component.ts index c861d96..6e05185 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -26,12 +26,20 @@ import {AlertModal} from "./openaireLibrary/utils/modal/alert";
+ [showMenu]=showMenu [properties]="properties"> + + Get Started + + name="OpenAIRE Monitor" [searchAction]="true" + [searchActionRoute]="properties.domain + properties.baseLink + '/browse'">
@@ -51,8 +59,9 @@ import {AlertModal} from "./openaireLibrary/utils/modal/alert"; - +
Our team will respond to your submission soon. @@ -74,7 +83,8 @@ export class AppComponent { header: Header; logoPath: string = 'assets/common-assets/'; /* Contact */ - public showQuickContact: boolean; + public showQuickContact: boolean; + public showGetStarted: boolean = true; public contactForm: FormGroup; public organizationTypes: string[] = [ 'Funding agency', 'University / Research Center', @@ -86,28 +96,29 @@ export class AppComponent { @ViewChild('quickContact') quickContact: QuickContactComponent; private subscriptions: any[] = []; - constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService, + constructor(private route: ActivatedRoute, private propertiesService: EnvironmentSpecificService, private router: Router, private stakeholderService: StakeholderService, private smoothScroll: SmoothScroll, private userManagementService: UserManagementService, - private quickContactService: QuickContactService, + private quickContactService: QuickContactService, private fb: FormBuilder, private emailService: EmailService) { this.subscriptions.push(router.events.forEach((event) => { if (event instanceof NavigationEnd) { - this.url = event.url; - let r = this.route; - while (r.firstChild) { - r = r.firstChild; - } - let params = r.snapshot.params; - this.params.next(params); - if(event.url === '/contact-us') { - this.quickContactService.setDisplay(false); - } else if(event.url !== '/contact-us' && !this.showQuickContact) { - this.quickContactService.setDisplay(true); - } + this.url = event.url; + let r = this.route; + while (r.firstChild) { + r = r.firstChild; } - + let params = r.snapshot.params; + this.params.next(params); + if (event.url === '/contact-us') { + this.quickContactService.setDisplay(false); + } else if (event.url !== '/contact-us' && !this.showQuickContact) { + this.quickContactService.setDisplay(true); + } + this.showGetStarted = event.url !== '/get-started'; + } + })); } @@ -121,17 +132,17 @@ export class AppComponent { url: null, title: 'monitor', logoUrl: this.logoPath + 'logo-large-monitor.png', - logoSmallUrl:this.logoPath + 'logo-small-monitor.png', - position:'left', - badge:true, + logoSmallUrl: this.logoPath + 'logo-small-monitor.png', + position: 'left', + badge: true, menuPosition: 'center' }; this.buildMenu(); this.reset(); })); - this.subscriptions.push(this.quickContactService.isDisplayed.subscribe(display => { - this.showQuickContact = display; - })); + this.subscriptions.push(this.quickContactService.isDisplayed.subscribe(display => { + this.showQuickContact = display; + })); } public ngOnDestroy() { @@ -181,16 +192,16 @@ export class AppComponent { } public send(event) { - if(event.valid === true) { + if (event.valid === true) { this.sendMail(this.properties.admins); } } public reset() { - if(this.quickContact) { + if (this.quickContact) { this.quickContact.close(); } - this.contactForm = this.fb.group( { + this.contactForm = this.fb.group({ name: this.fb.control('', Validators.required), surname: this.fb.control('', Validators.required), email: this.fb.control('', [Validators.required, Validators.email]), @@ -233,7 +244,7 @@ export class AppComponent { } handleError(message: string, error = null) { - if(error) { + if (error) { console.error(error); } this.sending = false; diff --git a/src/app/get-started/get-started.component.html b/src/app/get-started/get-started.component.html index ccf03a5..a398bd3 100644 --- a/src/app/get-started/get-started.component.html +++ b/src/app/get-started/get-started.component.html @@ -20,7 +20,7 @@
Step 1
- Provide some
information
@@ -28,7 +28,7 @@
Step 2
- We contact
you
diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index 2b7c52a..360cc0f 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit 2b7c52a8b0cb4599324253f57f9eb428682275cb +Subproject commit 360cc0f3e3bd4892fbffea94391fa8af4a339fea diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme index 60be89e..e541072 160000 --- a/src/assets/openaire-theme +++ b/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 60be89ef464a3eb6a485b1f68bd9f3dcde0393a0 +Subproject commit e5410728a16312eca7bd11ebb6b8dc8777c072a3