-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-logged-in.html
267 lines (257 loc) · 21.7 KB
/
index-logged-in.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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>DigiCash Dashboard</title>
<meta name="description" content="The one dashboard to manage your DigiCash. Don't have any? Create an account and get some free credits">
<link rel="icon" type="image/png" sizes="500x500" href="assets/img/icon.png?h=65db8f52059975fa40b00e7f7accfb7e">
<link rel="icon" type="image/png" sizes="500x500" href="assets/img/icon.png?h=65db8f52059975fa40b00e7f7accfb7e">
<link rel="icon" type="image/png" sizes="500x500" href="assets/img/icon.png?h=65db8f52059975fa40b00e7f7accfb7e">
<link rel="icon" type="image/png" sizes="500x500" href="assets/img/icon.png?h=65db8f52059975fa40b00e7f7accfb7e">
<link rel="icon" type="image/png" sizes="500x500" href="assets/img/icon.png?h=65db8f52059975fa40b00e7f7accfb7e">
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css?h=cb606d99bb2418df19b6bc818b41e412">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i&display=swap">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap">
<link rel="stylesheet" href="assets/fonts/fontawesome-all.min.css?h=bb270fba1988038f5680f75b7475565e">
<link rel="stylesheet" href="assets/css/animated-services.css?h=999aac9edd71396446e18beb66d01a03">
<link rel="stylesheet" href="assets/css/Articles-Cards-images.css?h=4f3cfa46e40e236365345fc77963f4b8">
<link rel="stylesheet" href="assets/css/Bootstrap-Callout-Danger.css?h=a01ce0f06f835595f67acd16b3bf64e9">
<link rel="stylesheet" href="assets/css/Bootstrap-Callout-Info.css?h=15b43fafd5928244e49dc20add914164">
<link rel="stylesheet" href="assets/css/Navbar-Right-Links-Dark-icons.css?h=0665e33d047a1482292ef967f3a249e2">
</head>
<body style="height: 1000px;background: #f3f4f6;">
<nav class="navbar navbar-light navbar-expand bg-white shadow mb-4 topbar static-top" style="border-radius: 10px;">
<div class="container-fluid"><button class="btn btn-link d-md-none rounded-circle me-3" id="sidebarToggleTop" type="button"><i class="fas fa-bars"></i></button>
<h3 class="text-dark mb-0"><span class="text-center d-xl-flex justify-content-xl-center align-items-xl-center"><i class="far fa-smile-wink" style="font-size: 23px;"></i> DigiCash Dashboard</span></h3>
<div class="collapse navbar-collapse" id="navcol-1">
<ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link active" href="app/dashboard.html" style="color: #000000;">Dashboard</a></li>
<li class="nav-item" style="color: #000000;"><a class="nav-link" href="app/profile.html" style="color: #000000;">Profile</a></li>
<li class="nav-item" style="color: #000000;"><a class="nav-link" href="about.html" style="color: #000000;">About</a></li>
</ul>
</div>
<ul class="navbar-nav flex-nowrap ms-auto">
<li class="nav-item dropdown d-sm-none no-arrow"><a class="dropdown-toggle nav-link" aria-expanded="false" data-bs-toggle="dropdown" href="#"><i class="fas fa-search"></i></a>
<div class="dropdown-menu dropdown-menu-end p-3 animated--grow-in" aria-labelledby="searchDropdown">
<form class="me-auto navbar-search w-100">
<div class="input-group"><input class="bg-light form-control border-0 small" type="text" placeholder="Search for ...">
<div class="input-group-append"><button class="btn btn-primary py-0" type="button"><i class="fas fa-search"></i></button></div>
</div>
</form>
</div>
</li>
<div class="d-none d-sm-block topbar-divider"></div>
<li class="nav-item dropdown no-arrow">
<!-- Start: account thign -->
<div class="nav-item dropdown no-arrow"><a class="dropdown-toggle nav-link" aria-expanded="false" data-bs-toggle="dropdown" href="#"><span class="d-none d-lg-inline me-2 text-gray-600 small">Guest</span><script>const account = JSON.parse(document.cookie.split(';').find(cookie => cookie.startsWith('account=')).split('=')[1]);
const firstName = account['first-name'];
const lastName = account['last-name'];
const nameSpan = document.querySelector('.text-gray-600');
nameSpan.innerHTML = `${firstName} ${lastName}`;
</script>
<img class="border rounded-circle img-profile" src="assets/img/default-pfp.webp?h=ca785a70dace4e45ddd7ee8c2dd50cec" />
<script>
const dashboardAccessToken_123 = 'patDs6HNgXDsAGKtn.b4b12d712365527fb18967b9d0a6002800857dc8309181510f6963ad2b45019d';
const baseId_456 = 'appj9R8cdDKBA2Khb';
const accountsUrl = `https://api.airtable.com/v0/${baseId_456}/${tableName}`;
const accountCookieName = 'account';
const imgProfile = document.querySelector('.img-profile');
// Retrieve account data from cookie
const getAccountFromCookie = () => {
const cookieValue = document.cookie
.split('; ')
.find(row => row.startsWith(`${accountCookieName}=`))
?.split('=')[1];
return cookieValue ? JSON.parse(cookieValue) : null;
}
// Set default image
imgProfile.setAttribute('src', 'default-pfp.png');
// Update image from Airtable if account cookie exists
const userAccount = getAccountFromCookie();
if (userAccount && userAccount.fields && userAccount.fields.pfp) {
const pfpUrl = userAccount.fields.pfp[0].url;
imgProfile.setAttribute('src', pfpUrl);
}
</script></a>
<div class="dropdown-menu shadow dropdown-menu-end animated--grow-in"><a class="dropdown-item" href="../app/profile.html"><i class="fas fa-user fa-sm fa-fw me-2 text-gray-400"></i> Profile</a><a class="dropdown-item" href="../app/profile.html"><i class="fas fa-cogs fa-sm fa-fw me-2 text-gray-400"></i> Settings</a><a class="dropdown-item" href="#"><i class="fas fa-list fa-sm fa-fw me-2 text-gray-400"></i> Activity log</a>
<div class="dropdown-divider"></div><a class="dropdown-item" href="../logout.html"><i class="fas fa-sign-out-alt fa-sm fa-fw me-2 text-gray-400"></i> Logout</a>
</div>
</div><!-- End: account thign -->
</li>
</ul>
</div>
</nav>
<section><img class="img-fluid d-md-none" src="assets/img/hero-mobile.webp?h=17c31e3d95b1c1f85f0e497a303b543e"><!-- Start: Hero -->
<div data-bss-scroll-zoom="true" data-bss-scroll-zoom-speed="0.3" style="background-image: url("assets/img/hero.webp?h=1403e4e8cf694a27db90595253ab8473");background-position: center;background-size: cover;">
<!-- Start: Hero Content -->
<div class="text-center d-flex flex-column justify-content-center align-items-center py-4 px-3 hero-content" style="height: 650px;">
<h1 class="display-1 fw-bold" style="color: rgb(0,0,0);">One currency,<br>Still money</h1>
<p class="font-monospace text-center" style="font-family: monospace!important;color: rgb(0,0,0);font-weight: bold;">DigiCash Banking System - v0.9.2</p>
<p class="fs-5">Welcome back!</p><a class="btn btn-dark" role="button" href="app/dashboard.html">Open Dashboard</a>
</div><!-- End: Hero Content -->
</div><!-- End: Hero -->
</section>
<section style="margin-top: 102px;">
<h1 class="display-4 text-center" style="color: rgb(0,0,0);font-weight: bold;margin-top: 30px;">How's DigiCash?</h1>
<div class="container text-center d-xl-flex justify-content-xl-center">
<div class="col-md-6 col-xl-3 mb-4" style="width: 100%;">
<div class="card shadow border-start-primary py-2">
<div class="card-body"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" viewBox="0 0 16 16" class="bi bi-currency-dollar fa-2x text-gray-300" style="color: rgb(0,0,0)!important;font-size: 58px;">
<path d="M4 10.781c.148 1.667 1.513 2.85 3.591 3.003V15h1.043v-1.216c2.27-.179 3.678-1.438 3.678-3.3 0-1.59-.947-2.51-2.956-3.028l-.722-.187V3.467c1.122.11 1.879.714 2.07 1.616h1.47c-.166-1.6-1.54-2.748-3.54-2.875V1H7.591v1.233c-1.939.23-3.27 1.472-3.27 3.156 0 1.454.966 2.483 2.661 2.917l.61.162v4.031c-1.149-.17-1.94-.8-2.131-1.718H4zm3.391-3.836c-1.043-.263-1.6-.825-1.6-1.616 0-.944.704-1.641 1.8-1.828v3.495l-.2-.05zm1.591 1.872c1.287.323 1.852.859 1.852 1.769 0 1.097-.826 1.828-2.2 1.939V8.73l.348.086z"></path>
</svg>
<div class="row align-items-center no-gutters">
<div class="col me-2">
<div class="text-capitalize fw-bold text-primary text-xs mb-1" style="font-size: 15px;"><span style="font-size: 29px;">Current DigiCash Value</span></div>
<div class="fw-bold text-dark h5 mb-0"><span id="price" style="font-size: 25px;"></span></div>
<div class="text-xs mt-1"><span id="change" style="font-size: 11.2px;"></span></div>
</div>
</div>
</div>
</div><script>
// fetch the price data
fetch('app/price.txt')
.then(response => response.text())
.then(data => {
const price = parseFloat(data.trim());
document.getElementById('price').textContent = `AED${price.toFixed(2)}`;
// fetch the last price data
fetch('app/lastprice.txt')
.then(response => response.text())
.then(data => {
const lastPrice = parseFloat(data.trim());
const percentageChange = ((price - lastPrice) / lastPrice) * 100;
const changeElement = document.getElementById('change');
changeElement.textContent = `${percentageChange.toFixed(2)}%`;
// determine whether the change is positive or negative
if (percentageChange > 0) {
changeElement.style.color = 'green';
changeElement.textContent = `+${percentageChange.toFixed(2)}%`;
} else if (percentageChange < 0) {
changeElement.style.color = 'red';
}
})
.catch(error => console.error(error));
})
.catch(error => console.error(error));
</script>
</div>
</div>
</section>
<section class="text-center" style="width: 100%;height: auto;">
<!-- Start: Articles Cards -->
<div class="container py-4 py-xl-5" style="color: rgb(0,0,0);">
<div class="row mb-5">
<div class="col-md-8 col-xl-6 text-center mx-auto">
<h2>News</h2>
<p>Stay up to date with critical news about DigiCash.</p>
</div>
</div>
<div class="row gy-4 row-cols-1 row-cols-md-2 row-cols-xl-3">
<div class="col">
<div class="card"><img class="card-img-top w-100 d-block fit-cover" style="height: 200px;" src="https://cdn.bootstrapstudio.io/placeholders/1400x800.png">
<div class="card-body p-4">
<p class="text-primary card-text mb-0">Article</p>
<h4 class="card-title">In work</h4>
<p class="card-text">Works in the progress for new information, updates and critical events</p>
<div class="d-flex"><img class="rounded-circle flex-shrink-0 me-3 fit-cover" width="50" height="50" src="https://cdn.bootstrapstudio.io/placeholders/1400x800.png">
<div>
<p class="fw-bold mb-0">John Smith</p>
<p class="text-muted mb-0">Erat netus</p>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card"><img class="card-img-top w-100 d-block fit-cover" style="height: 200px;" src="assets/img/icon.png?h=65db8f52059975fa40b00e7f7accfb7e">
<div class="card-body p-4">
<p class="text-primary card-text mb-0">Critical Events</p>
<h4 class="card-title">New management</h4>
<p class="card-text">iCorp, Bank of iCorp, DigiCash and its subsidiary services have been bought by another company.</p>
<div class="d-flex"><img class="rounded-circle flex-shrink-0 me-3 fit-cover" width="50" height="50" src="assets/img/profile.png?h=64263933f7b74e7557ab6bc5963e00bc">
<div>
<p class="fw-bold mb-0">Iyaad Mohamed Arshad</p>
<p class="text-muted mb-0">Ex-Chairman</p>
</div>
</div>
</div>
</div>
</div>
<div class="col">
<div class="card"><img class="card-img-top w-100 d-block fit-cover" style="height: 200px;" src="assets/img/icon.png?h=65db8f52059975fa40b00e7f7accfb7e">
<div class="card-body p-4">
<p class="text-primary card-text mb-0">Info</p>
<h4 class="card-title">New Logo!</h4>
<p class="card-text">What do you think of our brand new golden smile? Ought to bring the life back into the company</p>
<div class="d-flex"><img class="rounded-circle flex-shrink-0 me-3 fit-cover" width="50" height="50" src="assets/img/profile.png?h=64263933f7b74e7557ab6bc5963e00bc">
<div>
<p class="fw-bold mb-0">Iyaad Mohamed Arshad</p>
<p class="text-muted mb-0">Ex-Chairman</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div><!-- End: Articles Cards -->
<div class="container">
<!-- Start: Bar Chart -->
<div class="chart-area"><canvas data-bss-chart="{"type":"line","data":{"labels":["Dec 2022","Jan 2023","Feb 2023","Mar 2023","Apr 2023","Now"],"datasets":[{"label":"Value","fill":true,"data":["0.01","0.0075","0.02375","0.005","0.03","0.02"],"backgroundColor":"#d5e8e5","borderColor":"#007560"}]},"options":{"maintainAspectRatio":false,"legend":{"display":false,"labels":{"fontStyle":"normal"},"position":"top"},"title":{"fontStyle":"normal","display":true,"text":"Value per coin (AED)","fontSize":15,"fontColor":"#000000"},"scales":{"xAxes":[{"gridLines":{"color":"rgb(234, 236, 244)","zeroLineColor":"rgb(234, 236, 244)","drawBorder":false,"drawTicks":false,"borderDash":["2"],"zeroLineBorderDash":["2"],"drawOnChartArea":false},"ticks":{"fontColor":"#000000","fontStyle":"normal","padding":20}}],"yAxes":[{"gridLines":{"color":"rgb(234, 236, 244)","zeroLineColor":"rgb(234, 236, 244)","drawBorder":false,"drawTicks":false,"borderDash":["2"],"zeroLineBorderDash":["2"]},"ticks":{"fontColor":"#000000","fontStyle":"normal","padding":20}}]}}}"></canvas></div><!-- End: Bar Chart -->
<!-- Start: Bar Chart -->
<div class="chart-area"><canvas data-bss-chart="{"type":"line","data":{"labels":["Dec 2022","Jan 2023","Feb 2023","Mar 2023","Apr 2023","Now"],"datasets":[{"label":"Value","fill":true,"data":["95","85","255","75","150","330"],"backgroundColor":"#d5e8e5","borderColor":"#007560"}]},"options":{"maintainAspectRatio":false,"legend":{"display":false,"labels":{"fontStyle":"normal"},"position":"top"},"title":{"fontStyle":"normal","display":true,"text":"Market cap (AED)","fontSize":10,"fontColor":"#000000"},"scales":{"xAxes":[{"gridLines":{"color":"rgb(234, 236, 244)","zeroLineColor":"rgb(234, 236, 244)","drawBorder":false,"drawTicks":false,"borderDash":["2"],"zeroLineBorderDash":["2"],"drawOnChartArea":false},"ticks":{"fontColor":"#000000","fontStyle":"normal","padding":20}}],"yAxes":[{"gridLines":{"color":"rgb(234, 236, 244)","zeroLineColor":"rgb(234, 236, 244)","drawBorder":false,"drawTicks":false,"borderDash":["2"],"zeroLineBorderDash":["2"]},"ticks":{"fontColor":"#000000","fontStyle":"normal","padding":20}}]}}}"></canvas></div><!-- End: Bar Chart -->
</div>
</section>
<section class="my-5 py-5">
<!-- Start: 1 Row 1 Column -->
<div class="container">
<div class="row">
<div class="col-md-12 text-center py-5" style="color: rgb(0,0,0);">
<p class="fw-bold text-muted" style="color: rgb(0,0,0);">Everyday essentials</p>
<h3 class="display-6 fw-bold mb-4" style="color: rgb(0,0,0);">Send, spend and save smarter</h3>
<p style="color: rgb(0,0,0);">Make day-to-day spending a breeze with all things money in one place</p>
</div>
</div>
</div><!-- End: 1 Row 1 Column -->
<!-- Start: 2 Rows 1+2 Columns -->
<div class="container">
<div class="row mb-4">
<div class="col-md-12">
<div class="card text-white"><img class="card-img w-100 d-block d-md-none" src="assets/img/payments-mobile.webp?h=5cf1ebe3305d29b7db312152411b1959"><img class="card-img w-100 d-block d-none d-md-block" src="assets/img/payments.webp?h=6864f4626a28a9e59ae4a43bf30470b8">
<div class="card-img-overlay d-flex flex-column align-items-start p-4 card-content-half p-xl-5">
<h4 class="fs-1 mt-md-auto">Pay and get paid, hassle-free</h4>
<p>Send and receive money with a tap, available in 200+ countries</p><button class="btn btn-primary mt-md-auto" type="button" style="background: transparent;color: transparent;border-style: none;">Learn more<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" class="icon icon-tabler icon-tabler-arrow-right">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<line x1="5" y1="12" x2="19" y2="12"></line>
<line x1="13" y1="18" x2="19" y2="12"></line>
<line x1="13" y1="6" x2="19" y2="12"></line>
</svg></button>
</div>
</div>
</div>
</div>
<div class="row gy-4">
<div class="col-md-6">
<div class="card"><img class="card-img w-100 d-block" src="assets/img/savings.webp?h=df0dbd198bd8812668b4e7c17ae9e509">
<div class="card-img-overlay d-flex flex-column align-items-start p-4 p-xl-5">
<h4 class="fs-1">Earn with age</h4>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card text-white"><img class="card-img w-100 d-block" src="assets/img/rewards.webp?h=83d5c42177b0aac72dc33ae1d10f94a7">
<div class="card-img-overlay d-flex flex-column align-items-start p-4 p-xl-5">
<h4 class="fs-1">Get exclusive Rewards and save as you spend</h4>
</div>
</div>
</div>
</div>
</div><!-- End: 2 Rows 1+2 Columns -->
</section>
<p class="font-monospace text-center" style="font-family: monospace!important;color: rgb(0,0,0);font-weight: bold;">DigiCash Banking System - v0.9.2</p>
<script src="assets/bootstrap/js/bootstrap.min.js?h=79ff9637b74326c362fb6f7f5801a7ba"></script>
<script src="assets/js/chart.min.js?h=bd9843d1866f45d1406a12f7de05f9ff"></script>
<script src="assets/js/bs-init.js?h=bd1e7bf16294cd29af0339e7c8132178"></script>
<script src="assets/js/theme.js?h=79f403485707cf2617c5bc5a2d386bb0"></script>
</body>
</html>