Skip to content

Commit 420450b

Browse files
committed
Init My account page
1 parent 7cceea1 commit 420450b

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

Diff for: apps/mf-account/src/app/app.component.ts

+43-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,50 @@ import { RouterModule } from '@angular/router';
55
standalone: true,
66
imports: [RouterModule],
77
selector: 'nx-nf-root',
8-
template: `My Account`,
8+
template: `
9+
<div class="flex min-h-full flex-col justify-center px-6 py-12 lg:px-8">
10+
<div class="sm:mx-auto sm:w-full sm:max-w-sm">
11+
<h2
12+
class="mt-10 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900"
13+
>
14+
My account
15+
</h2>
16+
</div>
17+
18+
<div class="mt-10 sm:mx-auto sm:w-full sm:max-w-sm p-5 rounded shadow">
19+
<form class="space-y-6" action="#" method="POST">
20+
<div>
21+
<label
22+
for="email"
23+
class="block text-sm font-medium leading-6 text-gray-900"
24+
>Email address</label
25+
>
26+
<div class="mt-2">
27+
{{ email }}
28+
</div>
29+
</div>
30+
31+
<div>
32+
<div class="flex items-center justify-between">
33+
<label
34+
for="password"
35+
class="block text-sm font-medium leading-6 text-gray-900"
36+
>Password</label
37+
>
38+
</div>
39+
<div class="mt-2">
40+
{{ password }}
41+
</div>
42+
</div>
43+
44+
<div></div>
45+
</form>
46+
</div>
47+
</div>
48+
`,
949
styles: ``,
1050
})
1151
export class AppComponent {
12-
title = 'mf-account';
52+
email = '[email protected]';
53+
password = 'qwerty';
1354
}

Diff for: apps/mf-login/src/app/app.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { FormsModule } from '@angular/forms';
1616
</h2>
1717
</div>
1818
19-
<div class="mt-10 sm:mx-auto sm:w-full sm:max-w-sm">
19+
<div class="mt-10 sm:mx-auto sm:w-full sm:max-w-sm p-5 rounded shadow">
2020
<form class="space-y-6" action="#" method="POST">
2121
<div>
2222
<label
@@ -53,7 +53,7 @@ import { FormsModule } from '@angular/forms';
5353
required
5454
autocomplete="false"
5555
class="block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
56-
[ngModel]="email"
56+
[ngModel]="password"
5757
/>
5858
</div>
5959
</div>

0 commit comments

Comments
 (0)