forked from ubik23/charactercreator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bracelet and alt for images in credits page.
- Loading branch information
Showing
14 changed files
with
471 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<div class="inner"> | ||
<div class="introduction"> | ||
<p i18n> | ||
Tout est une question d’équilibre. Quand les revenus sont suffisants pour financer les dépenses, c’est plutôt bon signe. | ||
Lorsque c’est l’inverse, il faut songer à dépenser moins ou à emprunter. Les revenus de l’État sont générés par l’impôt | ||
des particuliers et ceux des sociétés, les taxes à la consommation, des recettes provenant de ses entreprises, des | ||
transferts fédéraux ainsi que par d’autres formes de revenu. | ||
</p> | ||
</div> | ||
|
||
<header> | ||
<h3 i18n>Étape 2 : Décidez des revenus de l’État</h3> | ||
<p i18n>Sélectionnez une source de revenu et déplacez le curseur pour augmenter ou diminuer les gains.</p> | ||
</header> | ||
|
||
<div class="revenue" *ngFor="let budgetItem of data.revenue"> | ||
<app-budget-item [budgetItem]="budgetItem" [type]="type"></app-budget-item> | ||
</div> | ||
|
||
<div class="total"> | ||
<p *ngIf="totalRevenueDifference <= -0.05" i18n> | ||
Vos choix représentent une diminution de | ||
<span>{{ - totalRevenueDifference | number: '1.1-1' }} G$</span> des revenus. | ||
</p> | ||
<p *ngIf="totalRevenueDifference >= 0.05" i18n> | ||
Vos choix représentent une augmentation de | ||
<span>{{ totalRevenueDifference | number: '1.1-1' }} G$</span> des revenus. | ||
</p> | ||
</div> | ||
|
||
<div class="navigation"> | ||
<a routerLink="/simulation/expenditure" i18n>Précédent</a> | ||
<a routerLink="/simulation/conclusion" i18n>Suivant</a> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
::ng-deep div.revenue { | ||
|
||
app-slider.actual { | ||
div.bar { | ||
background-color: #009982; | ||
} | ||
span.label, span.value { | ||
color: #009982; | ||
} | ||
} | ||
|
||
app-slider.simulation { | ||
& .container { | ||
div.bar { | ||
background-color: #00665a; | ||
transition: background-color 1s ease; | ||
} | ||
&.pan-active div.bar { | ||
background-color: #23978a; | ||
transition: background-color 1s ease; | ||
} | ||
} | ||
span.label, span.value { | ||
color: #00665a; | ||
} | ||
} | ||
|
||
div.loupe button { | ||
color: #004c4a; | ||
} | ||
|
||
div.tiroir { | ||
background-color: #004c4a; | ||
} | ||
|
||
div.poste { | ||
padding: 20px 30px; | ||
h4 { | ||
color: #009982; | ||
} | ||
} | ||
|
||
} | ||
|
||
div.total p { | ||
background-color: #c5f2eb; | ||
color: lighten(#00665a, 5%); | ||
font-family: 'Roboto'; | ||
font-size: 22px / 16px * 1rem; | ||
font-weight: 500; | ||
margin: 2em 0; | ||
padding: 1em 1em; | ||
|
||
span { | ||
color: #00665a; | ||
font-size: 26px / 16px * 1rem; | ||
font-weight: 700; | ||
} | ||
} | ||
|
||
header { | ||
background-color: white; | ||
|
||
& h3 { | ||
color: #00665a; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { RevenueComponent } from './revenue.component'; | ||
|
||
describe('RevenueComponent', () => { | ||
let component: RevenueComponent; | ||
let fixture: ComponentFixture<RevenueComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ RevenueComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(RevenueComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { DataService } from '../data.service'; | ||
import { PlatformLocation } from '@angular/common'; | ||
import { BudgetItemType } from '../budget-item/budget-item.component'; | ||
|
||
@Component({ | ||
selector: 'app-revenue', | ||
templateUrl: './revenue.component.html', | ||
styleUrls: ['./revenue.component.scss'] | ||
}) | ||
export class RevenueComponent implements OnInit { | ||
|
||
data: any; | ||
type: BudgetItemType; | ||
public totalRevenueDifference = 0; | ||
|
||
constructor( | ||
private dataService: DataService, | ||
public platformLocation: PlatformLocation, | ||
) { } | ||
|
||
ngOnInit() { | ||
this.data = this.dataService.getData(); | ||
this.type = BudgetItemType.Revenue; | ||
|
||
this.dataService.totalRevenueDifference.subscribe({ | ||
next: (totalRevenueDifference) => { | ||
this.totalRevenueDifference = totalRevenueDifference; | ||
} | ||
}); | ||
} | ||
|
||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.