Skip to content
Snippets Groups Projects
Commit 56d9122e authored by Hagen Dreßler's avatar Hagen Dreßler
Browse files

Edit html component feedback-barometer (add bars, mat-card)

parent e6aea7d9
No related merge requests found
<div fxLayout="row" fxLayoutGap="20px" fxLayoutAlign="center">
<mat-card>
<div class="evaluation" *ngFor="let opinion of feedback">
<mat-progress-bar [value]="opinion.count" color="primary">
</mat-progress-bar>
</div>
<div fxLayoutAlign="center">
<button mat-raised-button color="primary" fxLayoutAlign="center">Toggle voting</button>
</div>
</mat-card>
</div>
mat-card {
max-width: 800px;
width: 100%;
}
mat-progress-bar {
height: 50px;
margin-bottom: 20px;
}
h2 {
margin-top: 10px;
margin-bottom: 25px;
}
......@@ -6,6 +6,12 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./feedback-barometer-page.component.scss']
})
export class FeedbackBarometerPageComponent implements OnInit {
feedback: any = [
{ state: 'good', count: 0, },
{ state: 'ok', count: 0, },
{ state: 'not ok', count: 0, },
{ state: 'bad', count: 0, },
];
constructor() { }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment