aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/signup/signup.component.html
diff options
context:
space:
mode:
authorTyler Ferrari <69283684+Sowgro@users.noreply.github.com>2025-03-30 14:12:41 -0400
committerGitHub <noreply@github.com>2025-03-30 14:12:41 -0400
commit0c793d302c5065085ff7982a68f7ed449d84d6dc (patch)
treefbbf2c808300c395caddccb0a929c7500453be84 /ufund-ui/src/app/components/signup/signup.component.html
parentddbd1cc688aa98fb275ad72a750fbaaf53e6c0ae (diff)
parent3c9a9004780c0b91772fd7f868c642bdadb60348 (diff)
downloadJellySolutions-0c793d302c5065085ff7982a68f7ed449d84d6dc.tar.gz
JellySolutions-0c793d302c5065085ff7982a68f7ed449d84d6dc.tar.bz2
JellySolutions-0c793d302c5065085ff7982a68f7ed449d84d6dc.zip
Merge pull request #19 from RIT-SWEN-261-02/signup-page
signup-page merge
Diffstat (limited to 'ufund-ui/src/app/components/signup/signup.component.html')
-rw-r--r--ufund-ui/src/app/components/signup/signup.component.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/ufund-ui/src/app/components/signup/signup.component.html b/ufund-ui/src/app/components/signup/signup.component.html
new file mode 100644
index 0000000..ebedc2a
--- /dev/null
+++ b/ufund-ui/src/app/components/signup/signup.component.html
@@ -0,0 +1,26 @@
+<p>Signup:</p>
+<div>
+ <input placeholder="Username" type="text" (input)="validate(username.value, confirmPass.value, password.value)" #username>
+ <span *ngIf="usernameStatusText">{{usernameStatusText | async}}</span>
+</div>
+
+<div>
+ <input placeholder="Password" type="password" (input)="validate(username.value, confirmPass.value, password.value)" #password>
+ <progress [ngClass]="'color' + strength.getValue()" id="bar" [value]="strength | async" max="6"> </progress>
+ <span *ngIf="passwordStatusText">{{passwordStatusText | async}}</span>
+
+ <span *ngFor="let requirement of Object.values(passwordRequirements)">
+ <span *ngIf="passwordRequirements" [style.color]="requirement.value ? 'green' : 'red'"> {{requirement.title}} </span>
+ </span>
+</div>
+
+<div>
+ <input placeholder="Confirm password" type="password" (input)="validate(username.value, confirmPass.value, password.value)" #confirmPass>
+ <span *ngIf="confirmPassStatusText">{{confirmPassStatusText | async}}</span>
+</div>
+
+<div>
+ <button [disabled]="!(ableToCreateAccount | async)" (click)="signup(username.value, password.value)">Create Account</button>
+ <span *ngIf="showSuccessMessage | async">Account created <a routerLink="/login">Proceed to login</a></span>
+ <span *ngIf="statusText | async">{{statusText | async}}</span>
+</div>