diff --git a/.gitignore b/.gitignore index fea2e958..1d152ef4 100644 --- a/.gitignore +++ b/.gitignore @@ -615,5 +615,3 @@ GitHub.sublime-settings config.codekit config.codekit3 /min - -/src/environments/environment.dev.ts diff --git a/README.md b/README.md index f810bf03..d15bb675 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![Waffle.io - Columns and their card count](https://badge.waffle.io/SoftStackFactory/reboot.svg?columns=all)](https://waffle.io/SoftStackFactory/reboot) ![Travis CI Status](https://travis-ci.org/SoftStackFactory/reboot.svg?branch=master "Travis CI Status") diff --git a/package-lock.json b/package-lock.json index 87872d0b..664ee8be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2943,7 +2943,8 @@ }, "ansi-regex": { "version": "2.1.1", - "bundled": true + "bundled": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -2955,8 +2956,8 @@ "bundled": true, "optional": true, "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" } }, "balanced-match": { @@ -2969,7 +2970,7 @@ "bundled": true, "optional": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -3026,7 +3027,7 @@ "bundled": true, "optional": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "fs.realpath": { @@ -3039,14 +3040,14 @@ "bundled": true, "optional": true, "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" } }, "glob": { @@ -3054,12 +3055,12 @@ "bundled": true, "optional": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "has-unicode": { @@ -3072,7 +3073,7 @@ "bundled": true, "optional": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": "^2.1.0" } }, "ignore-walk": { @@ -3080,7 +3081,7 @@ "bundled": true, "optional": true, "requires": { - "minimatch": "3.0.4" + "minimatch": "^3.0.4" } }, "inflight": { @@ -3088,8 +3089,8 @@ "bundled": true, "optional": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -3107,7 +3108,7 @@ "bundled": true, "optional": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "isarray": { @@ -3120,7 +3121,7 @@ "bundled": true, "optional": true, "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -3133,8 +3134,8 @@ "bundled": true, "optional": true, "requires": { - "safe-buffer": "5.1.1", - "yallist": "3.0.2" + "safe-buffer": "^5.1.1", + "yallist": "^3.0.0" } }, "minizlib": { @@ -3142,7 +3143,7 @@ "bundled": true, "optional": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "mkdirp": { @@ -3163,9 +3164,9 @@ "bundled": true, "optional": true, "requires": { - "debug": "2.6.9", - "iconv-lite": "0.4.21", - "sax": "1.2.4" + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" } }, "node-pre-gyp": { @@ -3173,16 +3174,16 @@ "bundled": true, "optional": true, "requires": { - "detect-libc": "1.0.3", - "mkdirp": "0.5.1", - "needle": "2.2.0", - "nopt": "4.0.1", - "npm-packlist": "1.1.10", - "npmlog": "4.1.2", - "rc": "1.2.7", - "rimraf": "2.6.2", - "semver": "5.5.0", - "tar": "4.4.1" + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.0", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.1.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" } }, "nopt": { @@ -3190,8 +3191,8 @@ "bundled": true, "optional": true, "requires": { - "abbrev": "1.1.1", - "osenv": "0.1.5" + "abbrev": "1", + "osenv": "^0.1.4" } }, "npm-bundled": { @@ -3204,8 +3205,8 @@ "bundled": true, "optional": true, "requires": { - "ignore-walk": "3.0.1", - "npm-bundled": "1.0.3" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" } }, "npmlog": { @@ -3213,10 +3214,10 @@ "bundled": true, "optional": true, "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "number-is-nan": { @@ -3234,7 +3235,7 @@ "bundled": true, "optional": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "os-homedir": { @@ -3252,8 +3253,8 @@ "bundled": true, "optional": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "path-is-absolute": { @@ -3271,10 +3272,10 @@ "bundled": true, "optional": true, "requires": { - "deep-extend": "0.5.1", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.5.1", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, "dependencies": { "minimist": { @@ -3289,13 +3290,13 @@ "bundled": true, "optional": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "rimraf": { @@ -3303,12 +3304,13 @@ "bundled": true, "optional": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "safe-buffer": { "version": "5.1.1", - "bundled": true + "bundled": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -3340,9 +3342,9 @@ "bundled": true, "optional": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "string_decoder": { @@ -3350,14 +3352,15 @@ "bundled": true, "optional": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "strip-ansi": { "version": "3.0.1", "bundled": true, + "optional": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-json-comments": { @@ -3370,13 +3373,13 @@ "bundled": true, "optional": true, "requires": { - "chownr": "1.0.1", - "fs-minipass": "1.2.5", - "minipass": "2.2.4", - "minizlib": "1.1.0", - "mkdirp": "0.5.1", - "safe-buffer": "5.1.1", - "yallist": "3.0.2" + "chownr": "^1.0.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.2.4", + "minizlib": "^1.1.0", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.1", + "yallist": "^3.0.2" } }, "util-deprecate": { @@ -3389,16 +3392,18 @@ "bundled": true, "optional": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2" } }, "wrappy": { "version": "1.0.2", - "bundled": true + "bundled": true, + "optional": true }, "yallist": { "version": "3.0.2", - "bundled": true + "bundled": true, + "optional": true } } }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 27f21b47..955bf3a9 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -40,6 +40,7 @@ import { ActionItemProvider } from '../providers/action-item/action-item'; import { ProgressBarComponent } from '../components/progress-bar/progress-bar'; import { TimelineProvider } from '../providers/timeline/timeline'; import { StyleGuidePage } from '../pages/style-guide/style-guide'; +import { WarningMeterComponent } from '../components/warning-meter/warning-meter'; const Pages = [ @@ -58,7 +59,8 @@ const Pages = [ NewsPage, ChartComponent, ResourcesPage, - StyleGuidePage + StyleGuidePage, + WarningMeterComponent ] @NgModule({ @@ -69,7 +71,8 @@ const Pages = [ NewsWidgetComponent, TimelineComponent, ResourcesPage, - ProgressBarComponent + ProgressBarComponent, + WarningMeterComponent ], imports: [ BrowserModule, diff --git a/src/app/app.scss b/src/app/app.scss index 692fe216..0bb28aaa 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -14,6 +14,7 @@ } .alert-message{ font-size: 20px; + overflow-y: auto; } @media screen and (min-width: 765px) { diff --git a/src/assets/imgs/assessment3.png b/src/assets/imgs/assessment3.png new file mode 100644 index 00000000..bba2f711 Binary files /dev/null and b/src/assets/imgs/assessment3.png differ diff --git a/src/assets/imgs/dashboard5.png b/src/assets/imgs/dashboard5.png new file mode 100644 index 00000000..c6cb264d Binary files /dev/null and b/src/assets/imgs/dashboard5.png differ diff --git a/src/assets/imgs/newTimeline.png b/src/assets/imgs/newTimeline.png deleted file mode 100644 index 5b6678c2..00000000 Binary files a/src/assets/imgs/newTimeline.png and /dev/null differ diff --git a/src/assets/imgs/newTimeline2.png b/src/assets/imgs/newTimeline2.png new file mode 100644 index 00000000..0dc718ae Binary files /dev/null and b/src/assets/imgs/newTimeline2.png differ diff --git a/src/components/components.module.ts b/src/components/components.module.ts new file mode 100644 index 00000000..bdee2f43 --- /dev/null +++ b/src/components/components.module.ts @@ -0,0 +1,10 @@ +import { NgModule } from '@angular/core'; +import { WarningMeterComponent } from './warning-meter/warning-meter'; +@NgModule({ + declarations: [ + WarningMeterComponent], + imports: [], + exports: [ + WarningMeterComponent] +}) +export class ComponentsModule {} diff --git a/src/components/warning-meter/warning-meter.html b/src/components/warning-meter/warning-meter.html new file mode 100644 index 00000000..668d344f --- /dev/null +++ b/src/components/warning-meter/warning-meter.html @@ -0,0 +1,98 @@ + +
+ {{ this.name }}, please refer to the link below to take your first assessment. +
+ +
+
+ Good +
+
+ Weak +
+
+ Poor +
+
+ Danger +
+
+ +
+
+

To find out which range you fall within

+ +
+ +
+

GOOD

+

Being in the green means orem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Why assessments are important

+
+

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Take another assessment

+
+ +
+

Weak

+

Being in the yellow means lorem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Why assessments are important

+
+

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Take another assessment

+
+ +
+

Poor

+

Being in the orange means lorem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Why assessments are important

+
+

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Take another assessment

+
+ +
+

Danger

+

Being in the red means lorem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Why assessments are important

+
+

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria + complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit + latine, bonorum perfecto no nam.

+
+

Take another assessment

+
+
+ + + + + + + diff --git a/src/components/warning-meter/warning-meter.scss b/src/components/warning-meter/warning-meter.scss new file mode 100644 index 00000000..a6dd2926 --- /dev/null +++ b/src/components/warning-meter/warning-meter.scss @@ -0,0 +1,232 @@ +warning-meter { + .headers { + font-weight: bold; + font-size: 26px; + padding: 16px; + font-size: 24px; + color: #2a3d4fb3; + } + + .warningMeter { + display: flex; + justify-content: center; + margin-top: 2em; + align-items: center; + align-content: center; + padding: 0 3em 0 3em; + } + + .box { + height: 125px; + width: 80px; + border-radius: 5px; + display: flex; + align-items: center; + justify-content: center; + flex-basis: 15rem; + } + + .good { + background-color: green; + } + + .weak { + background-color: yellow; + } + + .poor { + background-color: orange; + } + + .danger { + background-color: red; + } + + .range { + text-align: center; + font-weight: bold; + padding-top: 5px; + } + + .grow { + height: 150px; + flex-basis: 25rem; + padding: 0; + font-size: 30px; + text-decoration: underline; + border-radius: 10px; + } + + .zoneWrapper { + display: flex; + justify-content: center; + margin-top: 40px; + } + + .conditionP { + font-size: 16px; + background-color: transparent; + } + + .card-md p { + font-size: 1.6em; + } + + .assessmentButton { + font-weight: bold; + font-size: 1.6em; + background-color: transparent; + color: #488aff; + } + + .assessmentConditionMetButton { + font-size: 1em; + background-color: transparent; + color: #488aff; + } + + .whyTakeAssessmentHeader { + font-weight: bold; + text-decoration: underline; + } + + .headerWrapper { + text-align: center; + padding: 0px 40px 10px 40px; + } + + .ifUndefined { + text-align: center; + } + + .zoneExHeader { + font-size: 26px; + font-weight: bold; + letter-spacing: 1px; + } + + .greenHeader { + color: green; + } + + .yellowHeader { + color: yellow + } + + .orangeHeader { + color: orange; + } + + .redHeader { + color: red; + } + + .zoneDescription { + margin-top: 15px; + line-height: 1.5; + } + + .graphDescriptionWrapper { + text-align: center; + } + + + button:hover { + color: #8eafe8; + } + + + + .item-md [item-end]{ + margin: 0; + } + + .button-md { + font-size: 18px; + } + + .card-ios p { + color: black; + font-size: 18px; + } + +/* Mobile Styles */ +@media only screen and (max-width: 400px) { + + .headers { + font-size: 18px; + } + + .headerWrapper { + padding: 0px 20px 0px 20px; + } + + .warningMeter { + margin-top: 1em; + padding: 0 1.5em 0 1.5em; + } + + .zoneExHeader { + font-size: 22px; + } + + .box { + height: 75px; + width: 30px; + flex-basis: 20rem; + font-size: 18px; + } + + .grow { + height: 100px; + flex-basis: 30rem; + padding: 0; + font-size: 30px; + } + + .card-md p { + font-size: 1em; + } + + +} + +/* Tablet Styles */ +@media only screen and (min-width: 401px) and (max-width: 960px) { + + .headers { + font-size: 18px; + } + + .warningMeter { + margin-top: 1em; + padding: 0 1.5em 0 1.5em; + } + + .box { + height: 75px; + width: 30px; + flex-basis: 20rem; + } + + .zoneExHeader { + font-size: 22px; + } + + .card-md p { + font-size: 1em; + } + + .grow { + height: 100px; + flex-basis: 30rem; + padding: 0; + } + + .headerWrapper { + padding: 0px 15px 0px 15px; + } + +} +} + diff --git a/src/components/warning-meter/warning-meter.ts b/src/components/warning-meter/warning-meter.ts new file mode 100644 index 00000000..251a0a36 --- /dev/null +++ b/src/components/warning-meter/warning-meter.ts @@ -0,0 +1,18 @@ +import { Component } from '@angular/core'; +import { UserProvider } from '../../providers/user/user'; + + +@Component({ + selector: 'warning-meter', + templateUrl: 'warning-meter.html' +}) +export class WarningMeterComponent { + + text: string; + + constructor(public user: UserProvider) { + console.log('Hello WarningMeterComponent Component'); + this.text = 'Hello World'; + } + +} diff --git a/src/environments/environment.dev.ts b/src/environments/environment.dev.ts new file mode 100644 index 00000000..c0612633 --- /dev/null +++ b/src/environments/environment.dev.ts @@ -0,0 +1,4 @@ +export const ENV = { + mode: 'Development', + url: 'https://reboot-loopback.herokuapp.com/api/' + } \ No newline at end of file diff --git a/src/pages/dashboard/dashboard.html b/src/pages/dashboard/dashboard.html index 51695203..9546a46b 100644 --- a/src/pages/dashboard/dashboard.html +++ b/src/pages/dashboard/dashboard.html @@ -28,119 +28,27 @@ - -
- {{ this.name }}, please refer to the link below to take your first assessment. -
- -
- {{ this.name }}, it's been {{assessDate}} days since your last assessment. -
- -
-
-

1-6

-
-
-

7-11

-
-
-

12-20

-
-
-

20+

-
-
- - -
-
-

To find out which range you fall within

- -
- -
-

GREEN

-

Being in the green means orem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Why assessments are important

-
-

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Take another assessment

-
- -
-

YELLOW

-

Being in the yellow means lorem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Why assessments are important

-
-

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Take another assessment

-
- -
-

ORANGE

-

Being in the orange means lorem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Why assessments are important

-
-

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Take another assessment

-
- -
-

RED

-

Being in the red means lorem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Why assessments are important

-
-

Assessments are a vital part of the process... lorem ipsum dolor sit amet, id nec voluptaria - complectitur concludaturque, iuvaret deleniti mea ne, mea in tractatos instructior. Per id tollit - latine, bonorum perfecto no nam.

-
-

Take another assessment

-
- + + + Assessment Status + +
+ {{ this.name }}, it's been {{user.assessDate}} days since your last assessment.
- + - -
- - + + Build Your Network @@ -176,17 +84,17 @@

RED

-
+
- - + + Veterans Affairs News -
+