Skip to content

Commit d3592fc

Browse files
committed
Merge branch 'dev' of https://github.com/SoftStackFactory/reboot into 35-register-validation
2 parents fcf0026 + 857cc80 commit d3592fc

12 files changed

Lines changed: 374 additions & 128 deletions

File tree

package-lock.json

Lines changed: 13 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
"@ionic-native/status-bar": "~4.12.0",
2929
"@ionic/pro": "2.0.3",
3030
"@ionic/storage": "2.1.3",
31+
"@types/chart.js": "^2.7.35",
32+
"chart.js": "^2.7.2",
33+
"chartjs-plugin-datalabels": "^0.4.0",
3134
"ionic-angular": "3.9.2",
3235
"ionicons": "3.0.0",
3336
"rxjs": "5.5.11",

src/pages/dashboard/dashboard.html

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ <h1 id="hello" text-center>Hello, Austin!</h1>
2626
<ion-row>
2727
<ion-col>
2828
<ion-card class="cards">
29-
<ion-card-content text-center>
30-
Welcome to the Military and Veteran's "InTransition" Personal Transition Assistant. Your personal guide to a successful transition
29+
<ion-card-content id="welcome" text-center>
30+
Welcome to the Military and Veteran's "InTransition" Personal Transition Assistant. Your personal guide to
31+
a successful transition
3132
from military to civilian life.
3233
</ion-card-content>
3334
</ion-card>
@@ -41,8 +42,10 @@ <h1 id="hello" text-center>Hello, Austin!</h1>
4142
108 Days Until Separation!
4243
</ion-card-header>
4344
<ion-card-content id="separationContent">
44-
You're getting close to your separation day! Are you preparing for the transition? Have you checked the timeline for instructions?
45-
Being informed and prepared will make your transition into civilization easier to see what your next steps are.
45+
You're getting close to your separation day! Are you preparing for the transition? Have you checked the
46+
timeline for instructions?
47+
Being informed and prepared will make your transition into civilization easier to see what your next steps
48+
are.
4649
<br>
4750
<br>
4851
<a id="separationLink">See what's next
@@ -60,7 +63,7 @@ <h1 id="hello" text-center>Hello, Austin!</h1>
6063
Transition Readiness Test
6164
</ion-card-header>
6265
<ion-card-content id="lifeWheelContent">
63-
<img id="lifeWheel" src="../../assets/imgs/LifeBalance.PNG">
66+
<canvas id="canvas" height="28" width="50"></canvas>
6467
</ion-card-content>
6568
</ion-card>
6669
</ion-col>
@@ -77,10 +80,14 @@ <h1 id="hello" text-center>Hello, Austin!</h1>
7780

7881
<ion-card-content id="networkingContent">
7982
<img id="networkingImage" src="../../assets/imgs/Networking.jpg">
80-
<p id="networkingAdvice">People who are truly successful commit themselves continuously to learning and improving themselves. Are you
81-
a 10 - committed to learning as much as you can about life? Are you constantly experiencing new opportunities?
82-
Do you regularly read to learn and grow? Are you open to improving and stretching yourself? The fact that you
83-
are reading this demonstrates a certain level of commitment to develop yourself so you are not a 1 or even
83+
<p id="networkingAdvice">People who are truly successful commit themselves continuously to learning and
84+
improving themselves. Are you
85+
a 10 - committed to learning as much as you can about life? Are you constantly experiencing new
86+
opportunities?
87+
Do you regularly read to learn and grow? Are you open to improving and stretching yourself? The fact that
88+
you
89+
are reading this demonstrates a certain level of commitment to develop yourself so you are not a 1 or
90+
even
8491
a 2.</p>
8592

8693
<br>

src/pages/dashboard/dashboard.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ page-dashboard {
22

33
#hello {
44
font-weight: bold;
5+
font-size: 40px;
6+
}
7+
8+
#welcome {
9+
font-size: 20px;
510
}
611

