mizzzuno commited on
Commit
d54e6d1
·
verified ·
1 Parent(s): 827df36

Update UI HUMBURGER!!

Browse files
Files changed (1) hide show
  1. templates/talkDetail.html +151 -49
templates/talkDetail.html CHANGED
@@ -1,49 +1,151 @@
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
- <link
9
- rel="stylesheet"
10
- href="{{ url_for('static', filename='loading.css') }}"
11
- />
12
- </head>
13
- <body
14
- class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen flex items-center justify-center"
15
- >
16
- <div class="loader" id="loader">
17
- <div class="one"></div>
18
- <div class="two"></div>
19
- <div class="three"></div>
20
- <div class="four"></div>
21
- </div>
22
- <div
23
- class="container mx-auto p-6 bg-white dark:bg-gray-800 shadow-lg rounded-2xl"
24
- >
25
- <h2 class="text-2xl font-semibold mb-4">会話の文字起こし表示</h2>
26
- <div
27
- id="transcription"
28
- class="p-4 bg-gray-200 dark:bg-gray-700 rounded-lg mb-4 max-h-96 overflow-y-auto"
29
- >
30
- ここに会話内容が表示されます。
31
- </div>
32
- <div class="flex justify-center gap-4">
33
- <button
34
- class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"
35
- onclick="showRecorder()"
36
- >
37
- 録音画面を表示
38
- </button>
39
- <button
40
- class="px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"
41
- onclick="showFeedback()"
42
- >
43
- フィードバック画面を表示
44
- </button>
45
- </div>
46
- </div>
47
- <script src="{{ url_for('static', filename='talk_detail.js') }}"></script>
48
- </body>
49
- </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
+ <link
10
+ rel="stylesheet"
11
+ href="{{ url_for('static', filename='loading.css') }}"
12
+ />
13
+ <style>
14
+ .main-content {
15
+ border: 5px solid rgba(255, 255, 255, 0.2);
16
+ border-radius: 1rem;
17
+ margin: 1rem; /* 外側の余白 */
18
+ width: 90%;
19
+ max-width: 500px;
20
+ /*width: 100%; */ /* 枠線全体を広げる */
21
+ /*max-width: 90%;*/ /* 最大幅を画面の90%に設定 */
22
+ }
23
+
24
+ /* Hamburger Menu Button */
25
+ #menuButton {
26
+ background-color: rgba(255, 255, 255, 0.1);
27
+ border: none;
28
+ border-radius: 50%;
29
+ padding: 0.5rem;
30
+ cursor: pointer;
31
+ transition: background-color 0.2s ease;
32
+ }
33
+
34
+ #menuButton:hover {
35
+ background-color: rgba(255, 255, 255, 0.2);
36
+ }
37
+
38
+ /* Hamburger Menu Styles */
39
+ #menu {
40
+ position: absolute;
41
+ top: 0;
42
+ left: 0;
43
+ z-index: 10;
44
+ transform: translateX(-100%);
45
+ visibility: hidden;
46
+ opacity: 0;
47
+ background-color: rgb(31, 41, 55);
48
+ transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
49
+ opacity 0.3s ease-in-out;
50
+ backdrop-filter: blur(10px);
51
+ border-right: 1px solid rgba(255, 255, 255, 0.2);
52
+ }
53
+
54
+ #menu.open {
55
+ transform: translateX(0);
56
+ visibility: visible;
57
+ opacity: 1;
58
+ transition: transform 0.3s ease-in-out, visibility 0s 0s,
59
+ opacity 0.3s ease-in-out;
60
+ }
61
+
62
+ #menu button {
63
+ transition: background-color 0.2s ease;
64
+ background-color: rgba(0, 0, 0, 0.1);
65
+ margin: 2px;
66
+ border-radius: 5px;
67
+ display: flex;
68
+ align-items: center;
69
+ justify-content: flex-start;
70
+ gap: 10px;
71
+ padding: 0.75rem 1rem;
72
+ width: 100%;
73
+ text-align: left;
74
+ border: none;
75
+ color: #fff;
76
+ font-size: 1rem;
77
+ cursor: pointer;
78
+ }
79
+
80
+ #menu button:hover {
81
+ background-color: rgba(55, 65, 81, 0.7);
82
+ }
83
+ </style>
84
+ </head>
85
+ <body
86
+ class="bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-gray-100 min-h-screen flex items-center justify-center"
87
+ >
88
+ <div class="main-content relative">
89
+ <div class="loader" id="loader">
90
+ <div class="one"></div>
91
+ <div class="two"></div>
92
+ <div class="three"></div>
93
+ <div class="four"></div>
94
+ </div>
95
+ <div
96
+ class="container mx-auto p-6 bg-white dark:bg-gray-800 shadow-lg rounded-2xl w-full max-w-none"
97
+ >
98
+ <h2 class="text-2xl font-semibold mb-4 text-center">
99
+ 会話の文字起こし表示
100
+ </h2>
101
+
102
+ <!-- Hamburger Menu -->
103
+ <div class="absolute top-4 left-4">
104
+ <button
105
+ id="menuButton"
106
+ class="text-white text-2xl focus:outline-none"
107
+ onclick="toggleMenu(event)"
108
+ >
109
+ <i class="fas fa-bars"></i>
110
+ </button>
111
+
112
+ <!-- Menu Content -->
113
+ <div
114
+ id="menu"
115
+ 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"
116
+ >
117
+ <div class="px-4 py-2 text-lg font-semibold">メニュー</div>
118
+ <button onclick="showUserRegister()">
119
+ <i class="fas fa-user-plus"></i> メンバーを追加
120
+ </button>
121
+ <button onclick="showRecorder()">
122
+ <i class="fas fa-microphone"></i> 録音画面を表示
123
+ </button>
124
+ <button onclick="showResults()">
125
+ <i class="fas fa-chart-bar"></i> フィードバックを表示
126
+ </button>
127
+ <button onclick="showTalkDetail()">
128
+ <i class="fas fa-comments"></i> 会話詳細を表示
129
+ </button>
130
+ <button onclick="resetAction()">
131
+ <i class="fas fa-redo"></i> リセット
132
+ </button>
133
+ <button onclick="toggleMenu(event)">
134
+ <i class="fas fa-times"></i> 閉じる
135
+ </button>
136
+ </div>
137
+ </div>
138
+ <!-- Hamburger Menu End -->
139
+
140
+ <div
141
+ id="transcription"
142
+ class="p-4 bg-gray-200 dark:bg-gray-700 rounded-lg mb-4 max-h-96 overflow-y-auto"
143
+ >
144
+ ここに会話内容が表示されます。
145
+ </div>
146
+ </div>
147
+ <script src="{{ url_for('static', filename='talk_detail.js') }}"></script>
148
+ <script src="{{ url_for('static', filename='menu.js') }}"></script>
149
+ </div>
150
+ </body>
151
+ </html>