mizzzuno commited on
Commit
6870676
·
verified ·
1 Parent(s): c066837

Update templates/talkDetail.html

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