-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaccount.html
More file actions
211 lines (205 loc) · 10.5 KB
/
account.html
File metadata and controls
211 lines (205 loc) · 10.5 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Libertas</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#fff">
<meta name="Description" content="Libertas - Unstoppable and Censorship Resistant Social Network">
<link rel="manifest" href="manifest.json">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="application-name" content="Libertas">
<meta name="apple-mobile-web-app-title" content="Libertas">
<meta name="theme-color" content="#000">
<meta name="msapplication-navbutton-color" content="#000">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="msapplication-starturl" content="/">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net" rel="preconnect" crossorigin>
<link href="https://fonts.googleapis.com" rel="preconnect" crossorigin>
<link href="https://source.unsplash.com" rel="preconnect" crossorigin>
<link href="https://rpc-mumbai.matic.today" rel="preconnect" crossorigin>
<link rel="apple-touch-icon" href="icons/icon.png">
<link rel="icon" type="image/png" href="icons/icon-black.png" id="light-scheme-icon">
<link rel="icon" type="image/png" href="icons/icon-white.png" id="dark-scheme-icon">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i|Roboto:400,700|Roboto+Mono:400,700" rel="stylesheet">
<link rel="stylesheet" media="all" href="css/bootstrap.min.css">
<link rel="stylesheet" media="all" href="css/lighthouse.css">
</head>
<body style="font-display:swap !important;">
<div class="page">
<header class="header">
<div class="container">
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="./discover.html">
<div class="navbar-title">Libertas</div>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarDropdown" aria-controls="navbarDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarDropdown">
<div class="d-flex align-items-center">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="./discover.html">Videos</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./golive.html">Live</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./articles.html">Articles</a>
</li>
<li class="nav-item">
<a class="nav-link" href="./call.html">Call</a>
</li>
</ul>
<div>
<a class="btn btn-blue" href="./upload.html">Upload</a>
</div>
</div>
</div>
</nav>
</div>
</header>
<div class="inner">
<div class="main main-dark" style="background-image: url(https://source.unsplash.com/random?dark);background-position: center;">
<div class="container">
<div class="main-group">
<h1 class="main-title">Your Account</h1>
</div>
</div>
</div>
<div class="services" style=" padding: 20px 0 40px; ">
<div class="container">
<div class="row">
<div class="col-md-4 col-lg-4">
<div class="services-item" style="cursor:pointer;" onclick="window.location = 'manage-videos.html'">
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 24 24"><path d="M11.266 7l12.734-2.625-.008-.042-1.008-4.333-21.169 4.196c-1.054.209-1.815 1.134-1.815 2.207v14.597c0 1.657 1.343 3 3 3h18c1.657 0 3-1.343 3-3v-14h-12.734zm8.844-5.243l2.396 1.604-2.994.595-2.398-1.605 2.996-.594zm-5.898 1.169l2.4 1.606-2.994.595-2.401-1.607 2.995-.594zm-5.904 1.171l2.403 1.608-2.993.595-2.406-1.61 2.996-.593zm-2.555 5.903l2.039-2h3.054l-2.039 2h-3.054zm4.247 10v-7l6 3.414-6 3.586zm4.827-10h-3.054l2.039-2h3.054l-2.039 2zm6.012 0h-3.054l2.039-2h3.054l-2.039 2z"/></svg>
</div>
<br/>
<h1>Manage Your Videos</h1>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="services-item" style="cursor:pointer;" onclick="window.location = 'manage-ads.html'">
<div>
<svg width="96" height="96" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill-rule="evenodd" clip-rule="evenodd"><path d="M24 15.951c0-2.468-1.744-4.451-4.114-5.353.069-.395.114-.793.114-1.195 0-4.88-4.751-8.403-10-8.403-5.282 0-10 3.549-10 8.403 0 1.721.616 3.411 1.706 4.724.045 1.536-.852 3.741-1.661 5.346 2.168-.394 5.251-1.265 6.648-2.13 1.18.289 2.313.424 3.383.424l.273-.013c.866 2.251 3.314 4.052 6.6 4.052.748 0 1.54-.094 2.366-.297.978.604 3.137 1.215 4.654 1.491-.566-1.124-1.194-2.667-1.162-3.742.763-.919 1.193-2.101 1.193-3.307zm-3.148 4.084c-.396-.168-.421-.2-1.201-.682-1.011.247-1.683.438-2.702.438-2.179 0-3.76-1.016-4.492-2.265 3.247-.654 5.686-2.607 6.827-5.01 1.61.644 2.716 1.941 2.716 3.435 0 .542-.015 1.158-1.171 2.548-.023.763-.043 1.005.023 1.536zm-14.496-4.849c-.805.5-1.169.794-3.004 1.384.436-1.599.356-2.382.332-3.201-.318-.384-1.684-1.71-1.684-3.966 0-3.522 3.589-6.388 8-6.388 4.412 0 8 2.866 8 6.388 0 3.053-3.029 6.348-7.924 6.348-1.649 0-2.904-.364-3.72-.565zm6.643-3.537c-.212.071-.441-.044-.511-.256 0 0-1.496-.501-3.272.088l1.166 1.814c.121.179.037.422-.164.49l-.794.263-.167.028c-.149 0-.294-.064-.396-.179l-1.604-1.77c-.873.276-1.862-.042-2.192-.865-.076-.188-.114-.389-.114-.592 0-.585.327-1.183 1.038-1.533 3.559-1.747 4.128-3.696 4.128-3.696-.086-.262.11-.532.382-.532.169 0 .327.108.383.277l2.371 5.952c.071.212-.044.441-.254.511zm1.687-2.043l-.614-.261c.267-.634.293-1.371.014-2.058-.279-.688-.808-1.199-1.441-1.466l.26-.615c1.265.535 2.046 1.771 2.046 3.091 0 .454-.092.898-.265 1.309zm-1.063-.451l-.599-.254c.154-.365.169-.789.008-1.185-.16-.396-.466-.69-.83-.843l.253-.601c.518.219.952.635 1.179 1.198.229.564.207 1.165-.011 1.685z"/></svg>
</div>
<br/>
<h1>Manage Your Ads</h1>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="services-item" style="cursor:pointer;" onclick="window.location = 'manage-articles.html'">
<div>
<svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 24 24"><path d="M7 16h13v1h-13v-1zm13-3h-13v1h13v-1zm0-6h-5v1h5v-1zm0 3h-5v1h5v-1zm-17-8v17.199c0 .771-1 .771-1 0v-15.199h-2v15.98c0 1.115.905 2.02 2.02 2.02h19.958c1.117 0 2.022-.904 2.022-2.02v-17.98h-21zm19 17h-17v-15h17v15zm-9-12h-6v4h6v-4z"/></svg>
</div>
<br/>
<h1>Manage Your Articles</h1>
</div>
</div>
</div>
</div>
</div>
<div class="services" style=" padding: 20px 0 40px; ">
<div class="container">
<div class="row">
<div class="col-md-4 col-lg-4">
<div class="services-item">
<div class="services-title">
<h1 style=" font-size: 3em; " id="userBalance">0.00 </h1>
ANC
</div>
<p>Account Balance</p>
<br/>
<div class="services-title">
<h1 style=" font-size: 3em; " id="faucetBalance">0.00 </h1>
ANC
</div>
<p>Faucet Balance</p>
<a class="btn btn-white" id="getFromFaucet">Get from Faucet 🚰</a>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="services-item">
<div class="services-title">
<h1 style=" font-size: 3em;" id="allowanceAmt">0.00 </h1>
ANC
<p>Current Allowance</p>
</div>
<input class=" form-control" type="number" id="allowanceAmtVal" placeholder="Enter Amount"><br/>
<a class="btn btn-white" id="increaseAllowance">🔼 Increase Allowance</a><br/>
<a class="btn btn-white" id="setAllowance">✅ Set Allowance</a><br/>
<a class="btn btn-white" id="decreaseAllowance">🔽 Decrease Allowance</a>
</div>
</div>
<div class="col-md-4 col-lg-4">
<div class="services-item">
<div class="services-title" >
<h3>About You</h3>
<p>Your Name : <span id="creatorName"></span></p>
</div>
<input class="form-control" type="text" id="creatorNameVal" placeholder="Enter Name"><br/>
<a class="btn btn-white" href="#" id="updateCreatorName">Update Name</a>
<br/>
<img src='' id="creatorImage" style="max-width: 100px;align-self: center;">
<div class="box">
<input type="file" name="file-1[]" id="file-1" class="inputfile inputfile-1" style="display:none;"/>
<label for="file-1">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17">
<path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/>
</svg>
<span>Choose a file…</span>
</label>
</div>
<a class="btn btn-white" id="uploadCreatorImage">Upload 🚀</a>
<br/>
<p id="status"></p>
</div>
</div>
</div>
</div>
</div>
</div>
<br/>
<footer class="footer">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="footer-links text-center">
Made with ❤️ by <a href="https://anudit.dev" target="_blank" rel="noopener">Anudit Nagar</a>
</div>
</div>
</div>
</div>
</footer>
</div>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('service-worker.js')
.then(registration => {
console.log('Service Worker is registered', registration);
})
.catch(err => {
console.error('Registration failed:', err);
});
});
}
</script>
<script src="js/lib/web3@1.2.11.js"></script>
<script src="js/lib/jquery-3.5.1.min.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/lib/sweetalert2@9.14.0.js"></script>
<script src="js/lib/lighthouse.js"></script>
<script src="js/lib/ipfs@0.48.1.js"></script>
<script src="js/lib/mexa@1.5.13.min.js"></script>
<script src="js/globals.js"></script>
<script src="js/contract.js"></script>
<script src="js/account.js"></script>
<script src="js/index.js"></script>
</body>
</html>