-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
109 lines (98 loc) · 4.16 KB
/
index.html
File metadata and controls
109 lines (98 loc) · 4.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MindMend – Home</title>
<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=Playfair+Display:wght@500;700&family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- ==================== HEADER (unchanged) ==================== -->
<header>
<div class="container nav">
<div class="brand">MINDMEND</div>
<nav>
<ul>
<li><a href="index.html">HOME</a></li>
<li><a href="ai.html">MINDMEND AI</a></li>
<li><a href="journal.html">JOURNAL</a></li>
<li><a href="counselor.html">COUNSELOR</a></li>
<li><a href="contact.html">CONTACT</a></li>
<li><a href="login.html" id="accountLink">SIGN UP</a></li>
<li><button id="logoutBtn" class="btn" style="display:none">LOG OUT</button></li>
</ul>
</nav>
</div>
<div style="text-align:center;color:#fff;padding:6px 0 14px;opacity:.9">
“EMPOWERING STUDENTS TO EXPRESS, HEAL, AND GROW”
</div>
</header>
<!-- ==================== HERO (exact mockup) ==================== -->
<section class="hero-section">
<div class="container hero-grid">
<div class="hero-text">
<h1>Your space to<br><span>reflect, chat, and<br>heal</span></h1>
<p class="lead">
MindMend helps college students manage mental health<br>
with tools for journaling, AI chat, and real therapist connections.
</p>
<button class="cta-big">Start healing today</button>
</div>
<img src="https://cdn.jsdelivr.net/gh/DavidBayekula/MindMendTesting@main/girl_reading-optim.jpg"
alt="Student journaling"
width="480" height="480"
class="hero-illo-img">
<div class="feature-cards">
<a href="ai.html" class="fcard">
<div class="icon">💬</div>
<div class="title">AI Chat</div>
</a>
<a href="journal.html" class="fcard">
<div class="icon">📖</div>
<div class="title">Daily Journal</div>
</a>
<a href="counselor.html" class="fcard">
<div class="icon">👥</div>
<div class="title">Find a Counselor</div>
</a>
</div>
</div>
<div class="container banner-quote">
<p id="daily-quote">…</p>
<p id="daily-author" style="font-size:16px; margin-top:8px; opacity:.85;"></p>
</div>
</section>
<footer class="container">
<div>© <span id="year"></span> MindMend • All rights reserved.</div>
</footer>
<!-- Supabase + Core (unchanged) -->
<script type="module">
import { createClient } from "https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2/+esm";
window.SUPABASE_URL = "https://pgpxmtkzgifspotnjrpi.supabase.co";
window.SUPABASE_ANON_KEY = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InBncHhtdGt6Z2lmc3BvdG5qcnBpIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NTg4Mzc3MjQsImV4cCI6MjA3NDQxMzcyNH0.me3WRQM5CdGq8bAIRNMsk07lUqxkLUbeIRAgvrc_sYs";
window.supabase = createClient(window.SUPABASE_URL, window.SUPABASE_ANON_KEY);
// Load quotes.json
const response = await fetch('quotes.json');
const quotes = await response.json();
// Daily deterministic picker
const start = new Date('2025-01-01').setHours(0,0,0,0);
const today = new Date().setHours(0,0,0,0);
const dayIndex = Math.floor((today - start) / 86400000) % quotes.length;
const { quote, author } = quotes[dayIndex];
// Inject
document.getElementById('daily-quote').textContent = `“${quote}”`;
document.getElementById('daily-author').textContent = `— ${author}`;
</script>
<script src="core.js"></script>
<script>
document.getElementById('year').textContent = new Date().getFullYear();
// Simple CTA → scroll to features (or open login if logged out)
document.querySelector('.cta-big').addEventListener('click', () => {
document.querySelector('.feature-cards').scrollIntoView({ behavior: 'smooth' });
});
</script>
</body>
</html>