homepage minor changes

This commit is contained in:
annampak 2017-12-20 16:11:41 +02:00
parent 013e0916f5
commit 5b4d345483
3 changed files with 19 additions and 8 deletions

View File

@ -23,9 +23,9 @@
</div>
<h3 class="card-title">{{dashboardStatisticsData.totalProjectCount}}</h3>
<p class="card-description text-center">
This is good if your company size is between 2 and 10 Persons.
OpenAIRE projects
</p>
<button md-raised-button class="btn btn-rose btn-round">OPEN PROJECTS</button>
<button md-raised-button class="btn btn-rose btn-round" [routerLink]=" ['/projects'] ">OPEN PROJECTS</button>
</div>
</div>
<div class="col-md-4 page-title">
@ -36,9 +36,9 @@
</div>
<h3 class="card-title">{{dashboardStatisticsData.totalDataManagementPlanCount}}</h3>
<p class="card-description text-center">
This is good if your company size is between 2 and 10 Persons.
My DMPs
</p>
<button md-raised-button class="btn btn-rose btn-round">OPEN DMPs</button>
<button md-raised-button class="btn btn-rose btn-round" [routerLink]=" ['/dmps'] ">OPEN DMPs</button>
</div>
</div>
<div class="col-md-4 page-title">
@ -49,9 +49,9 @@
</div>
<h3 class="card-title">{{dashboardStatisticsData.totalDataSetCount}}</h3>
<p class="card-description text-center">
This is good if your company size is between 2 and 10 Persons.
My Datasets
</p>
<button md-raised-button class="btn btn-rose btn-round">OPEN DATASETS</button>
<button md-raised-button class="btn btn-rose btn-round" [routerLink]=" ['/datasets'] ">OPEN DATASETS</button>
</div>
</div>
</div>
@ -68,6 +68,7 @@
headerIcon="list"
category="Projects"
footContent="open projects"
routelLink= '/projects'
footerIcon="open_in_new"
linearColor="linear-gradient(60deg, #ffa726, #fb8c00)"
boxShadow="0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(255, 152, 0, 0.4)">
@ -79,6 +80,7 @@
headerIcon="mode_edit"
category="DMPs"
footContent="open DMPs"
routelLink= '/dmps'
footerIcon="open_in_new"
linearColor="linear-gradient(60deg, #ef5350, #e53935)"
boxShadow="0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(244, 67, 54, 0.4)">
@ -90,6 +92,7 @@
headerIcon="subject"
category="Datasets"
footContent="open datasets"
routelLink= '/datasets'
footerIcon="open_in_new"
linearColor="linear-gradient(60deg, #26c6da, #00acc1)"
boxShadow="0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(0, 188, 212, 0.4)">

View File

@ -7,7 +7,7 @@
<h3 class="title">{{ title }}</h3>
</div>
<div class="card-footer">
<a style="cursor:pointer;"><i class="material-icons text-danger">{{ footerIcon }}</i> {{ footContent }}</a>
<a style="cursor:pointer;" (click)= "navigateToUrl()"><i class="material-icons text-danger">{{ footerIcon }}</i> {{ footContent }}</a>
</div>
</div>

View File

@ -1,4 +1,5 @@
import { Component, OnInit, Input } from '@angular/core';
import { Router } from '@angular/router';
@Component({
selector: 'app-figurecard',
@ -13,9 +14,16 @@ export class FigurecardComponent implements OnInit {
@Input() footContent: string;
@Input() linearColor: string;
@Input() boxShadow: string;
constructor() { }
@Input() routelLink: string;
constructor(private router:Router) { }
ngOnInit() {
}
navigateToUrl(){
this.router.navigate([this.routelLink]);
}
}