Dashboard Temp Share Shortlinks Frames API

HTMLify

tips.html
Views: 53 | 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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Health Monitor - Tips & Products</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</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 active">Tips & Products</a>
                <a href="admin.html" class="nav-link admin-link">Admin</a>
            </nav>
        </div>
    </header>

    <main class="container main-content">
        <section id="tipsSection" class="card fade-in">
            <h2 class="section-title">Personalized Health Tips</h2>
            <div id="tipContainer" class="tip-list">
                <!-- AI Generated Tips -->
                <article class="tip-card">
                    <h4>Tip: Hydration Focus</h4>
                    <p>Based on your high-stress log yesterday, ensure you are drinking at least 2 liters of water today. Dehydration exacerbates stress symptoms.</p>
                    <span class="tip-source">AI Health Engine</span>
                </article>
            </div>
        </section>

        <section id="productsSection" class="card fade-in-delay">
            <h2 class="section-title">Recommended Products</h2>
            <div id="productList" class="product-grid">
                <!-- Product recommendations will be injected here -->
                <div class="product-card">
                    <img src="https://via.placeholder.com/150/A0C4FF/FFFFFF?text=Ergonomic+Chair" alt="Ergonomic Chair">
                    <h4>ErgoFlow Office Chair</h4>
                    <p class="price">KSh 15,000</p>
                    <p class="description">Supports posture for long working hours.</p>
                    <button class="buy-button" data-product-id="P001">Purchase via Mpesa</button>
                </div>
                <div class="product-card">
                    <img src="https://via.placeholder.com/150/FFC3A0/FFFFFF?text=Calm+Tea" alt="Calm Tea">
                    <h4>Serenity Herbal Tea</h4>
                    <p class="price">KSh 850</p>
                    <p class="description">Natural blend to aid relaxation before sleep.</p>
                    <button class="buy-button" data-product-id="P002">Purchase via Mpesa</button>
                </div>
            </div>
        </section>

        <!-- Mpesa Modal Structure (Hidden by default) -->
        <div id="mpesaModal" class="modal">
            <div class="modal-content">
                <span class="close-button">&times;</span>
                <h3>Mpesa Payment for <span id="modalProductName">Product</span></h3>
                <p>Total: <strong id="modalPrice">KSh 0.00</strong></p>
                <label for="mpesaPhone">Your Mpesa Phone Number:</label>
                <input type="tel" id="mpesaPhone" placeholder="e.g., 07XX XXX XXX" required>
                <button id="confirmMpesaPayment" class="cta-button payment-button">Pay Now</button>
                <p id="paymentStatus" class="message"></p>
            </div>
        </div>
    </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>