Skip to content

Commit 0df9795

Browse files
author
Balashov Nikita
committed
authorization-page
1 parent 301bd18 commit 0df9795

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
</div>
22+
`;
23+
}
24+
}
25+
26+
export {AuthorizationPage};

0 commit comments

Comments
 (0)