-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprofile.html
More file actions
executable file
·163 lines (142 loc) · 7.5 KB
/
profile.html
File metadata and controls
executable file
·163 lines (142 loc) · 7.5 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User Profile</title>
<link rel="stylesheet" href="assets/styles/nav.css">
<link rel="stylesheet" href="assets/styles/profile.css">
</head>
<body>
<!-- NAV -->
<div class="navbar">
<div class="logo">Knowlet</div>
<div class="actions">
<button id="login-btn" onclick="window.location.href='login_signup?popup=login'">Login</button>
<button id="signup-btn" onclick="window.location.href='login_signup?popup=signup'">Sign Up</button>
<button id="logout-btn" style="display:none;">Logout</button>
<!-- <button id="com-profile-btn" onclick="window.location.href='profile_complition_form'" style="display:none;">Complete Profile</button> -->
</div>
</div>
<div class="container">
<!-- PROFILE CARD -->
<div class="card profile-header">
<div class="profile-progress" id="profile-progress">
<img src="assets/images/demo_pp.jpg" id="profile-pic">
</div>
<div>
<h1 id="username" style="margin-bottom: 0">Your Name</h1>
<h2 id="userid" style="margin-top: 3px; color: #148e00">User ID</h2>
<p id="email">yourname@example.com</p>
</div>
</div>
<!-- LEARNING STATS -->
<div class="card" id="stats-card">
<h2 class="section-title">Your Learning Stats</h2>
<div class="stats-sections">
<!-- Block 1: Numbers -->
<div class="stats-block">
<h3>Activity</h3>
<div class="stats-grid">
<div class="stat-box">
<span class="stat-number" id="stat-comments">0</span>
<span class="stat-label">Comments</span>
</div>
<div class="stat-box">
<span class="stat-number" id="stat-likes">0</span>
<span class="stat-label">Likes</span>
</div>
<div class="stat-box">
<span class="stat-number" id="stat-ratings">0</span>
<span class="stat-label">Ratings</span>
</div>
<div class="stat-box">
<span class="stat-number" id="stat-favs">0</span>
<span class="stat-label">Favorites</span>
</div>
</div>
</div>
<!-- Block 2: Streak -->
<div class="stats-block">
<h3>7 Day Streak</h3>
<div class="streak-row" id="streak-row"></div>
<p id="streak-text">🔥 0 Day Streak</p>
<p id="freeze-text"></p>
</div>
<!-- Block 3: Level -->
<div class="stats-block">
<h3>Level</h3>
<p id="level-text">Level: Beginner Explorer</p>
<p id="next-level-text"></p>
<div class="level-bar">
<div id="level-fill" class="level-fill"></div>
</div>
<p id="xp-text"></p>
</div>
</div>
</div>
<!-- RECENT ACTIVITY -->
<div class="card">
<h2 class="section-title">
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M13 3a9 9 0 0 0-9 9H1l4 4 4-4H6a7 7 0 1 1 7 7 c-1.93 0-3.68-.78-4.95-2.05l-1.42 1.42A8.96 8.96 0 1 0 13 3zm-1 5v5l4.25 2.52.75-1.23-3.5-2.04V8z"/>
</svg>
Recent Activity
</h2>
<ul id="recent-activity-view">
<p class="empty-message">Loading Recent Activity ...</p>
</ul>
</div>
<!-- SETTINGS -->
<div class="card">
<h2 class="section-title">
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M19.14 12.94c.04-.31.06-.63.06-.94s-.02-.63-.06-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.11-.2-.36-.28-.57-.2l-2.39.96a7.03 7.03 0 0 0-1.63-.94l-.36-2.54A.486.486 0 0 0 13.92 2h-3.84c-.24 0-.44.17-.48.41l-.36 2.54c-.58.23-1.12.54-1.63.94l-2.39-.96c-.21-.08-.46 0-.57.2L2.73 8.45c-.11.2-.06.47.12.61l2.03 1.58c-.04.31-.06.63-.06.94s.02.63.06.94L2.85 13.6c-.18.14-.23.41-.12.61l1.92 3.32c.11.2.36.28.57.2l2.39-.96c.51.4 1.05.71 1.63.94l.36 2.54c.04.24.24.41.48.41h3.84c.24 0 .44-.17.48-.41l.36-2.54c.58-.23 1.12-.54 1.63-.94l2.39.96c.21.08.46 0 .57-.2l1.92-3.32c.11-.2.06-.47-.12-.61l-2.03-1.58zM12 15.5A3.5 3.5 0 1 1 12 8a3.5 3.5 0 0 1 0 7.5z"/>
</svg>
Account Settings
</h2>
<div class="settings-links">
<a href="profile_complition_form">
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M3 17.25V21h3.75L18.37 9.38l-3.75-3.75L3 17.25z"/>
<path d="M20.71 7.04a1 1 0 0 0 0-1.41L18.37 3.29a1 1 0 0 0-1.41 0L15.13 5.12l3.75 3.75 1.83-1.83z"/>
</svg>
Edit Profile
</a>
<a href="#">
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<g transform="translate(12,12) rotate(-45) scale(-1, 1) translate(-12,-12)">
<circle cx="7" cy="12" r="5" fill="currentColor" />
<circle cx="7" cy="12" r="2" fill="white" />
<rect x="11" y="11" width="10" height="2" rx="1" fill="currentColor" />
<rect x="15" y="13" width="1.5" height="3" rx="0.5" fill="currentColor" />
<rect x="18" y="13" width="1.5" height="3" rx="0.5" fill="currentColor" />
</g>
</svg>
Change Password
</a>
<a href="#">
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 22a2 2 0 0 0 2-2h-4a2 2 0 0 0 2 2zm6-6V11 c0-3.07-1.63-5.64-4.5-6.32V4 a1.5 1.5 0 0 0-3 0v.68 C7.63 5.36 6 7.92 6 11v5 l-2 2v1h16v-1l-2-2z"/>
</svg>
Notification Preferences
</a>
<a href="legal/privacy-policy">
<svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
<path d="M12 2l8 4v6 c0 5-3.4 9.74-8 11 -4.6-1.26-8-6-8-11V6l8-4z"/>
</svg>
Privacy Controls
</a>
</div>
</div>
</div>
<div id="loader" class="popup-overlay" style="display: none">
<div class="loader"></div>
</div>
<nav id="bottom-nav" class="bottom-nav"></nav>
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="assets/scripts/nav.js"></script>
<script src="assets/scripts/utils.js"></script>
<script src="assets/scripts/profile.js"></script>
</body>
</html>