Skip to content

Commit

Permalink
worked on issues raised in the feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
OchiengPaul442 committed Jan 18, 2024
1 parent 47e1ded commit d8c487d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@
display: flex;
flex-direction: column;
justify-content: flex-start;
margin-bottom: 1.2rem;

h2 {
h3 {
margin: 0 0 0.5rem 0;
padding: 0;
font-size: 1rem;
color: #000;
}

.summary-list {
Expand All @@ -19,11 +15,16 @@
align-items: flex-start;

p {
display: flex;
flex-direction: row;
align-items: center;
margin: 0;
padding: 0;
font-size: 1rem;
font-weight: 400;
color: #000;

.mat-icon {
font-size: 1.2rem;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@ import { Component, Input, OnInit } from '@angular/core';
selector: 'budget-summary',
template: `
<div class="summary-container">
<h2>Details</h2>
<h3>Details</h3>
<div class="summary-list">
<p matTooltip="Total Family Labour Hours">
TFLH: <b>{{ totalFamilyLabourHours }}</b>
<mat-icon>groups</mat-icon>: <b>{{ totalFamilyLabourHours }}</b>
</p>
<p matTooltip="Total Inputs Value">
TIV: <b>{{ totalInputsValue }}</b>
<mat-icon>receipt</mat-icon> : <b>{{ totalInputsValue }}</b>
</p>
<p matTooltip="Total Outputs Value">
TOV: <b>{{ totalOutputsValue }}</b>
<mat-icon>monetization_on</mat-icon>: <b>{{ totalOutputsValue }}</b>
</p>
<p matTooltip="Total Produce Consumed">
TPC: <b>{{ totalProduceConsumed }}</b>
<mat-icon>restaurant_menu</mat-icon>
: <b>{{ totalProduceConsumed }}</b>
</p>
<p matTooltip="Final Cash Balance">
FCB: <b>{{ finalCashBalance }}</b>
<mat-icon>account_balance_wallet</mat-icon>: <b>{{ finalCashBalance }}</b>
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { BudgetShareDialogComponent } from './share-dialog/share-dialog.componen
import { BudgetPeriodSummaryComponent } from './summary/period-summary';
import { BudgetTableComponent } from './table/budget-table';
import { BudgetSummaryComponent } from './budget-summary/budget-summary.component';
import { MatIconModule } from '@angular/material/icon';

const components = [
BudgetBalanceLegendComponent,
Expand Down Expand Up @@ -69,6 +70,7 @@ const components = [
PicsaDbModule,
RouterModule,
MatTooltipModule,
MatIconModule,
],
exports: components,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<div style="flex: 1; position: relative">
<mat-card-title>{{ budget.meta.title }}</mat-card-title>
<mat-card-content>{{ budget.meta.description }}</mat-card-content>
<budget-summary [budgetData]="budget"></budget-summary>
<budget-summary [budgetData]="budget" style="margin-bottom: 1.2rem"></budget-summary>
<mat-card-subtitle style="position: absolute; bottom: 0; right: 0"
>{{ budget._created | date }}</mat-card-subtitle
>
Expand Down

0 comments on commit d8c487d

Please sign in to comment.