This repository has been archived by the owner on May 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
53 lines (51 loc) · 1.74 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Your friends</title>
<link rel="stylesheet" href="css/app.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script defer src="https://vk.com/js/api/openapi.js?136"></script>
<script defer src="js/app.js"></script>
</head>
<body class="state-loading">
<h1 class="header">You and your friends</h1>
<div class="wrapper">
<div class="loading">
<div class="loader">
<svg class="circular" viewBox="25 25 50 50">
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"/>
</svg>
</div>
</div>
<div class="login">
<button class="login__button js-login">
Login
</button>
</div>
<div class="error">
<div class="error__message">You are not authenticated</div>
</div>
<div class="success">
<div class="user-info js-user-info">
</div>
<ul class="friends-list js-friends-list">
</ul>
</div>
</div>
<script type="text/template" id="friend-template">
<li class="friends-list__item">
<div class="user-card">
<div class="user-card__photo-box"><img class="user-card__photo" src="%photo_100%" alt="%last_name% %first_name%"></div>
<div class="user-card__name">%last_name% %first_name%</div>
</div>
</li>
</script>
<script type="text/template" id="user-template">
<div class="user-card">
<div class="user-card__photo-box"><img class="user-card__photo" src="%photo_100%" alt="%last_name% %first_name%"></div>
<div class="user-card__name">%last_name% "%nickname%" %first_name%</div>
</div>
</script>
</body>
</html>