-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
388 lines (353 loc) · 19.3 KB
/
Copy pathadmin.html
File metadata and controls
388 lines (353 loc) · 19.3 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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Panel - ProView Cadence</title>
<link rel="stylesheet" href="css/admin.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
<!-- Login Screen -->
<div class="login-container" id="loginContainer">
<div class="login-box">
<div class="login-header">
<i class="fas fa-lock"></i>
<h2>Admin Access</h2>
<p>ProView Cadence Developer Mode</p>
</div>
<form id="loginForm">
<div class="form-group">
<i class="fas fa-user"></i>
<input type="text" id="username" placeholder="Username" required>
</div>
<div class="form-group">
<i class="fas fa-key"></i>
<input type="password" id="password" placeholder="Password" required>
</div>
<button type="submit" class="btn btn-primary">
<i class="fas fa-sign-in-alt"></i> Login
</button>
</form>
</div>
</div>
<!-- Admin Dashboard -->
<div class="admin-dashboard" id="adminDashboard" style="display: none;">
<!-- Sidebar -->
<aside class="sidebar">
<div class="sidebar-header">
<h2>ProView <span>Cadence</span></h2>
<p>Developer Mode</p>
</div>
<nav class="sidebar-nav">
<a href="#dashboard" class="nav-item active" data-section="dashboard">
<i class="fas fa-tachometer-alt"></i>
<span>Dashboard</span>
</a>
<a href="#services" class="nav-item" data-section="services">
<i class="fas fa-cogs"></i>
<span>Services</span>
</a>
<a href="#projects" class="nav-item" data-section="projects">
<i class="fas fa-project-diagram"></i>
<span>Projects</span>
</a>
<a href="#testimonials" class="nav-item" data-section="testimonials">
<i class="fas fa-comments"></i>
<span>Testimonials</span>
</a>
<a href="#gallery" class="nav-item" data-section="gallery">
<i class="fas fa-images"></i>
<span>Gallery</span>
</a>
<a href="#newsticker" class="nav-item" data-section="newsticker">
<i class="fas fa-newspaper"></i>
<span>News Ticker</span>
</a>
<a href="#settings" class="nav-item" data-section="settings">
<i class="fas fa-cog"></i>
<span>Settings</span>
</a>
<a href="#stats" class="nav-item" data-section="stats">
<i class="fas fa-chart-bar"></i>
<span>Statistics</span>
</a>
<a href="#contact" class="nav-item" data-section="contact">
<i class="fas fa-envelope"></i>
<span>Contact Info</span>
</a>
<a href="#" class="nav-item" id="logoutBtn">
<i class="fas fa-sign-out-alt"></i>
<span>Logout</span>
</a>
</nav>
</aside>
<!-- Main Content -->
<main class="main-content">
<header class="dashboard-header">
<h1 id="sectionTitle">Dashboard</h1>
<div class="header-actions">
<button class="btn btn-success" id="saveChanges">
<i class="fas fa-save"></i> Save All Changes
</button>
<a href="index.html" target="_blank" class="btn btn-secondary">
<i class="fas fa-external-link-alt"></i> View Site
</a>
</div>
</header>
<!-- Dashboard Section -->
<section class="content-section active" id="dashboardSection">
<div class="stats-overview">
<div class="stat-card">
<i class="fas fa-cogs"></i>
<div>
<h3 id="servicesCount">0</h3>
<p>Services</p>
</div>
</div>
<div class="stat-card">
<i class="fas fa-project-diagram"></i>
<div>
<h3 id="projectsCount">0</h3>
<p>Projects</p>
</div>
</div>
<div class="stat-card">
<i class="fas fa-comments"></i>
<div>
<h3 id="testimonialsCount">0</h3>
<p>Testimonials</p>
</div>
</div>
<div class="stat-card">
<i class="fas fa-images"></i>
<div>
<h3 id="galleryCount">0</h3>
<p>Gallery Images</p>
</div>
</div>
<div class="stat-card">
<i class="fas fa-check-circle"></i>
<div>
<h3>Active</h3>
<p>Status</p>
</div>
</div>
</div>
<div class="welcome-card">
<h2>Welcome to Developer Mode</h2>
<p>Manage all aspects of your ProView Cadence website from this dashboard. You can add, edit, or remove services, projects, testimonials, and more.</p>
<ul>
<li><i class="fas fa-check"></i> Edit services and their details</li>
<li><i class="fas fa-check"></i> Add or remove projects with images</li>
<li><i class="fas fa-check"></i> Manage client testimonials</li>
<li><i class="fas fa-check"></i> Update statistics and contact information</li>
</ul>
</div>
</section>
<!-- Services Section -->
<section class="content-section" id="servicesSection">
<div class="section-actions">
<button class="btn btn-primary" id="addServiceBtn">
<i class="fas fa-plus"></i> Add New Service
</button>
</div>
<div class="services-list" id="servicesList"></div>
</section>
<!-- Projects Section -->
<section class="content-section" id="projectsSection">
<div class="section-actions">
<button class="btn btn-primary" id="addProjectBtn">
<i class="fas fa-plus"></i> Add New Project
</button>
</div>
<div class="projects-list" id="projectsList"></div>
</section>
<!-- Testimonials Section -->
<section class="content-section" id="testimonialsSection">
<div class="section-actions">
<button class="btn btn-primary" id="addTestimonialBtn">
<i class="fas fa-plus"></i> Add New Testimonial
</button>
</div>
<div class="testimonials-list" id="testimonialsList"></div>
</section>
<!-- Gallery Section -->
<section class="content-section" id="gallerySection">
<div class="section-actions">
<button class="btn btn-primary" id="addGalleryBtn">
<i class="fas fa-plus"></i> Add New Image
</button>
</div>
<div class="projects-list" id="galleryList"></div>
</section>
<!-- News Ticker Section -->
<section class="content-section" id="newstickerSection">
<div class="settings-container">
<div class="settings-card">
<h3><i class="fas fa-newspaper"></i> News Ticker Settings</h3>
<p class="settings-description">Manage the scrolling news banner at the top of your website</p>
<div class="form-group">
<label>
<input type="checkbox" id="newsTickerEnabled" onchange="updateNewsTickerPreview()">
Enable News Ticker
</label>
</div>
<div class="form-group">
<label>News Ticker Text</label>
<textarea id="newsTickerText" rows="3" placeholder="Enter your news ticker text here..." onkeyup="updateNewsTickerPreview()"></textarea>
<small>Tip: Use "|" to separate different messages. Use emojis for visual appeal! 🎉</small>
</div>
<div class="form-group">
<label>Preview</label>
<div class="news-ticker-preview">
<div class="ticker-preview-content">
<span id="newsTickerPreview">🎉 Welcome to ProView Cadence | Expert Technical Services Available</span>
</div>
</div>
</div>
<button class="btn btn-primary" onclick="saveNewsTicker()">
<i class="fas fa-save"></i> Save News Ticker
</button>
</div>
</div>
</section>
<!-- Settings Section -->
<section class="content-section" id="settingsSection">
<div class="settings-container">
<!-- Logo Settings -->
<div class="settings-card">
<h3><i class="fas fa-image"></i> Website Logo</h3>
<p class="settings-description">Upload your logo or use text logo</p>
<div class="logo-preview-container">
<div class="logo-preview" id="logoPreview">
<h2>ProView <span>Cadence</span></h2>
</div>
</div>
<div class="logo-controls">
<div class="choice-buttons">
<button class="choice-btn active" onclick="switchLogoMode('text')">
<i class="fas fa-font"></i> Text Logo
</button>
<button class="choice-btn" onclick="switchLogoMode('image')">
<i class="fas fa-image"></i> Image Logo
</button>
</div>
<div class="logo-input-container">
<div id="textLogoInput" class="logo-input-mode active">
<label>Logo Text</label>
<input type="text" id="logoText" placeholder="ProView Cadence" class="form-input">
</div>
<div id="imageLogoInput" class="logo-input-mode">
<label>Upload Logo Image</label>
<div class="image-upload-container">
<input type="file" id="logoImageUpload" accept="image/*" onchange="handleLogoUpload(event)" style="display: none;">
<button class="upload-btn" onclick="document.getElementById('logoImageUpload').click()">
<i class="fas fa-upload"></i> Choose Image
</button>
<span class="file-name" id="logoFileName">No file chosen</span>
</div>
<div class="image-preview-container" id="logoImagePreviewContainer" style="display: none;">
<img id="logoImagePreview" src="" alt="Logo Preview">
</div>
</div>
</div>
<button class="btn btn-success" onclick="saveLogo()">
<i class="fas fa-save"></i> Save Logo
</button>
</div>
</div>
<!-- Hero Background Images -->
<div class="settings-card">
<h3><i class="fas fa-image"></i> Hero Slider Background Images</h3>
<p class="settings-description">Manage background images for hero slider</p>
<div class="hero-slides-list" id="heroSlidesList">
<!-- Hero slides will be loaded here -->
</div>
</div>
<!-- Social Media Links -->
<div class="settings-card">
<h3><i class="fas fa-share-alt"></i> Social Media Links</h3>
<p class="settings-description">Manage your social media profiles - visitors will be redirected when they click</p>
<div class="social-media-editor">
<div class="form-group">
<label><i class="fab fa-linkedin"></i> LinkedIn URL</label>
<input type="url" id="linkedinUrl" class="form-input" placeholder="https://www.linkedin.com/company/your-company">
<small>Full LinkedIn company or profile URL</small>
</div>
<div class="form-group">
<label><i class="fab fa-github"></i> GitHub URL</label>
<input type="url" id="githubUrl" class="form-input" placeholder="https://github.com/your-username">
<small>Your GitHub profile or organization URL</small>
</div>
<div class="form-group">
<label><i class="fab fa-twitter"></i> Twitter URL</label>
<input type="url" id="twitterUrl" class="form-input" placeholder="https://twitter.com/your-handle">
<small>Your Twitter/X profile URL</small>
</div>
<div class="form-group">
<label><i class="fab fa-facebook"></i> Facebook URL</label>
<input type="url" id="facebookUrl" class="form-input" placeholder="https://www.facebook.com/your-page">
<small>Your Facebook page URL</small>
</div>
<div class="form-group">
<label><i class="fab fa-instagram"></i> Instagram URL</label>
<input type="url" id="instagramUrl" class="form-input" placeholder="https://www.instagram.com/your-profile">
<small>Your Instagram profile URL</small>
</div>
<button class="btn btn-success" onclick="saveSocialMedia()">
<i class="fas fa-save"></i> Save Social Media Links
</button>
</div>
</div>
<!-- WhatsApp Settings -->
<div class="settings-card">
<h3><i class="fab fa-whatsapp"></i> WhatsApp Settings</h3>
<p class="settings-description">Configure WhatsApp floating button - visitors can chat directly with you</p>
<div class="whatsapp-editor">
<div class="form-group">
<label><i class="fab fa-whatsapp"></i> WhatsApp Number</label>
<input type="tel" id="whatsappNumber" class="form-input" placeholder="919876543210">
<small>Enter number with country code (no + or spaces). Example: 919876543210</small>
</div>
<div class="whatsapp-preview" style="margin: 20px 0; padding: 15px; background: #f8f9fa; border-radius: 8px;">
<strong>Preview:</strong>
<p style="margin: 10px 0; color: #666;">Floating WhatsApp button will appear at bottom-left corner</p>
<div style="display: inline-block; width: 50px; height: 50px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 24px;">
<i class="fab fa-whatsapp"></i>
</div>
</div>
<button class="btn btn-success" onclick="saveWhatsAppSettings()">
<i class="fas fa-save"></i> Save WhatsApp Settings
</button>
</div>
</div>
</div>
</section>
<!-- Stats Section -->
<section class="content-section" id="statsSection">
<div class="stats-editor" id="statsEditor"></div>
</section>
<!-- Contact Section -->
<section class="content-section" id="contactSection">
<div class="contact-editor" id="contactEditor"></div>
</section>
</main>
</div>
<!-- Modal for Adding/Editing Items -->
<div class="modal" id="editModal">
<div class="modal-content">
<div class="modal-header">
<h3 id="modalTitle">Edit Item</h3>
<button class="modal-close" onclick="closeModal()">
<i class="fas fa-times"></i>
</button>
</div>
<div class="modal-body" id="modalBody">
<!-- Dynamic form will be inserted here -->
</div>
</div>
</div>
<script src="js/admin.js"></script>
</body>
</html>