Repository navigation
Expand file tree
/
Copy pathJournalPage.html
More file actions
147 lines (120 loc) · 5.81 KB
/
Copy pathJournalPage.html
File metadata and controls
147 lines (120 loc) · 5.81 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Your private journal space on MINDBRIDGE - Express yourself, track your emotions, and reflect on your mental health journey.">
<meta name="keywords" content="mental health journal, emotional diary, private journaling, self-reflection">
<meta name="robots" content="noindex, nofollow">
<title>Journal - MINDBRIDGE</title>
<link rel="stylesheet" href="Styles/Journal.css">
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@flaticon/flaticon-uicons/css/all/all.css">
</head>
<body>
<!-- Sidebar Navigation -->
<nav class="sidebar" id="sidebar">
<div class="sidebar-inner">
<div class="logo">
<h2><span class="mind">MIND</span> <span class="bridge">BRIDGE</span></h2>
</div>
<ul class="nav-links">
<li class="nav-item-dashboard active"><i class="fi fi-sr-home"></i><span>Dashboard</span></li>
<li class="nav-item-journal active"><i class="fi fi-sr-book-alt"></i><span>Journal</span></li>
<li class="nav-item-ai-companion active"><i class="fi fi-sr-robot"></i><span>AI Companion</span></li>
<li class="nav-item-community active"><i class="fi fi-sr-users"></i><span>Community</span></li>
<li class="nav-item-breathing active"><i class="fi fi-sr-wind"></i><span>Breathing</span></li>
</ul>
<div class="pricing-card">
<h3>PRICING PLANS</h3>
<p>Get Access to our additional features</p>
<button>Get Started</button>
</div>
<ul class="bottom-links">
<li class="bottom-item-settings active"><i class="fi fi-sr-settings"></i><span>Settings</span></li>
<li class="bottom-item-help-center active"><i class="fi fi-sr-interrogation"></i><span>Help Center</span></li>
<li class="bottom-item-logout active"><i class="fi fi-sr-sign-out-alt"></i><span>Logout</span></li>
</ul>
</div>
<!-- Toggle Button Always Visible -->
<button class="toggle-btn" id="toggleBtn">
<i class="fi fi-rr-angle-left"></i>
</button>
</nav>
<!-- Header -->
<header class="header" id="header">
<div class="header-left">
<h1>JOURNAL</h1>
</div>
<div class="header-center">
<div class="search-bar">
<input type="text" placeholder="Search...">
<button><i class="fi fi-rr-search"></i></button>
</div>
</div>
<div class="header-right">
<i class="fi fi-rr-bell notification-icon"></i>
<div class="user-profile">
<img src="https://cdn-icons-png.flaticon.com/512/847/847969.png" alt="User">
<span class="username">Topor24k</span>
</div>
</div>
</header>
<script>
const sidebar = document.getElementById("sidebar");
const toggleBtn = document.getElementById("toggleBtn");
const icon = toggleBtn.querySelector("i");
toggleBtn.addEventListener("click", () => {
sidebar.classList.toggle("collapsed");
// flip icon direction
if (sidebar.classList.contains("collapsed")) {
icon.classList.remove('fi-rr-angle-left');
icon.classList.add('fi-rr-angle-right');
} else {
icon.classList.remove('fi-rr-angle-right');
icon.classList.add('fi-rr-angle-left');
}
});
// ======== PAGE NAVIGATION ACTIONS ======== //
document.querySelector(".nav-item-dashboard").addEventListener("click", () => {
window.location.href = "DashboardPage.html";
});
document.querySelector(".nav-item-breathing").addEventListener("click", () => {
window.location.href = "BreathingPage.html";
});
document.querySelector(".nav-item-ai-companion").addEventListener("click", () => {
window.location.href = "AICompanionPage.html";
});
document.querySelector(".nav-item-community").addEventListener("click", () => {
window.location.href = "CommunityPage.html";
});
document.querySelector(".bottom-item-logout").addEventListener("click", () => {
window.location.href = "LandingPage.html";
});
document.querySelector(".bottom-item-settings").addEventListener("click", () => {
window.location.href = "SettingsPage.html";
});
document.querySelector(".bottom-item-help-center").addEventListener("click", () => {
window.location.href = "HelpCenterPage.html";
});
document.querySelector(".username").addEventListener("click", () => {
window.location.href = "UserProfilePage.html";
});
document.querySelector(".nav-item-dashboard").addEventListener("click", () => {
window.location.href = "DashboardPage.html";
});
document.querySelector(".bottom-item-logout").addEventListener("click", () => {
window.location.href = "LandingPage.html";
});
document.querySelector(".bottom-item-settings").addEventListener("click", () => {
window.location.href = "SettingsPage.html";
});
document.querySelector(".bottom-item-help-center").addEventListener("click", () => {
window.location.href = "HelpCenterPage.html";
});
document.querySelector(".username").addEventListener("click", () => {
window.location.href = "UserProfilePage.html";
});
</script>
</body>
</html>