-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccount_draft.html
148 lines (133 loc) · 7.95 KB
/
account_draft.html
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
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Account</title>
<link rel="stylesheet" href="/assets/dist/tailwind.css">
<script src="/assets/dist/tailwind.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
</link>
<link rel="stylesheet" href="/assets/css/account.css">
<meta name="description" content="Manage your Constellation Networking account settings and preferences.">
<meta name="keywords" content="Constellation Networking, account management, settings, preferences">
<meta name="author" content="Constellation Networking Team">
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FTXQ5HF0C5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-FTXQ5HF0C5');
</script>
<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="assets/js/firebase_init.js"></script>
</head>
<body class="bg-gray-100 select-none">
<div class="max-w-8xl mx-auto p-5">
<div class="flex justify-between items-center mb-4">
<div class="flex space-x-4">
<a href="/index.html">
<h1 class="font-bold text-xl">Constellation</h1>
</a>
<div class="flex space-x-4" style="padding-top: 3px">
<a href="/missions.html">Missions</a>
<a href="/connections.html">Connections</a>
<a href="/chat.html">Chat</a>
<a href="/rewards.html">Rewards</a>
</div>
</div>
<div class="flex items-center space-x-2">
<!-- <input type="text" placeholder="Search..." class="border-2 border-gray-300 rounded-full px-3 py-1"> -->
<div class="relative dropdown" tabindex="0">
<button class="border-2 border-gray-300 rounded-full p-2 focus:outline-none">
<i class="fas fa-user"></i>
</button>
<div class="dropdown-menu absolute right-0 mt-2 py-2 w-48 bg-white rounded-md shadow-xl z-20">
<a href="/setup_profile.html"
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Settings</a>
<a href="#" onclick="signout()"
class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Sign out</a>
</div>
</div>
</div>
</div>
<div class="grid grid-cols-4 gap-4">
<div class="col-span-3">
<div class="bg-white pt-4 px-2 rounded-lg shadow-md">
<div class="font-bold mb-4 pl-4">Profile</div>
<iframe src="/create_avatar.html" width="100%" height="600px" style="border:none;" class="rounded-lg"></iframe>
</div>
</div>
<div class="col-span-1">
<div class="col-span-1">
<!-- Profile section -->
<div class="bg-white p-4 rounded-lg shadow-md">
<div class="flex items-center justify-center">
<!-- <div class="border-2 border-dashed rounded-full p-4">
</div> -->
<div class="flip-container animate-scale" onclick="this.classList.toggle('flip');" onmouseover="this.classList.toggle('hover');" onmouseout="this.classList.toggle('hover');">
<div class="flipper" style="cursor: pointer;">
<div class="front" style="position: relative; width: 100%; height: 100%;">
<img id="current-user-profile-picture" width="100" height="100"
src="/assets/img/default_user.jpeg" alt="100x100" class="rounded-full">
</div>
<div class="back"
style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; backface-visibility: hidden;">
<div class="avatar-container"
style="position: relative; width: 100%; height: 100%; background-color:cornsilk; border-radius: 100%;">
</div>
<img id="hair" style="width: 100%; height: 100%;">
<img id="head" style="width: 100%; height: 100%;">
</div>
</div>
</div>
</div>
<div class="text-center mt-4">
<div class="font-bold mb-3" id="current-user-name"></div>
<div class="mt-2 p-2 rounded-md gradient hover:scale-105 duration-200"
style="cursor: pointer;">
<div id="current-user-level"></div>
</div>
<div class="mt-2 p-2 rounded-md gradient hover:scale-105 duration-200"
style="cursor: pointer;">
<div id="current-user-points"></div>
</div>
</div>
</div>
</div>
<!-- Chat section -->
<div class="bg-white p-4 rounded-lg shadow-md mt-4">
<div class="mb-4 messages-header" id="userHistoryList">Contacts</div>
<p class="text-sm text-gray-500 mb-2">Your recent contacts will appear here.</p>
<!-- Dynamic user history list will be added here -->
<!-- <div onclick="clickedChat(this)" class="user-box border-2 border-dashed rounded-lg p-4 flex justify-between items-center mb-4 cursor-pointer">
<div class="flex items-center">
<img src="https://placehold.co/50x50" alt="User's avatar" class="rounded-full mr-4">
<div>
<div class="font-bold">Jane Smith</div>
<div id="chat-user-level">Lvl. 4</div>
<div>Rep Pts. 120</div>
</div>
</div>
<div class="relative">
<svg class="progress-ring" width="40" height="40">
<circle class="progress-ring__circle" stroke="green" stroke-width="4" fill="transparent" r="16" cx="20" cy="20" id="progress-circle-jerry"/>
</svg>
<span class="absolute inset-0 flex justify-center items-center font-bold text-sm progress-ring__percentage" id="progress-text-jerry" style="font-size: 0.65rem;">0%</span>
</div>
</div> -->
</div>
</div>
</div>
</div>
</div>
</body>
<script src="/assets/js/account.js"></script>
<script src="/assets/js/avatar_preview.js"></script>
</html>