-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_my_page.html
773 lines (653 loc) · 31.7 KB
/
user_my_page.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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>User page</title>
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<!-- MDB -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.10.2/mdb.min.css" rel="stylesheet" />
<!-- global styles -->
<link rel="stylesheet" href="./css/global_style/global_style.css">
<!-- global stylesEnd -->
<!-- Components -->
<link rel="stylesheet" href="./css/components/components.css">
<!-- ComponentsEnd -->
<!-- forms-->
<link rel="stylesheet" href="./css/forms/forms.css">
<!-- forms End-->
</head>
<body>
<!-- .................................Header............................. -->
<header>
<div class="section_container container_left_helper">
<!-- Navbar -->
<nav class="navbar navbar-expand-xl navbar-light">
<!-- Container wrapper -->
<div class="container-fluid px-0">
<!-- Toggle button -->
<div class="d-flex d-xl-none py-4 pe-3 justify-content-between w-100">
<!-- Navbar brand -->
<a class="navbar-brand" href="#">
<img class="logo_img" src="./img/logo.png" alt="img">
</a>
<button class="navbar-toggler" onclick="this.children[0].classList.toggle('fa-times')"
type="button" data-mdb-toggle="collapse" data-mdb-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<i class="fas fa-bars fa-2x"></i>
</button>
</div>
<!-- Collapsible wrapper -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<!-- Navbar brand -->
<a class="navbar-brand d-none d-xl-block mt-0 pt-0 mt-xl-0" href="#">
<img class="logo_img" src="./img/logo.png" alt="img">
</a>
<!-- Left links -->
<ul class="navbar-nav ms-auto mb-2 mb-lg-0 navbar_list">
<li class="nav-item nav_item_md">
<a class="nav-link primary_link text-center" href="#">マイページ</a>
</li>
<li class="nav-item nav_item_md">
<a class="nav-link primary_link text-center" href="#">メニュー</a>
</li>
<li class="nav-item nav_item_md">
<a class="nav-link primary_link text-center" href="#">コンセプト</a>
</li>
<li class="nav-item nav_item_md">
<a class="nav-link text-center btn_be_action lg_size font-weight-bold justify-content-center action_light h-100 d-flex align-items-center mx-auto"
href="#">
<svg style="margin-right: .7rem" xmlns="http://www.w3.org/2000/svg" width="20.571"
height="18" viewBox="0 0 20.571 18">
<path id="Icon_open-account-logout" data-name="Icon open-account-logout"
d="M7.714,0V2.571H18V15.429H7.714V18H20.571V0ZM5.143,5.143,0,9l5.143,3.857V10.286H15.429V7.714H5.143Z" />
</svg>
ログアウト</a>
</li>
</ul>
<!-- Left links -->
</div>
<!-- Collapsible wrapper -->
</div>
<!-- Container wrapper -->
</nav>
<!-- Navbar -->
</div>
<!-- beneath -->
<div class="header_beneath_section">
<div class="section_container container_left_helper container_right_helper">
<div class="d-flex flex-wrap justify-content-between align-items-center">
<div class="box me-3 ps-0">
<button class="btn_light_gray">
企業ロゴ
</button>
</div>
<div class="box family_yugothib pe-0">
<span class="text_primary font-weight-bold" style="margin-right: 5.2rem">企業コード:00000000</span>
<span class="text_primary font-weight-bold">社員番号:00000000</span>
</div>
</div>
</div>
</div>
<!-- beneath End-->
</header>
<!-- .................................Header.............................End -->
<!-- .................................Main.................................. -->
<main>
<section>
<div class="section_container container_left_helper container_right_helper">
<div class="section_title section_title_sub section_title_mb mb_sm title_padding title_border_bottom">
<div class="d-flex align-items-center justify-content-between">
<h3 class="text_primary title_mb text_primary">
マイページ
</h3>
<a href="#" class="text_f7 font_14">→基本情報を編集する</a>
</div>
</div>
</div>
</section>
<section>
<div class="section_container container_left_helper container_right_helper">
<div class="d-flex align-items-center">
<h3 class="font-weight-bold">
2022年
</h3>
<h1 class="font-weight-bold">1</h1>
<h3 class="font-weight-bold">
月の進捗度
</h3>
</div>
<div class="d-flex align-items-center my-5 flex-wrap">
<h4 class="me-5">
達成ポイント
</h4>
<div class="box d-flex align-items-center me-5">
<span style="font-size: 4rem;" class="text_red">
<b>70</b>
</span>
<h4 class="my-0 align-bottom">
<sub> Pt</sub>
</h4>
</div>
<div class="box bg_d0 rounded-circle d-flex justify-content-center align-items-center"
style="width: 12rem; height: 12rem;">
<h4>
イラスト
</h4>
</div>
</div>
<div class="user_progress_box">
<div class="progress_box">
<div class="progress_limit" style="--limit-count: 70%">
<div class="box d-flex align-items-center text-white font-weight-bold">
<span class="progress_count">
<b>70</b>
</span>
<h4 class="my-0 align-bottom progress_count_name">
<sub> Pt</sub>
</h4>
</div>
</div>
</div>
<div class="progress_counter d-flex justify-content-between">
<span>1</span>
<span>50</span>
<span>100</span>
</div>
</div>
</div>
</section>
<section>
<div class="section_container container_left_helper container_right_helper">
<div class="content_list_wrapper">
<h2 class="heading_title">
動画閲覧履歴
</h2>
<ul class="list-unstyled content_list">
<li>
<h6>
動画名テキスト動画名テキスト動画名テキスト動画名テキスト
</h6>
<div class="list_foot d-flex align-items-center">
<span>閲覧日:2022年1月1日</span>
<a href="#" class="text_df7">CATEGORY</a>
</div>
</li>
<li>
<h6>
動画名テキスト動画名テキスト動画名テキスト動画名テキスト
</h6>
<div class="list_foot d-flex align-items-center">
<span>閲覧日:2022年1月1日</span>
<a href="#" class="text_df7">CATEGORY</a>
</div>
</li>
<li>
<h6>
動画名テキスト動画名テキスト動画名テキスト動画名テキスト
</h6>
<div class="list_foot d-flex align-items-center">
<span>閲覧日:2022年1月1日</span>
<a href="#" class="text_df7">CATEGORY</a>
</div>
</li>
<li>
<h6>
動画名テキスト動画名テキスト動画名テキスト動画名テキスト
</h6>
<div class="list_foot d-flex align-items-center">
<span>閲覧日:2022年1月1日</span>
<a href="#" class="text_df7">CATEGORY</a>
</div>
</li>
</ul>
</div>
<div class="btn_action text-center">
<button onclick="loadMoreContent()" class="btn_action_more btn_mt btn_mb">
READ MORE
</button>
<!-- // click script at end of body -->
</div>
</div>
</section>
<section>
<div class="section_container container_left_helper container_right_helper">
<div class="section_title section_title_sub section_title_mb mb_sm title_padding title_border_bottom">
<div class="d-flex align-items-center justify-content-between align-items-center">
<h3 class="text_primary title_mb text_primary">
基本情報
</h3>
<a href="#" class="btn_dark">変更する</a>
</div>
</div>
<form action="" method="post" class="">
<div class="form_container mb_lg table-responsive pb-1">
<table class="table form_table">
<tbody>
<tr>
<td class="font-weight-bold text-nowrap">
企業名
</td>
<td>
株式会社◯◯◯◯
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
企業コード
</td>
<td>
000000000
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
社員番号
</td>
<td>
000000000
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
部署
</td>
<td>
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
氏名
</td>
<td>
山田 太郎
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
性別
</td>
<td>
<div class="d-flex align-items-center">
<div
class="form-group me-3 d-flex align-items-center form_checkbox_label_group">
<input type="radio" checked name="myradio" id="form_checkbox1" class="">
<label for="form_checkbox1" class="ms-2">男</label>
</div>
<div class="form-group d-flex align-items-center form_checkbox_label_group">
<input type="radio" name="myradio" id="form_checkbox2" class="">
<label for="form_checkbox2" class="ms-2">女</label>
</div>
</div>
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
生年月日
</td>
<td>
1990年1月1日
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
メールアドレス
</td>
<td>
xxxxxxxxx@xxxx.com
</td>
</tr>
<tr>
<td class="font-weight-bold text-nowrap">
パスワード
</td>
<td class="text-nowrap">
<div class="d-flex align-items-center">
***********
<a href="#" class="text_f7 font_14 ms-5">→パスワードを変更する</a>
</div>
</td>
</tr>
</tbody>
</table>
<div class="form_control_action text-center">
<button class="btn_be_action sm_size action_mt_4">
登録する
</button>
</div>
</div>
</form>
</div>
</section>
<section>
<div class="section_container container_left_helper container_right_helper">
<div class="section_title section_title_sub section_title_mb title_padding title_border_bottom">
<div class="d-flex align-items-center justify-content-between">
<h3 class="text_primary title_mb text_primary">
基本情報編集
</h3>
</div>
</div>
<div class="section_body">
<div class="section_table_wrapper">
<h2 class="table_overlap">
管理者登録 <br>
※ユーザー変更不可
</h2>
<div class="table-responsive">
<table class="table">
<tbody>
<tr>
<td>
身長
</td>
<td>
cm
</td>
<td>
身長
</td>
<td>
cm
</td>
<td>
身長
</td>
<td>
cm
</td>
<td>
身長
</td>
<td>
cm
</td>
</tr>
<tr>
<td>
体重
</td>
<td>
Kg
</td>
<td>
体重
</td>
<td>
Kg
</td>
<td>
体重
</td>
<td>
Kg
</td>
<td>
体重
</td>
<td>
Kg
</td>
</tr>
<tr>
<td>
BMI
</td>
<td>
kg/m2
</td>
<td>
BMI
</td>
<td>
kg/m2
</td>
<td>
BMI
</td>
<td>
kg/m2
</td>
<td>
BMI
</td>
<td>
kg/m2
</td>
</tr>
<tr>
<td>
腹囲(実測)
</td>
<td>
cm
</td>
<td>
腹囲(実測)
</td>
<td>
cm
</td>
<td>
腹囲(実測)
</td>
<td>
cm
</td>
<td>
腹囲(実測)
</td>
<td>
cm
</td>
</tr>
<tr>
<td>
視力(左)
</td>
<td>
2.0
</td>
<td>
視力(左)
</td>
<td>
2.0
</td>
<td>
視力(左)
</td>
<td>
2.0
</td>
<td>
視力(左)
</td>
<td>
2.0
</td>
</tr>
<tr>
<td>
視力(右)
</td>
<td>
2.0
</td>
<td>
視力(右)
</td>
<td>
2.0
</td>
<td>
視力(右)
</td>
<td>
2.0
</td>
<td>
視力(右)
</td>
<td>
2.0
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- .................................Main..................................End -->
<!-- .................................Footer.................................. -->
<footer>
<section>
<div class="section_container container_left_helper container_right_helper">
<div class="row gy-4 gx-0">
<div class="col-md-6">
<img class="light_logo logo_img" src="./img/light_logo.png" alt="">
<p class="paragraph">
〒151-0064 東京都渋谷区上原1-3-9 YYビル2階
</p>
</div>
<div class="col-md-6 ps_md_28">
<div class="row g-3">
<div class="col-md-5 col-lg-3 col-xl-2">
<h6 class="list_title">
マイページ
</h6>
</div>
<div class="col-md-6 col-lg-4 col-xl-3">
<h6 class="list_title">
トレーニング
</h6>
<ul class="list-unstyled footer_nav_list d-block list_size_sm ">
<li class="d-flex list_sm">
- <a class="nav_link ms-3" href="#">Concept
&Recommendation</a>
</li>
<li class="d-flex list_sm">
- <a class="nav_link ms-3" href="#">EXERCISE</a>
</li>
<li class="d-flex list_sm">
- <a class="nav_link ms-3" href="#">RELAX</a>
</li>
</ul>
</div>
<div class="col-md-7 col-lg-5 col-xl-4">
<h6 class="list_title">
トレーニング
</h6>
<ul class="list-unstyled footer_nav_list d-block list_size_sm ">
<li class="d-flex list_sm">
- <a class="nav_link ms-3" href="#">KARADA SOLUTION</a>
</li>
<li class="d-flex list_sm">
- <a class="nav_link ms-3" href="#">KOKORO SOLUTION</a>
</li>
<li class="d-flex list_sm">
- <a class="nav_link ms-3" href="#">オンライン診療</a>
</li>
</ul>
</div>
<div class="col-md-6 col-lg-4 col-xl-3">
<h6 class="list_title mb-4">
お問い合わせ
</h6>
<ul class="list-unstyled footer_nav_list d-block list_size_sm flex-wrap ">
<li class="list_sm">
<a class="nav_link " href="#">運営会社</a>
</li>
<li class="list_sm d-block w-100">
<a class="nav_link" href="#"> ログアウト</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<p class="footer_copyright text-center">
Copyright © WellPedia All Rights Reserved.
</p>
</div>
</div>
</div>
</section>
</footer>
<!-- .................................Footer.................................. End-->
<!-- MDB -->
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.10.2/mdb.min.js"></script>
<script>
let hasVScroll = window.document.body.scrollHeight > document.documentElement.clientHeight;
// console.log(window.document.body.scrollHeight)
// console.log(document.documentElement.clientHeight)
console.log(hasVScroll)
if (!hasVScroll) {
document.querySelector('footer').setAttribute('style', 'padding-top: 5rem; padding-bottom: 5rem')
}
</script>
<script>
function loadMoreContent() {
// use can use api json response to load from json data
let url = './json/content_list_object.json';
let btn_event = event.target;
fetch(url)
.then(res => res.json())
.then(data => {
// console.log(data)
btn_event.classList.toggle('load_more_action');
if (btn_event.classList.contains('load_more_action')) {
btn_event.innerHTML = 'READ LESS'
} else {
btn_event.innerHTML = 'READ MORE'
}
// fetch data
if (btn_event.classList.contains('load_more_action')) {
console.log('load data')
document.querySelector('.content_list').innerHTML = ''
data.forEach(v => {
document.querySelector('.content_list').innerHTML += `
<li>
<h6>
${v.title}
</h6>
<div class="list_foot d-flex align-items-center">
<span>${v.date}</span>
<a href="#" class="text_df7">${v.category}</a>
</div>
</li>
`
})
} else {
console.log('less data')
document.querySelector('.content_list').innerHTML = '';
data.forEach((v, i) => {
if (i < 4) {
document.querySelector('.content_list').innerHTML += `
<li>
<h6>
${v.title}
</h6>
<div class="list_foot d-flex align-items-center">
<span>${v.date}</span>
<a href="#" class="text_df7">${v.category}</a>
</div>
</li>
`
}
})
}
})
}
</script>
</body>
</html>