aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/signup/signup.component.html
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-30 16:26:12 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-30 16:26:12 -0400
commit27b2b418cc330e37f5802a81d678dd27259ee1e0 (patch)
tree893231478cb132731546ef7eb6b5c94d0c748091 /ufund-ui/src/app/components/signup/signup.component.html
parente1eb3f16e10042c2539b56d6c2d2e33f07abf7d9 (diff)
parentc6bbb29f42eaea7d0c8aebdb7b95be0287cbf4f9 (diff)
downloadJellySolutions-27b2b418cc330e37f5802a81d678dd27259ee1e0.tar.gz
JellySolutions-27b2b418cc330e37f5802a81d678dd27259ee1e0.tar.bz2
JellySolutions-27b2b418cc330e37f5802a81d678dd27259ee1e0.zip
Merge branch 'main' into css
# Conflicts: # ufund-ui/src/app/app-routing.module.ts # ufund-ui/src/app/app.module.ts # ufund-ui/src/app/components/login/login.component.html
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>