diff options
| author | Tyler Ferrari <69283684+Sowgro@users.noreply.github.com> | 2025-04-01 02:17:25 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-01 02:17:25 -0400 | 
| commit | 233fe120d2a9b30e0150401ebdfeb946dc9c2c07 (patch) | |
| tree | 98583e1b1d21d1a0cc57e8ff3489fbbf758eccff /ufund-ui/src/app/components/signup/signup.component.html | |
| parent | c6bbb29f42eaea7d0c8aebdb7b95be0287cbf4f9 (diff) | |
| parent | 0e9c0803e35a23ef2e873dc7ebf224a49a92f207 (diff) | |
| download | JellySolutions-233fe120d2a9b30e0150401ebdfeb946dc9c2c07.tar.gz JellySolutions-233fe120d2a9b30e0150401ebdfeb946dc9c2c07.tar.bz2 JellySolutions-233fe120d2a9b30e0150401ebdfeb946dc9c2c07.zip  | |
Merge pull request #22 from RIT-SWEN-261-02/css
Merge css into main
Diffstat (limited to 'ufund-ui/src/app/components/signup/signup.component.html')
| -rw-r--r-- | ufund-ui/src/app/components/signup/signup.component.html | 47 | 
1 files changed, 26 insertions, 21 deletions
diff --git a/ufund-ui/src/app/components/signup/signup.component.html b/ufund-ui/src/app/components/signup/signup.component.html index ebedc2a..bc3aaf0 100644 --- a/ufund-ui/src/app/components/signup/signup.component.html +++ b/ufund-ui/src/app/components/signup/signup.component.html @@ -1,26 +1,31 @@ -<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 id="box"> +    <h1>Create an account</h1> +    <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> +    <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> +        </div> -    <span *ngFor="let requirement of Object.values(passwordRequirements)"> -        <span *ngIf="passwordRequirements" [style.color]="requirement.value ? 'green' : 'red'"> {{requirement.title}} </span> -    </span> -</div> +        <div id="passReq"> +            <span *ngFor="let requirement of Object.values(passwordRequirements)" [style.color]="requirement.value ? 'green' : 'red'"><span class="icon">{{requirement.value?"check":"close"}}</span> {{requirement.title}}</span> +        </div> +    </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> +        <input placeholder="Confirm password" type="password" (input)="validate(username.value, confirmPass.value, password.value)" #confirmPass> +        <span [style.color]="(passwordsMatch|async) ? 'green' : 'red'" *ngIf="passwordsMatch"><span class="icon">{{(passwordsMatch|async)?"check":"close"}}</span> Passwords match</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> +        <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> +    <span>Already have an account? <a routerLink="/login">Log in</a></span>  </div>  | 
