Project

General

Profile

1
import {Component} from '@angular/core';
2
import {ActivatedRoute, Router} from '@angular/router';
3
import {Title} from '@angular/platform-browser';
4
import {PiwikService}           from '../openaireLibrary/utils/piwik/piwik.service';
5
import {EnvProperties}          from '../openaireLibrary/utils/properties/env-properties';
6
import {FAQ} from "../openaireLibrary/utils/entities/FAQ";
7

    
8
@Component({
9
    selector: 'learn-how',
10
    template: `
11
      <div class="image-front-topbar uk-section-overlap uk-position-relative uk-preserve-color" uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}" tm-header-transparent="light" tm-header-transparent-placeholder="">
12
        <div  style=" min-height: calc(7.89999px + 60vh);"
13
              class="uk-section uk-padding-remove-bottom" >
14
            <div class="uk-container uk-container-large uk-section">
15
              <div class="uk-margin-large-top" uk-grid>
16
                <h1 class="uk-width-1-1" style="font-size: 41px">Learn the process</h1>
17
                <h5 class="uk-width-1-2@l uk-width-1-1@s">Build a <b>Gateway to your community's</b> open and linked research outcomes. Customized to your needs.</h5>
18
              </div>
19
            </div>
20
            <div class="uk-section-muted"> <!--background-->
21
              <div class="uk-container uk-container-large">
22
                <gif-slider [gifs]="first" [gifRight]="true"></gif-slider>
23
              </div>
24
            </div>
25
            <div class="uk-container uk-container-large">
26
              <gif-slider [gifs]="second"></gif-slider>
27
            </div>
28
            <div class="uk-section-muted"> <!--background-->
29
              <div class="uk-container uk-container-large uk-section">
30
                <div class="uk-flex uk-flex-middle" uk-grid>
31
                  <div class="uk-width-1-2">
32
                    <h1>We look forward to working together and helping you unlock the full potential of your research community through open science.</h1>
33
                    <span>Get in touch with our team to find out how.</span>
34
                    <div class="uk-margin-top">
35
                      <a class="uk-button portal-button" routerLinkActive="router-link-active" routerLink="/contact-us"> CONTACT US</a>
36
                    </div>
37
                  </div>
38
                  <div class="uk-width-1-2">
39
                    eikona
40
                  </div>
41
                </div>
42
              </div>
43
            </div>
44
            <div *ngIf="questions.length > 0" class="uk-container">
45
              <h1 class="uk-margin-remove-bottom uk-margin-large-top uk-width-1-1">Frequently Asked Questions</h1>
46
              <div class="uk-width-1-1 uk-section">
47
                <ul uk-accordion>
48
                  <li *ngFor="let question of questions; let i=index" [ngClass]="(i===0)?'uk-open':''">
49
                    <a class="uk-accordion-title">{{question.question}}</a>
50
                    <div class="uk-accordion-content uk-height-max-small uk-overflow-auto">
51
                      <p>{{question.answer}} 
52
                      </p>
53
                    </div>
54
                  </li>
55
                </ul>
56
              </div>
57
            </div>
58
        </div>
59
      </div>
60
    `
61
  })
62
export class LearnHowComponent {
63
  public piwiksub: any;
64
  questions: FAQ[] = [
65
    {
66
      question: 'Why should my company do a design sprint?',
67
      answer: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
68
    },
69
    {
70
      question: 'Why should my company do a design sprint?',
71
      answer: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
72
    },
73
    {
74
      question: 'Why should my company do a design sprint?',
75
      answer: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
76
    },
77
    {
78
      question: 'Why should my company do a design sprint?',
79
      answer: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.'
80
    }
81
  ];
82
  public first: {"gif": string, "header": string, "text"}[] = [];
83
  public second: {"gif": string, "header": string, "text"}[] = [];
84

    
85

    
86
  private pageTitle = "OpenAIRE - Connect | Learn How";
87

    
88
  properties:EnvProperties;
89

    
90
  constructor (
91
      private route: ActivatedRoute,
92
      private _router: Router,
93
      private _title: Title,
94
      private _piwikService: PiwikService) {
95
          var description = "OpenAIRE - Connect, Community Dashboard, research community";
96
          this._title.setTitle(this.pageTitle);
97
  }
98

    
99
  public ngOnInit() {
100
    this.route.data
101
          .subscribe((data: { envSpecific: EnvProperties }) => {
102
            this.properties = data.envSpecific;
103
            if(this.properties.enablePiwikTrack && (typeof document !== 'undefined')){
104
              this.piwiksub = this._piwikService.trackView(this.properties, "OpenAIRE Connect | Create and manage your community page", this.properties.piwikSiteId).subscribe();
105
            }
106
          });
107
          this.createGifs();
108
  }
109

    
110
  public ngOnDestroy() {
111
    if(this.piwiksub){
112
      this.piwiksub.unsubscribe();
113
    }
114
  }
115

    
116
  private createGifs() {
117
    this.first.push({
118
      gif: "../../../../assets/Connect%20animations.gif",
119
      header: "Research Community Dashboard",
120
      text: "This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box."
121
    });
122
    this.first.push({
123
      gif: "../../../../assets/admin-portal.png",
124
      header: "Research Community Dashboard 2",
125
      text: "This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box."
126
    });
127
    this.first.push({
128
      gif: "../../../../assets/banner connect.jpg",
129
      header: "Research Community Dashboard 3",
130
      text: "This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box."
131
    });
132

    
133
    this.second.push({
134
      gif: "../../../../assets/Connect%20animations.gif",
135
      header: "Research Community Dashboard",
136
      text: "This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box."
137
    });
138
    this.second.push({
139
      gif: "../../../../assets/admin-portal.png",
140
      header: "Research Community Dashboard 2",
141
      text: "This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box."
142
    });
143
    this.second.push({
144
      gif: "../../../../assets/banner connect.jpg",
145
      header: "Research Community Dashboard 3",
146
      text: "This is OpenAIRE’s key service for research communities, both established and emerging ones. Our service helps you reach out and engage all your researchers to practice open science out-of-the-box."
147
    });
148
  }
149
}
(2-2/3)