712
.cards {
@@ -10,16 +15,18 @@ page-dashboard {
1015

1116
.headers {
1217
font-weight: bold;
13-
font-size: 20px;
18+
font-size: 30px;
1419
}
1520

1621
#separationContent {
1722
padding-bottom: 0px;
23+
font-size: 20px;
1824
}
1925

2026
#separationLink {
2127
float: right;
2228
padding-bottom: 10px;
29+
font-size: 20px;
2330
}
2431

2532
.linkIcons {
@@ -53,17 +60,19 @@ page-dashboard {
5360

5461
#networkingImage {
5562
width: 50%;
56-
height: 200px
63+
height: 300px
5764
}
5865

5966
#networkingAdvice {
6067
width: 50%;
68+
font-size: 20px;
6169
padding-left: 20px;
6270
}
6371

6472
#networkingLink {
6573
padding-top: 0px;
6674
position: relative;
6775
top: -7px;
76+
font-size: 20px;
6877
}
6978
}

src/pages/dashboard/dashboard.ts

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import { Component } from '@angular/core';
22
import { NavController, NavParams } from 'ionic-angular';
3+
import { Chart } from 'chart.js';
4+
import 'chartjs-plugin-datalabels';
5+
36

47
/**
5-
* Generated class for the DashboardPage page.
8+
* Generated class for the DashboardPage page.
69
*
710
* See https://ionicframework.com/docs/components/#navigation for more info on
811
* Ionic pages and navigation.
@@ -14,11 +17,64 @@ import { NavController, NavParams } from 'ionic-angular';
1417
})
1518
export class DashboardPage {
1619

20+
chart: any;
21+
1722
constructor(public navCtrl: NavController, public navParams: NavParams) {
1823
}
1924

2025
ionViewDidLoad() {
21-
console.log('ionViewDidLoad DashboardPage');
26+
this.chart = new Chart('canvas', {
27+
type: 'polarArea',
28+
data: {
29+
labels: ["Career", "Finance", "Personal \n Growth", "Health", "Family", "Relationships", "Social life", "Attitude"],
30+
datasets: [
31+
{
32+
backgroundColor: ["rgba(0,0,255, .6)", "rgba(255,0,0, .6)", "rgba(128,0,128, .6)", "rgba(0,128,0, .6)", "rgba(255,165,0, .6)", "rgba(0,128,128, .6)", "rgba(255,0,255, .6)", "rgba(0,255,0, .6)"],
33+
borderColor: "black",
34+
data: [10, 9, 4, 10, 7, 8, 5, 1]
35+
}
36+
]
37+
},
38+
39+
options: {
40+
layout: {
41+
padding: {
42+
top: 50,
43+
bottom: 50
44+
}
45+
},
46+
legend: {
47+
display: false
48+
},
49+
plugins: {
50+
datalabels: {
51+
textAlign: 'center',
52+
anchor: 'start',
53+
align: 'end',
54+
offset: function (context) {
55+
let chart: any = document.getElementById('canvas').getAttribute('width');
56+
return chart / 6 - 110;
57+
},
58+
backgroundColor: function (context) {
59+
return context.dataset.backgroundColor;
60+
},
61+
borderColor: 'black',
62+
rotation: function (context) { if (context.dataIndex === 0 || context.dataIndex === 1 || context.dataIndex === 6 || context.dataIndex === 7) { return 45 / 2 + (45 * context.dataIndex) } else { return 45 / 2 + (45 * context.dataIndex) + 180 } },
63+
borderRadius: 5,
64+
borderWidth: 2,
65+
color: 'black',
66+
font: {
67+
weight: 'bold',
68+
size: '20',
69+
family: 'Lato'
70+
},
71+
formatter: function (value, context) {
72+
return context.chart.data.labels[context.dataIndex] + ' ' + context.chart.data.datasets[0].data[context.dataIndex];
73+
}
74+
}
75+
}
76+
}
77+
});
2278
}
2379

2480
}

src/pages/register/register.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
<ion-content >
1818
<div class="ion-card">
19-
<img src="../../assets/imgs/background.png"/>
2019
<div class="card-title">INTRANSITION</div>
2120
</div>
2221
<div class="message">

0 commit comments

Comments
 (0)