- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
273 lines (243 loc) · 10.7 KB
/
index.html
File metadata and controls
273 lines (243 loc) · 10.7 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Quantex Crypto - Latest cryptocurrency news, market data, and analysis">
<meta name="keywords" content="crypto, cryptocurrency, bitcoin, ethereum, blockchain, news">
<title>Quantex Crypto - Cryptocurrency News & Market Data</title>
<!-- Favicon -->
<link rel="icon" href="./Quantex.png" type="image/png">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
<!-- CSS Styles -->
<link rel="stylesheet" href="./style.css">
</head>
<body>
<header>
<a href="/" aria-label="Quantex Crypto Home">
<img src="./Quantex.png" width="90" height="50" alt="Quantex Logo" style="margin-right: 10px;"/>
</a>
<!-- Search news -->
<div class="inputSearch desktop">
<form id="searchForm" role="search">
<input type="text" id="searchInput" placeholder="Search Here..." aria-label="Search news articles"/>
<button type="submit" aria-label="Search"><i class="fa-solid fa-search"></i></button>
</form>
</div>
<nav class="desktop">
<ul>
<li onclick="Search('tech')" tabindex="0" role="button" aria-label="Tech news">Tech</li>
<li onclick="Search('business')" tabindex="0" role="button" aria-label="Business news">Business</li>
<li onclick="Search('nse')" tabindex="0" role="button" aria-label="NSE news">NSE</li>
<li><a href="./crypto.html" target="_blank">Crypto</a></li>
<li><a href="app-debug.apk" download>Download App</a></li>
</ul>
<ul class="auth-links">
<li><a href="#" id="loginli" onclick="openLoginModal()">Login</a></li>
<li><a href="#" id="signupli" onclick="openSignupModal()">Signup</a></li>
<li><a href="#" id="logoutli" onclick="logout()" style="display:none;">Logout</a></li>
</ul>
<div class="user-profile" id="userProfile" style="display:none;">
<img id="proimgb" src="user.png" alt="User Profile">
</nav>
<div class="menuBtn" aria-label="Mobile menu" tabindex="0" role="button">
<i class="fa-solid fa-bars"></i>
</div>
<!-- Mobile menu -->
<div class="mobile hidden">
<div class="inputSearch">
<form id="searchFormMobile" role="search">
<input type="text" id="searchInputMobile" placeholder="Type to search..." aria-label="Search news articles"/>
<button type="submit" aria-label="Search"><i class="fa-solid fa-search"></i></button>
</form>
</div>
<br>
<nav>
<ul>
<li onclick="Search('tech')" tabindex="0" role="button">Tech</li>
<li onclick="Search('business')" tabindex="0" role="button">Business</li>
<li onclick="Search('nse')" tabindex="0" role="button">NSE</li>
<li><a href="./crypto.html" target="_blank">Crypto</a></li>
<li><a href="Quantex.apk" download>Download App</a></li>
</ul>
<ul class="auth-links">
<li><a href="#" id="loginli-mobile" onclick="openLoginModal()">Login</a></li>
<li><a href="#" id="signupli-mobile" onclick="openSignupModal()">Signup</a></li>
<li><a href="#" id="logoutli-mobile" onclick="logout()" style="display:none;">Logout</a></li>
</ul>
<div class="user-profile" id="userProfileMobile" style="display:none;">
<a><img id="proimgb-mobile" src="user.png" alt="User Profile"></a>
</div>
</nav>
</div>
</header>
<!-- Login Modal -->
<div id="loginModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Login to Quantex</h2>
<span class="close" onclick="closeLoginModal()">×</span>
</div>
<form id="login_Form" >
<label for="loginEmail">Email:</label>
<input type="email" id="loginEmail" placeholder="abc@gmail.com" required aria-required="true"/>
<label for="loginPassword">Password:</label>
<input type="password" id="loginPassword" placeholder="password" required aria-required="true"/>
<button type="submit">Login</button>
<p class="modal-footer">Don't have an account? <a href="#" onclick="openSignupModal()">Sign up</a></p>
</form>
</div>
</div>
<!-- Signup Modal -->
<div id="signupModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Create Account</h2>
<span class="close" onclick="closeSignupModal()">×</span>
</div>
<form id="signup_Form" >
<label for="signupName">Full Name:</label>
<input type="text" id="signupName" placeholder="Your name" required aria-required="true"/>
<label for="signupEmail">Email:</label>
<input type="email" id="signupEmail" placeholder="abc@gmail.com" required aria-required="true"/>
<label for="signupPassword">Password:</label>
<input type="password" id="signupPassword" placeholder="Create password" required aria-required="true"/>
<button type="submit">Sign Up</button>
<p class="modal-footer">Already have an account? <a href="#" onclick="openLoginModal()">Login</a></p>
</form>
</div>
</div>
<!-- Profile Details Modal -->
<div id="profileModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>User Profile</h2>
<span class="close" onclick="closeProfileModal()">×</span>
</div>
<div class="profile-container">
<div class="profile-picture-section">
<img id="modalProfileImg" src="user.png" alt="Profile Picture">
<input type="file" id="profileImageUpload" accept="image/*" style="display: none;" onchange="updateProfilePicture(event)">
<button onclick="document.getElementById('profileImageUpload').click()">Change Picture</button>
</div>
<div class="profile-details-section">
<table id="profileTable">
<tbody id="profileTbody">
<!-- User details will be inserted here -->
</tbody>
</table>
<div class="profile-actions">
<button class="edit-btn" onclick="openEditProfileModal()">Edit Profile</button>
<button class="close-btn" onclick="closeProfileModal()">Close</button>
</div>
</div>
</div>
</div>
</div>
<div id="editProfileModal" class="modal">
<div class="modal-content">
<div class="modal-header">
<h2>Edit Profile</h2>
<span class="close" onclick="closeEditProfileModal()">×</span>
</div>
<form id="editProfileForm" onsubmit="updateUserProfile(event)">
<div class="form-scroll-container">
<!-- Your form fields here -->
<label for="editName">Full Name:</label>
<input type="text" id="editName" value="">
<label for="editEmail">Email:</label>
<input type="email" id="editEmail" value="" disabled="true">
<label for="editPhone">Phone:</label>
<input type="text" id="editPhone" value="">
<label for="editSpecialty">Specialty:</label>
<input type="text" id="editSpecialty" value="">
<label for="editPortfolio">Portfolio URL:</label>
<input type="url" id="editPortfolio">
<label for="editExperience">Experience:</label>
<input type="text" id="editExperience">
</div>
<div class="form-actions">
<button type="button" class="btn-secondary" onclick="closeEditProfileModal()">Cancel</button>
<button type="submit" class="btn-primary">Save Changes</button>
</div>
</form>
</div>
</div>
<!-- Main Content -->
<main>
<div class="loading-container" id="loading">
<div class="loading-spinner"></div>
<p>Loading news...</p>
</div>
<!-- News content will be inserted here by JavaScript -->
</main>
<!-- Back to top button -->
<button class="back-to-top" id="back-to-top-btn" aria-label="Back to top">↑</button>
<!-- Footer -->
<footer>
<div class="newsletter">
<div>
<h2>Subscribe our Newsletter</h2>
<p>Stay updated with the latest crypto news and market trends.</p>
</div>
<div class="ntext">
<label style="display: flex;">
<input type="email" placeholder="Enter your email" aria-label="Email for newsletter"/>
<button class="button-1" role="button">Subscribe</button>
</label>
</div>
</div>
<div class="f-contact" data-aos="zoom-in-up" data-aos-offset="200">
<div>
<h1>Information</h1>
<p>Your trusted source for cryptocurrency news and market analysis.</p>
<div class="social-links">
<a href="https://www.google.co.in/"><i class="fa fa-whatsapp"></i></a>
<a href="https://www.instagram.com/siddharth_._variya_/"><i class="fa fa-instagram"></i></a>
<a href="https://www.google.co.in/"><i class="fa fa-telegram"></i></a>
<a href="https://twitter.com/SiddharthVariy4"><i class="fa fa-twitter"></i></a>
</div>
</div>
<div>
<h1>Useful Links</h1>
<div class="effect-container">
<a href="#" class="footer-link">About us</a>
<a href="#" class="footer-link">Pricing plans</a>
<a href="#" class="footer-link">Blog posts</a>
</div>
</div>
<div>
<h1>Help & Support</h1>
<div class="effect-container">
<a href="#" class="footer-link">Privacy policy</a>
<a href="#" class="footer-link">Terms & conditions</a>
<a href="#" class="footer-link">Technical support</a>
<a href="#" class="footer-link">Customer care</a>
</div>
</div>
</div>
<div class="w-1140">
<div class="copyright">
<p>© Copyright Quantex. All Rights Reserved</p>
</div>
</div>
</footer>
<!-- Firebase SDK -->
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.2.9/firebase-storage.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.6.1/firebase-database.js"></script>
<!-- JavaScript -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="script.js"></script>
<script src="auth.js"></script>
<script src="firestore-db.js"></script>
</body>
</html>