A-yum1 commited on
Commit
7d6662b
·
2 Parent(s): 217e709 9cba8ff

Merge branch 'main' of https://huggingface.co/spaces/Justtalk/Justalk

Browse files
Files changed (1) hide show
  1. templates/reset.html +153 -39
templates/reset.html CHANGED
@@ -1,39 +1,153 @@
1
- <!DOCTYPE html>
2
- <html lang="ja" class="dark">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>リセット画面</title>
7
- <script src="https://cdn.tailwindcss.com"></script>
8
- </head>
9
- <body
10
- class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen flex items-center justify-center"
11
- >
12
- <div
13
- class="container mx-auto p-6 bg-white dark:bg-gray-800 shadow-lg rounded-2xl"
14
- >
15
- <h2 class="text-2xl font-semibold mb-4">メンバーを消去しますか?</h2>
16
- <input type="button" id="select-all" value="全選択" />
17
- <div id="memberCheckboxes">
18
- <!--ここにチャックボックスを表示してほしい-->
19
- </div>
20
-
21
- <div class="flex justify-center gap-4">
22
- <button
23
- id="reset_btn"
24
- class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded"
25
- >
26
- メンバー削除
27
- </button>
28
-
29
- <button
30
- class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"
31
- onclick="showRecorder()"
32
- >
33
- 録音画面を表示
34
- </button>
35
- </div>
36
- </div>
37
- <script src="{{ url_for('static', filename='reset.js') }}"></script>
38
- </body>
39
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="ja" class="dark">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>リセット画面</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://use.fontawesome.com/releases/v5.10.0/js/all.js"></script>
9
+ <style>
10
+ .main-content {
11
+ border: 5px solid rgba(255, 255, 255, 0.2);
12
+ border-radius: 1rem;
13
+ margin: 1rem auto; /* 中央揃え */
14
+ width: 90%;
15
+ max-width: 500px;
16
+ /*width: 100%; */ /* 枠線全体を広げる */
17
+ /*max-width: 90%;*/ /* 最大幅を画面の90%に設定 */
18
+ }
19
+
20
+ /* Hamburger Menu Button */
21
+ #menuButton {
22
+ background-color: rgba(255, 255, 255, 0.1);
23
+ border: none;
24
+ border-radius: 50%;
25
+ padding: 0.5rem;
26
+ cursor: pointer;
27
+ transition: background-color 0.2s ease;
28
+ }
29
+
30
+ #menuButton:hover {
31
+ background-color: rgba(255, 255, 255, 0.2);
32
+ }
33
+
34
+ /* Hamburger Menu Styles */
35
+ #menu {
36
+ position: absolute;
37
+ top: 0;
38
+ left: 0;
39
+ z-index: 10;
40
+ transform: translateX(-100%);
41
+ visibility: hidden;
42
+ opacity: 0;
43
+ background-color: rgb(31, 41, 55);
44
+ transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
45
+ opacity 0.3s ease-in-out;
46
+ backdrop-filter: blur(10px);
47
+ border-right: 1px solid rgba(255, 255, 255, 0.2);
48
+ }
49
+
50
+ #menu.open {
51
+ transform: translateX(0);
52
+ visibility: visible;
53
+ opacity: 1;
54
+ transition: transform 0.3s ease-in-out, visibility 0s 0s,
55
+ opacity 0.3s ease-in-out;
56
+ }
57
+
58
+ #menu button {
59
+ transition: background-color 0.2s ease;
60
+ background-color: rgba(0, 0, 0, 0.1);
61
+ margin: 2px;
62
+ border-radius: 5px;
63
+ display: flex;
64
+ align-items: center;
65
+ justify-content: flex-start;
66
+ gap: 10px;
67
+ padding: 0.75rem 1rem;
68
+ width: 100%;
69
+ text-align: left;
70
+ border: none;
71
+ color: #fff;
72
+ font-size: 1rem;
73
+ cursor: pointer;
74
+ }
75
+
76
+ #menu button:hover {
77
+ background-color: rgba(55, 65, 81, 0.7);
78
+ }
79
+ </style>
80
+ </head>
81
+ <body
82
+ class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen flex items-center justify-center"
83
+ >
84
+ <div class="main-content relative">
85
+ <div class="p-6 bg-white dark:bg-gray-800 shadow-lg rounded-2xl">
86
+ <h2 class="text-2xl font-semibold mb-4 text-center">
87
+ メンバーを消去しますか?
88
+ </h2>
89
+
90
+ <!-- Hamburger Menu -->
91
+ <div class="absolute top-4 left-4">
92
+ <button
93
+ id="menuButton"
94
+ class="text-white text-2xl focus:outline-none"
95
+ onclick="toggleMenu(event)"
96
+ >
97
+ <i class="fas fa-bars"></i>
98
+ </button>
99
+
100
+ <!-- Menu Content -->
101
+ <div
102
+ id="menu"
103
+ class="absolute top-0 left-0 h-full w-64 bg-gray-800 text-white transform -translate-x-full transition-transform duration-300 ease-in-out opacity-0 visibility-hidden"
104
+ >
105
+ <div class="px-4 py-2 text-lg font-semibold">メニュー</div>
106
+ <button onclick="showUserRegister()">
107
+ <i class="fas fa-user-plus"></i> メンバーを追加
108
+ </button>
109
+ <button onclick="showRecorder()">
110
+ <i class="fas fa-microphone"></i> 録音画面を表示
111
+ </button>
112
+ <button onclick="showResults()">
113
+ <i class="fas fa-chart-bar"></i> フィードバックを表示
114
+ </button>
115
+ <button onclick="showTalkDetail()">
116
+ <i class="fas fa-comments"></i> 会話詳細を表示
117
+ </button>
118
+ <button onclick="resetAction()">
119
+ <i class="fas fa-redo"></i> リセット
120
+ </button>
121
+ <button onclick="toggleMenu(event)">
122
+ <i class="fas fa-times"></i> 閉じる
123
+ </button>
124
+ </div>
125
+ </div>
126
+ <!-- Hamburger Menu End -->
127
+
128
+ <input type="button" id="select-all" value="全選択" />
129
+ <div id="memberCheckboxes">
130
+ <!--ここにチャックボックスを表示してほしい-->
131
+ </div>
132
+
133
+ <div class="flex justify-center gap-4">
134
+ <button
135
+ id="reset_btn"
136
+ class="bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded"
137
+ >
138
+ メンバー削除
139
+ </button>
140
+
141
+ <button
142
+ class="px-6 py-2 bg-[#607d8b] text-white rounded-lg hover:bg-[#546e7a] transition-colors"
143
+ onclick="showRecorder()"
144
+ >
145
+ 録音画面を表示
146
+ </button>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ <script src="{{ url_for('static', filename='reset.js') }}"></script>
151
+ <script src="{{ url_for('static', filename='menu.js') }}"></script>
152
+ </body>
153
+ </html>