-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.html
More file actions
121 lines (107 loc) · 4.28 KB
/
profile.html
File metadata and controls
121 lines (107 loc) · 4.28 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile - NoteVault</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<style>
.profile-card {
max-width: 600px;
margin: 2rem auto;
padding: 2.5rem;
text-align: left;
}
.profile-header {
text-align: center;
margin-bottom: 2rem;
}
.profile-avatar {
font-size: 4rem;
margin-bottom: 1rem;
}
.profile-detail {
border-bottom: 1px solid var(--card-border);
padding: 1rem 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.profile-detail:last-of-type {
border-bottom: none;
margin-bottom: 2rem;
}
.detail-label {
font-weight: 600;
color: var(--text-muted);
font-size: 0.9rem;
}
.detail-value {
font-size: 1.05rem;
font-weight: 500;
}
</style>
</head>
<body>
<nav class="navbar">
<div class="logo">📚 NoteVault</div>
<div class="nav-links" id="nav-links">
<a href="index.html">Home</a>
<a href="upload.html">Upload Notes</a>
<a href="profile.html" id="nav-profile-link" class="btn-secondary active">Hello, User</a>
</div>
<div class="nav-controls">
<button id="theme-toggle" aria-label="Toggle Dark Mode">🌙</button>
<button id="mobile-menu-btn" class="mobile-menu-btn" aria-label="Toggle Mobile Menu">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"
stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</button>
</div>
</nav>
<main class="container">
<header class="page-header center-header">
<h1>Your Profile</h1>
</header>
<section class="upload-section">
<div class="card profile-card">
<div class="profile-header">
<div class="profile-avatar">👤</div>
<h2 id="profile-name-header">Loading...</h2>
</div>
<div class="profile-detail">
<span class="detail-label">Full Name</span>
<span class="detail-value" id="profile-name">-</span>
</div>
<div class="profile-detail">
<span class="detail-label">Email Address</span>
<span class="detail-value" id="profile-email">-</span>
</div>
<div class="profile-detail">
<span class="detail-label">Mobile Number</span>
<span class="detail-value" id="profile-mobile">-</span>
</div>
<div class="profile-detail">
<span class="detail-label">Gender</span>
<span class="detail-value" id="profile-gender">-</span>
</div>
<div class="profile-detail">
<span class="detail-label">Member Since</span>
<span class="detail-value" id="profile-date">-</span>
</div>
<button id="logout-btn" class="btn-primary w-100"
style="background-color: var(--danger-color); box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);">Log
Out</button>
</div>
</section>
</main>
<!-- Supabase -->
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="supabase.js"></script>
<script src="script.js"></script>
</body>
</html>