Skip to content

Commit 13e05d2

Browse files
committed
17 Add Redirect Handling to Log In or Create New Account CTA
1 parent 7680bdb commit 13e05d2

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

complete-application/src/app/home-page/home-page.component.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
<div class="content-container">
33
<div style="margin-bottom: 100px;">
44
<h1>Welcome to Changebank</h1>
5-
<p>To get started, <a (click)="login()" style="cursor: pointer">log in or create a new account</a>.</p>
5+
<p>To get started,
6+
<button class="button-redirect" (click)="login()" style="cursor: pointer">log in</button>
7+
or
8+
<button class="button-redirect" (click)="register()" style="cursor: pointer">create a new account.</button>
9+
</p>
610
</div>
711
</div>
812
<div style="flex: 0;">

complete-application/src/app/home-page/home-page.component.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@ export class HomePageComponent {
1616
login() {
1717
this.fusionAuthService.startLogin();
1818
}
19+
register() {
20+
this.fusionAuthService.startRegistration();
21+
}
1922
}

complete-application/src/styles.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,12 @@ body {
152152
.change-container {
153153
flex: 1;
154154
}
155+
156+
.button-redirect {
157+
background: none;
158+
border: none;
159+
color: #096324;
160+
font-size: 18px;
161+
font-family: sans-serif;
162+
padding: 0;
163+
}

0 commit comments

Comments
 (0)