We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91b66ce commit faef93aCopy full SHA for faef93a
phone-book/src/authorization-page/authorization-page.js
@@ -0,0 +1,26 @@
1
+class AuthorizationPage{
2
+ constructor() {
3
+ this.setStateAuthorization = () => {
4
+ const {setState} = store;
5
+ const initializeState = {
6
+ stateName: 'AUTHORIZATION',
7
+ activePage: this.render(),
8
+ };
9
+ setState(initializeState);
10
+ }
11
12
+
13
+ render() {
14
+ return /*html*/`
15
+ <div class="authorization-block">
16
+ <h1 class="au-title">Authorization</h1>
17
+ <div class="wraper-for-authorization-inputs">
18
+ <input class="au-input" type="text" placeholder="Login">
19
+ <button id="log-in" class="au-btn btn btn-primary">Log in</button>
20
+ </div>
21
22
+ `;
23
24
+}
25
26
+export {AuthorizationPage};
0 commit comments