-
Notifications
You must be signed in to change notification settings - Fork 1
/
auth.html
210 lines (198 loc) · 10.7 KB
/
auth.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preload" href="https://impera.onrender.com/img/im.svg" as="image"/>
<link rel="icon" href="https://impera.onrender.com/img/im.svg" sizes="any">
<link rel="preload" href="https://impera.onrender.com/cssl/style.css" as="style"/>
<link rel="preload" href="https://impera.onrender.com/Fonts/CaviarDreams.ttf" as="font"/>
<link rel="preload" href="https://impera.onrender.com/Fonts/sofiapro-light.otf" as="font"/>
<link rel="preload" href="https://impera.onrender.com/Fonts/Neou-Bold.ttf" as="font"/>
<link rel="stylesheet" href="https://impera.onrender.com/cssl/style.css"/>
<link rel="preload" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css" as="style"/>
<link rel="stylesheet" href="https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css">
<link rel="stylesheet" href="https://impera.onrender.com/cssl/croppie.css">
<link rel="stylesheet" href="https://impera.onrender.com/cssl/auth.css">
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
<script src="https://unpkg.com/moralis-v1@1.12.0/dist/moralis.js"></script>
<title>Impera - SignUp or LogIn</title>
<script>
//FOR INPUT!
function pfocused(xele){
if(xele.tagName.toLowerCase() != 'textarea') xele.parentElement.parentElement.className = 'input-box active';
else xele.parentElement.className = 'input-box active';
if(xele.id == 'usernamel'){
document.getElementById('passins').style.display = 'none';
document.getElementById('userins').style.display = 'block';
}
else{
document.getElementById('userins').style.display = 'none';
document.getElementById('passins').style.display = 'block'
}
}
function offfocused(xele){
if(xele.tagName.toLowerCase() != 'textarea') xele.parentElement.parentElement.className = 'input-box';
else xele.parentElement.className = 'input-box';
}
let times = 0;
</script>
</head>
<body onload="setTimeout(function(){setInterval(changeText, 8000)}, 3000);">
<div id="cropperx">
<button id="destroyer" class="actions acol3 la la-times"></button>
<div id="inna"></div>
<div id="controls"><button id="rotatel" class="actions acol2 las la-undo-alt"></button><button id="rotater" class="actions acol2 las la-redo-alt"></button><button id="crop-done" class="specialb"><p>Crop</p></button></div>
</div>
<div id="container">
<div class="blur first"></div>
<div id="shadow">
<div class="blur second"></div>
<div id="left">
<img class="llogo" onclick="window.open('introduction')" src="https://impera.onrender.com/img/im.svg">
<div style="position:absolute; z-index: -1; overflow: hidden; filter: blur(20px) brightness(0.7); width: 100%; height: 100%; left: 0; top: 0;">
<img class="logo" style="width: 100%; display: block; position: static; cursor: auto;" src="https://impera.onrender.com/img/bgxx.png">
</div>
<h1 class="wordone" id="wordone">WELCOME TO IMPERA</h1>
<span class="wordtwo" id="wordtwo">where seemingly im-possibe ideas become possible</span>
</div>
<!--CONNECT WALLET-->
<div id="right">
<img class="logo" src="https://impera.onrender.com/img/im.svg">
<div><p>Use <span class="gtext" style="cursor: pointer;" onclick="document.getElementById('usernamel').focus()">email</span></p></div>
<div id="switcher">
<div id="loginx" class="swi">
<div id="simpleinputs" style="padding: 0px 10px;">
<div class="input-box">
<div class="ibins">
<label for="usernamel">Email</label>
<input onblur="offfocused(this)" autocomplete="off" onfocus="pfocused(this)" type="text" placeholder="Email or Username" name="un_name" id="usernamel" maxlength="30" spellcheck="false" required autofocus>
<span class="beauts"><div id="availe"></div></span>
</div>
</div>
<div class="input-box">
<div class="ibins">
<label for="passwordx">Password</label>
<input onblur="offfocused(this)" autocomplete="off" onfocus="pfocused(this)" type="password" placeholder="Password" name="passw" id="passwordx" maxlength="16" minlength="3" required>
<span class="beauts la la-hashtag"></span>
</div>
</div>
</div>
<div class="instructions">
<ul id="userins">
<li>Sign up with a valid email e.g name@email.com</li>
<li>Username must include only letters and numbers</li>
</ul>
<ul id="passins" style="display: none;">
<li>Passwords must contain more than 5 characters</li>
<li>Passwords are encrypted with blockchain cryptograph</li>
</ul>
</div>
<div style="display: flex; flex-direction: row; gap: 30px; width: 100%; height: 60px; align-items: center; justify-content: center; transition: 0.2s;">
<button class="snapb" onclick="plogIn()"><span>Log In</span></button>
<button class="specialb" onclick="psignUp()"><p>Sign Up</p></button>
</div>
</div>
</div>
<div class="splitter">
<span class="cls"></span>
<div>Or</div>
<span class="cls"></span>
</div>
<div style="line-height: 30px; margin-top: 10px;">Connect with <span class="gtext">Wallet</span></div>
<div id="wallets">
<div class="col" style="row-gap:10px; align-items: center;">
<!--Terms-and-conditions-->
<div class="ring hring" onclick="loginmeta()" id="meta">
<button class="btn row" style="padding:8px;">
<span>
<img src="https://impera.onrender.com/img/MetaMask_Fox.svg.png" class="lfw">
MetaMask
</span>
</button>
</div>
<button onclick="loginwallet()" class="snapb" style="height: 47px;">
<span><img src="https://impera.onrender.com/img/web3adark.svg" height="20px" style="margin: 0px 5px; margin-bottom: -3px;" alt="Web3Auth Login"/></span>
</button>
<span style="opacity: 0.7; font-size: 15px;">*Recommended</span>
</div>
</div>
</div>
<!--UPLOAD-->
<div id="upload" class="col" style="padding: 30px 0px 10px 0px;">
<img class="logo" src="https://impera.onrender.com/img/im.svg">
<label for="p_image_input" id="lfimg">
<img id="replacer" style="display: block;" src="https://impera.onrender.com/img/profile2.jpg">
<input style="display: none;" type="file" name="p_image" id="p_image_input" accept=".png, .jpeg, .bmp, .jpg" spellcheck="false" required>
</label>
<div id="simpleinputs" style="margin-top: 10px">
<div class="input-box">
<div class="ibins">
<label style="line-height: 39px; display: block;" class="gtext" for="username">@</label>
<input onblur="offfocused(this)" autocomplete="off" onchange="checkpra(this)" onfocus="pfocused(this)" type="text" placeholder="Username_x" name="un_name" id="username" maxlength="30" spellcheck="false" required>
<span class="beauts"><div id="avail"></div></span>
</div>
</div>
<div class="input-box">
<div class="ibins">
<label for="usernamel">Name</label>
<input onblur="offfocused(this)" autocomplete="off" onfocus="pfocused(this)" type="text" placeholder="Name" name="name" id="displayname" maxlength="30" spellcheck="false" required>
<span class="beauts las la-user-circle"></span>
</div>
</div>
<div id="summstuffs">
<div class="input-box" style="display: flex; flex-direction:column; overflow: hidden;">
<label for="sumitup" style="z-index: 2; display: block; width: 100%;">About<sup style="opacity: 0.7;"> optional</sup></label>
<span class="hdiv"></span>
<textarea oninput="document.getElementById('textcount').innerHTML = (document.getElementById('sumitup').value.length).toString()+'/100';" onblur="offfocused(this)" onfocus="pfocused(this)" id="sumitup" style="height: 100px" maxlength="100"></textarea>
<span class="hdiv"></span>
<span style="z-index: 2; width: 100%;" id="textcount"></span>
</div>
</div>
</div>
<div class="btncont row">
<button class="specialb" id="upbtn" onclick="changeToNi()"><p>Next</p></button>
</div>
</div>
<!--NICHE-->
<div id="niche" class="col">
<img class="logo" src="https://impera.onrender.com/img/im.svg">
<h4 id="efdc" style="padding: 0px 10px;">
What fields are you intrested in? <small>This will help show only what you like</small>
</h4>
<div style="display: flex; justify-content: start; align-items: flex-start; flex-grow: 2;">
<div class="tags-holder" style="margin-left: 9px;">
<!--max tags allowed should 4-->
<div class="ring" onclick="niche(this); return false;" id="art"><span>Art</span></div>
<div class="ring" onclick="niche(this); return false;" id="books"><span>Books</span></div>
<div class="ring" onclick="niche(this); return false;" id="gaming"><span>Gaming</span></div>
<div class="ring" onclick="niche(this); return false;" id="music"><span>Music</span></div>
<div class="ring" onclick="niche(this); return false;" id="design and tech"><span>Design and Tech</span></div>
<div class="ring" onclick="niche(this); return false;" id="food and farms"><span>Food and farms</span></div>
<div class="ring" onclick="niche(this); return false;" id="film"><span>Film</span></div>
<div class="ring" onclick="niche(this); return false;" id="sports"><span>Sports</span></div>
</div>
</div>
<div class="btncont row" style="justify-content: space-between; margin-left: 3px;">
<button class="snapb" onclick="changeToUp()"><span>Back</span></button>
<button class="specialb" onclick="newuser()"><p>Save Profile</p></button>
</div>
<!--END-->
</div>
</div>
</div>
<script src="https://unpkg.com/@web3auth/web3auth@latest/dist/web3auth.umd.min.js"></script>
<script src="https://impera.onrender.com/tools/web3-provider.min.js"></script>
<script src="https://impera.onrender.com/tools/conversion.js"></script>
<script src="https://impera.onrender.com/tools/croppie.js"></script>
<script src="function.js"></script>
<style>
#w3a-modal .w3a-modal__inner.w3a-modal__inner--active{
border-radius: 25px;
}
#w3a-modal{
backdrop-filter: blur(10px);
}
</style>
</body>
</html>