Dashboard Temp Share Shortlinks Frames API

HTMLify

admin.html
Views: 38 | Author: karbonsites
 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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Health Monitor - Admin</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap" rel="stylesheet">
</head>
<body>
    <header class="header">
        <div class="container header-content">
            <h1 class="logo">HealthPulse Admin</h1>
            <nav>
                <a href="index.html" class="nav-link">Dashboard</a>
                <a href="profile.html" class="nav-link">Profile</a>
                <a href="tips.html" class="nav-link">Tips & Products</a>
                <a href="admin.html" class="nav-link active admin-link">Admin</a>
            </nav>
        </div>
    </header>

    <main class="container main-content">
        <section id="adminPanel" class="card fade-in">
            <h2 class="section-title">Admin Control Center</h2>

            <!-- User Management -->
            <div class="admin-section">
                <h3>User Account Overview</h3>
                <div class="user-list-container">
                    <ul id="userList" class="user-list">
                        <!-- User data injected here -->
                        <li class="user-item">
                            <span>John Smith (john@mail.com)</span>
                            <span class="user-status active">Active</span>
                        </li>
                        <li class="user-item">
                            <span>Alice Johnson (alice@mail.com)</span>
                            <span class="user-status inactive">Inactive</span>
                        </li>
                    </ul>
                </div>
            </div>

            <!-- Broadcast Message/Tip Creation -->
            <div class="admin-section">
                <h3>Broadcast Health Tip / Message</h3>
                <form id="broadcastForm">
                    <label for="broadcastType">Target:</label>
                    <select id="broadcastType">
                        <option value="push">Push Notification</option>
                        <option value="email">Email Broadcast</option>
                    </select>
                    <label for="broadcastTitle">Title:</label>
                    <input type="text" id="broadcastTitle" placeholder="Short compelling title" required>
                    <label for="broadcastContent">Content:</label>
                    <textarea id="broadcastContent" rows="3" placeholder="Detailed health tip or message..." required></textarea>
                    <button type="submit" class="cta-button submit-tip-button">Send Broadcast</button>
                    <p id="broadcastMessage" class="message"></p>
                </form>
            </div>

            <!-- Product Management -->
            <div class="admin-section">
                <h3>Manage Product Recommendations</h3>
                <form id="productForm">
                    <input type="text" id="productName" placeholder="Product Name" required>
                    <input type="number" id="productPrice" placeholder="Price (KSh)" required>
                    <textarea id="productDesc" placeholder="Short Description" required></textarea>
                    <input type="url" id="productImage" placeholder="Image URL (Placeholder)" required>
                    <button type="submit" class="cta-button submit-tip-button">Add New Product</button>
                    <p id="productMessage" class="message"></p>
                </form>
            </div>

        </section>
    </main>

    <footer class="footer">
        <p>&copy; 2024 HealthPulse. Designed for Mobile First.</p>
    </footer>

    <script src="script.js"></script>

  <a href="https://karbonsites.space/home" target="_blank" id="karbon-promo-banner">
      <span></span>
      <div>Built with <b>Karbon Sites</b></div>
  </a>
</body>
</html>