Spaces:
Runtime error
Runtime error
Upload 7 files
Browse files- templates/feedback.html +170 -170
- templates/index.html +228 -228
- templates/talkDetail.html +49 -49
- templates/userRegister.html +86 -25
templates/feedback.html
CHANGED
|
@@ -1,170 +1,170 @@
|
|
| 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>
|
| 9 |
-
tailwind.config = {
|
| 10 |
-
darkMode: "class",
|
| 11 |
-
};
|
| 12 |
-
</script>
|
| 13 |
-
<script src="https://use.fontawesome.com/releases/v5.10.0/js/all.js"></script>
|
| 14 |
-
<style>
|
| 15 |
-
/* Main Container */
|
| 16 |
-
body {
|
| 17 |
-
background: linear-gradient(135deg, #2c3e50, #1f2937);
|
| 18 |
-
display: flex;
|
| 19 |
-
align-items: center;
|
| 20 |
-
justify-content: center;
|
| 21 |
-
min-height: 100vh;
|
| 22 |
-
font-family: "Arial", sans-serif;
|
| 23 |
-
color: #fff;
|
| 24 |
-
}
|
| 25 |
-
|
| 26 |
-
/* Main Content Wrapper */
|
| 27 |
-
.main-content {
|
| 28 |
-
border: 5px solid rgba(255, 255, 255, 0.2);
|
| 29 |
-
padding: 2rem;
|
| 30 |
-
border-radius: 1rem;
|
| 31 |
-
width: 90%;
|
| 32 |
-
max-width: 500px;
|
| 33 |
-
background-color: rgba(0, 0, 0, 0.3);
|
| 34 |
-
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
|
| 35 |
-
text-align: center;
|
| 36 |
-
}
|
| 37 |
-
|
| 38 |
-
/* Title */
|
| 39 |
-
.main-title {
|
| 40 |
-
font-size: 2.5rem;
|
| 41 |
-
font-weight: bold;
|
| 42 |
-
margin-bottom: 1.5rem;
|
| 43 |
-
color: #fff;
|
| 44 |
-
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
| 45 |
-
}
|
| 46 |
-
|
| 47 |
-
/* Hamburger Menu Button */
|
| 48 |
-
#menuButton {
|
| 49 |
-
background-color: rgba(255, 255, 255, 0.1);
|
| 50 |
-
border: none;
|
| 51 |
-
border-radius: 50%;
|
| 52 |
-
padding: 0.5rem;
|
| 53 |
-
cursor: pointer;
|
| 54 |
-
transition: background-color 0.2s ease;
|
| 55 |
-
}
|
| 56 |
-
|
| 57 |
-
#menuButton:hover {
|
| 58 |
-
background-color: rgba(255, 255, 255, 0.2);
|
| 59 |
-
}
|
| 60 |
-
|
| 61 |
-
/* Hamburger Menu Styles */
|
| 62 |
-
#menu {
|
| 63 |
-
position: absolute;
|
| 64 |
-
top: 0;
|
| 65 |
-
left: 0;
|
| 66 |
-
z-index: 10;
|
| 67 |
-
transform: translateX(-100%);
|
| 68 |
-
visibility: hidden;
|
| 69 |
-
opacity: 0;
|
| 70 |
-
background-color: rgb(31, 41, 55);
|
| 71 |
-
transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
|
| 72 |
-
opacity 0.3s ease-in-out;
|
| 73 |
-
backdrop-filter: blur(10px);
|
| 74 |
-
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
| 75 |
-
}
|
| 76 |
-
|
| 77 |
-
#menu.open {
|
| 78 |
-
transform: translateX(0);
|
| 79 |
-
visibility: visible;
|
| 80 |
-
opacity: 1;
|
| 81 |
-
transition: transform 0.3s ease-in-out, visibility 0s 0s,
|
| 82 |
-
opacity 0.3s ease-in-out;
|
| 83 |
-
}
|
| 84 |
-
|
| 85 |
-
#menu button {
|
| 86 |
-
transition: background-color 0.2s ease;
|
| 87 |
-
background-color: rgba(0, 0, 0, 0.1);
|
| 88 |
-
margin: 2px;
|
| 89 |
-
border-radius: 5px;
|
| 90 |
-
display: flex;
|
| 91 |
-
align-items: center;
|
| 92 |
-
justify-content: flex-start;
|
| 93 |
-
gap: 10px;
|
| 94 |
-
padding: 0.75rem 1rem;
|
| 95 |
-
width: 100%;
|
| 96 |
-
text-align: left;
|
| 97 |
-
border: none;
|
| 98 |
-
color: #fff;
|
| 99 |
-
font-size: 1rem;
|
| 100 |
-
cursor: pointer;
|
| 101 |
-
}
|
| 102 |
-
|
| 103 |
-
#menu button:hover {
|
| 104 |
-
background-color: rgba(55, 65, 81, 0.7);
|
| 105 |
-
}
|
| 106 |
-
</style>
|
| 107 |
-
</head>
|
| 108 |
-
<body>
|
| 109 |
-
<div class="loader" id="loader">
|
| 110 |
-
<div class="one"></div>
|
| 111 |
-
<div class="two"></div>
|
| 112 |
-
<div class="three"></div>
|
| 113 |
-
<div class="four"></div>
|
| 114 |
-
</div>
|
| 115 |
-
<div class="main-content relative">
|
| 116 |
-
<!-- Title -->
|
| 117 |
-
<div class="main-title">会話フィードバック</div>
|
| 118 |
-
|
| 119 |
-
<!-- Hamburger Menu -->
|
| 120 |
-
<div class="absolute top-4 left-4">
|
| 121 |
-
<button
|
| 122 |
-
id="menuButton"
|
| 123 |
-
class="text-white text-2xl focus:outline-none"
|
| 124 |
-
onclick="toggleMenu(event)"
|
| 125 |
-
>
|
| 126 |
-
<i class="fas fa-bars"></i>
|
| 127 |
-
</button>
|
| 128 |
-
|
| 129 |
-
<!-- Menu Content -->
|
| 130 |
-
<div
|
| 131 |
-
id="menu"
|
| 132 |
-
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"
|
| 133 |
-
>
|
| 134 |
-
<div class="px-4 py-2 text-lg font-semibold">メニュー</div>
|
| 135 |
-
<button onclick="showUserRegister()">
|
| 136 |
-
<i class="fas fa-user-plus"></i> メンバーを追加
|
| 137 |
-
</button>
|
| 138 |
-
<button onclick="showRecorder()">
|
| 139 |
-
<i class="fas fa-microphone"></i> 録音画面を表示
|
| 140 |
-
</button>
|
| 141 |
-
<button onclick="showResults()">
|
| 142 |
-
<i class="fas fa-chart-bar"></i> フィードバックを表示
|
| 143 |
-
</button>
|
| 144 |
-
<button onclick="showTalkDetail()">
|
| 145 |
-
<i class="fas fa-comments"></i> 会話詳細を表示
|
| 146 |
-
</button>
|
| 147 |
-
<button onclick="resetAction()">
|
| 148 |
-
<i class="fas fa-redo"></i> リセット
|
| 149 |
-
</button>
|
| 150 |
-
<button onclick="toggleMenu(event)">
|
| 151 |
-
<i class="fas fa-times"></i> 閉じる
|
| 152 |
-
</button>
|
| 153 |
-
</div>
|
| 154 |
-
</div>
|
| 155 |
-
|
| 156 |
-
<!-- Feedback Details -->
|
| 157 |
-
<div class="text-xl font-semibold mb-6" id="level">会話レベル:</div>
|
| 158 |
-
<div class="text-lg mb-2" id="Harassment_bool">ハラスメントの有無:</div>
|
| 159 |
-
<div class="text-lg mb-2" id="Harassment_type">ハラスメントの種類:</div>
|
| 160 |
-
<div class="text-lg mb-2" id="Harassment_loop">繰り返しの程度:</div>
|
| 161 |
-
<div class="text-lg mb-2" id="Harassment_comfort">会話の心地よさ:</div>
|
| 162 |
-
<div class="text-lg mb-2" id="Harassment_volume">
|
| 163 |
-
非難またはハラスメントの程度:
|
| 164 |
-
</div>
|
| 165 |
-
</div>
|
| 166 |
-
|
| 167 |
-
<script src="{{ url_for('static', filename='menu.js') }}"></script>
|
| 168 |
-
<script src="{{ url_for('static', filename='feedback.js') }}"></script>
|
| 169 |
-
</body>
|
| 170 |
-
</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>
|
| 9 |
+
tailwind.config = {
|
| 10 |
+
darkMode: "class",
|
| 11 |
+
};
|
| 12 |
+
</script>
|
| 13 |
+
<script src="https://use.fontawesome.com/releases/v5.10.0/js/all.js"></script>
|
| 14 |
+
<style>
|
| 15 |
+
/* Main Container */
|
| 16 |
+
body {
|
| 17 |
+
background: linear-gradient(135deg, #2c3e50, #1f2937);
|
| 18 |
+
display: flex;
|
| 19 |
+
align-items: center;
|
| 20 |
+
justify-content: center;
|
| 21 |
+
min-height: 100vh;
|
| 22 |
+
font-family: "Arial", sans-serif;
|
| 23 |
+
color: #fff;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
/* Main Content Wrapper */
|
| 27 |
+
.main-content {
|
| 28 |
+
border: 5px solid rgba(255, 255, 255, 0.2);
|
| 29 |
+
padding: 2rem;
|
| 30 |
+
border-radius: 1rem;
|
| 31 |
+
width: 90%;
|
| 32 |
+
max-width: 500px;
|
| 33 |
+
background-color: rgba(0, 0, 0, 0.3);
|
| 34 |
+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
|
| 35 |
+
text-align: center;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
/* Title */
|
| 39 |
+
.main-title {
|
| 40 |
+
font-size: 2.5rem;
|
| 41 |
+
font-weight: bold;
|
| 42 |
+
margin-bottom: 1.5rem;
|
| 43 |
+
color: #fff;
|
| 44 |
+
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
/* Hamburger Menu Button */
|
| 48 |
+
#menuButton {
|
| 49 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 50 |
+
border: none;
|
| 51 |
+
border-radius: 50%;
|
| 52 |
+
padding: 0.5rem;
|
| 53 |
+
cursor: pointer;
|
| 54 |
+
transition: background-color 0.2s ease;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
#menuButton:hover {
|
| 58 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/* Hamburger Menu Styles */
|
| 62 |
+
#menu {
|
| 63 |
+
position: absolute;
|
| 64 |
+
top: 0;
|
| 65 |
+
left: 0;
|
| 66 |
+
z-index: 10;
|
| 67 |
+
transform: translateX(-100%);
|
| 68 |
+
visibility: hidden;
|
| 69 |
+
opacity: 0;
|
| 70 |
+
background-color: rgb(31, 41, 55);
|
| 71 |
+
transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
|
| 72 |
+
opacity 0.3s ease-in-out;
|
| 73 |
+
backdrop-filter: blur(10px);
|
| 74 |
+
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
#menu.open {
|
| 78 |
+
transform: translateX(0);
|
| 79 |
+
visibility: visible;
|
| 80 |
+
opacity: 1;
|
| 81 |
+
transition: transform 0.3s ease-in-out, visibility 0s 0s,
|
| 82 |
+
opacity 0.3s ease-in-out;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
#menu button {
|
| 86 |
+
transition: background-color 0.2s ease;
|
| 87 |
+
background-color: rgba(0, 0, 0, 0.1);
|
| 88 |
+
margin: 2px;
|
| 89 |
+
border-radius: 5px;
|
| 90 |
+
display: flex;
|
| 91 |
+
align-items: center;
|
| 92 |
+
justify-content: flex-start;
|
| 93 |
+
gap: 10px;
|
| 94 |
+
padding: 0.75rem 1rem;
|
| 95 |
+
width: 100%;
|
| 96 |
+
text-align: left;
|
| 97 |
+
border: none;
|
| 98 |
+
color: #fff;
|
| 99 |
+
font-size: 1rem;
|
| 100 |
+
cursor: pointer;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
#menu button:hover {
|
| 104 |
+
background-color: rgba(55, 65, 81, 0.7);
|
| 105 |
+
}
|
| 106 |
+
</style>
|
| 107 |
+
</head>
|
| 108 |
+
<body>
|
| 109 |
+
<div class="loader" id="loader">
|
| 110 |
+
<div class="one"></div>
|
| 111 |
+
<div class="two"></div>
|
| 112 |
+
<div class="three"></div>
|
| 113 |
+
<div class="four"></div>
|
| 114 |
+
</div>
|
| 115 |
+
<div class="main-content relative">
|
| 116 |
+
<!-- Title -->
|
| 117 |
+
<div class="main-title">会話フィードバック</div>
|
| 118 |
+
|
| 119 |
+
<!-- Hamburger Menu -->
|
| 120 |
+
<div class="absolute top-4 left-4">
|
| 121 |
+
<button
|
| 122 |
+
id="menuButton"
|
| 123 |
+
class="text-white text-2xl focus:outline-none"
|
| 124 |
+
onclick="toggleMenu(event)"
|
| 125 |
+
>
|
| 126 |
+
<i class="fas fa-bars"></i>
|
| 127 |
+
</button>
|
| 128 |
+
|
| 129 |
+
<!-- Menu Content -->
|
| 130 |
+
<div
|
| 131 |
+
id="menu"
|
| 132 |
+
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"
|
| 133 |
+
>
|
| 134 |
+
<div class="px-4 py-2 text-lg font-semibold">メニュー</div>
|
| 135 |
+
<button onclick="showUserRegister()">
|
| 136 |
+
<i class="fas fa-user-plus"></i> メンバーを追加
|
| 137 |
+
</button>
|
| 138 |
+
<button onclick="showRecorder()">
|
| 139 |
+
<i class="fas fa-microphone"></i> 録音画面を表示
|
| 140 |
+
</button>
|
| 141 |
+
<button onclick="showResults()">
|
| 142 |
+
<i class="fas fa-chart-bar"></i> フィードバックを表示
|
| 143 |
+
</button>
|
| 144 |
+
<button onclick="showTalkDetail()">
|
| 145 |
+
<i class="fas fa-comments"></i> 会話詳細を表示
|
| 146 |
+
</button>
|
| 147 |
+
<button onclick="resetAction()">
|
| 148 |
+
<i class="fas fa-redo"></i> リセット
|
| 149 |
+
</button>
|
| 150 |
+
<button onclick="toggleMenu(event)">
|
| 151 |
+
<i class="fas fa-times"></i> 閉じる
|
| 152 |
+
</button>
|
| 153 |
+
</div>
|
| 154 |
+
</div>
|
| 155 |
+
|
| 156 |
+
<!-- Feedback Details -->
|
| 157 |
+
<div class="text-xl font-semibold mb-6" id="level">会話レベル:</div>
|
| 158 |
+
<div class="text-lg mb-2" id="Harassment_bool">ハラスメントの有無:</div>
|
| 159 |
+
<div class="text-lg mb-2" id="Harassment_type">ハラスメントの種類:</div>
|
| 160 |
+
<div class="text-lg mb-2" id="Harassment_loop">繰り返しの程度:</div>
|
| 161 |
+
<div class="text-lg mb-2" id="Harassment_comfort">会話の心地よさ:</div>
|
| 162 |
+
<div class="text-lg mb-2" id="Harassment_volume">
|
| 163 |
+
非難またはハラスメントの程度:
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
|
| 167 |
+
<script src="{{ url_for('static', filename='menu.js') }}"></script>
|
| 168 |
+
<script src="{{ url_for('static', filename='feedback.js') }}"></script>
|
| 169 |
+
</body>
|
| 170 |
+
</html>
|
templates/index.html
CHANGED
|
@@ -1,228 +1,228 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html lang="ja">
|
| 3 |
-
<head>
|
| 4 |
-
<meta charset="UTF-8" />
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
-
<title>JustTalk - Voice Analysis</title>
|
| 7 |
-
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 8 |
-
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
-
<link
|
| 10 |
-
rel="stylesheet"
|
| 11 |
-
href="https://use.fontawesome.com/releases/v5.10.0/css/all.css"
|
| 12 |
-
/>
|
| 13 |
-
<style>
|
| 14 |
-
/* Custom Chart.js Styles */
|
| 15 |
-
#speechChart {
|
| 16 |
-
background-color: rgba(255, 255, 255, 0.05);
|
| 17 |
-
border-radius: 10px;
|
| 18 |
-
padding: 10px;
|
| 19 |
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 20 |
-
}
|
| 21 |
-
|
| 22 |
-
/* Record Button Styles */
|
| 23 |
-
.record-button {
|
| 24 |
-
width: 90px;
|
| 25 |
-
height: 90px;
|
| 26 |
-
background-color: transparent;
|
| 27 |
-
border-radius: 50%;
|
| 28 |
-
border: 5px solid white;
|
| 29 |
-
display: flex;
|
| 30 |
-
justify-content: center;
|
| 31 |
-
align-items: center;
|
| 32 |
-
cursor: pointer;
|
| 33 |
-
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
|
| 34 |
-
transition: all 0.2s ease;
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
.record-icon {
|
| 38 |
-
width: 70px;
|
| 39 |
-
height: 70px;
|
| 40 |
-
background-color: #e53e3e;
|
| 41 |
-
border-radius: 50%;
|
| 42 |
-
transition: all 0.2s ease;
|
| 43 |
-
}
|
| 44 |
-
|
| 45 |
-
.recording .record-icon {
|
| 46 |
-
width: 50px;
|
| 47 |
-
height: 50px;
|
| 48 |
-
border-radius: 15%;
|
| 49 |
-
background-color: #c53030;
|
| 50 |
-
}
|
| 51 |
-
|
| 52 |
-
.icon i {
|
| 53 |
-
font-size: 24px;
|
| 54 |
-
}
|
| 55 |
-
|
| 56 |
-
/* Hamburger Menu Styles */
|
| 57 |
-
#menu {
|
| 58 |
-
position: absolute;
|
| 59 |
-
top: 0;
|
| 60 |
-
left: 0;
|
| 61 |
-
z-index: 10;
|
| 62 |
-
transform: translateX(-100%);
|
| 63 |
-
visibility: hidden;
|
| 64 |
-
opacity: 0;
|
| 65 |
-
background-color: rgb(31, 41, 55);
|
| 66 |
-
transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
|
| 67 |
-
opacity 0.3s ease-in-out;
|
| 68 |
-
backdrop-filter: blur(10px);
|
| 69 |
-
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
| 70 |
-
}
|
| 71 |
-
|
| 72 |
-
#menu.open {
|
| 73 |
-
transform: translateX(0);
|
| 74 |
-
visibility: visible;
|
| 75 |
-
opacity: 1;
|
| 76 |
-
transition: transform 0.3s ease-in-out, visibility 0s 0s,
|
| 77 |
-
opacity 0.3s ease-in-out;
|
| 78 |
-
}
|
| 79 |
-
|
| 80 |
-
#menu button {
|
| 81 |
-
transition: background-color 0.2s ease;
|
| 82 |
-
background-color: rgba(0, 0, 0, 0.1); /* 変更点: 透明度を 10% に変更 */
|
| 83 |
-
margin: 2px;
|
| 84 |
-
border-radius: 5px;
|
| 85 |
-
display: flex;
|
| 86 |
-
align-items: center;
|
| 87 |
-
justify-content: flex-start;
|
| 88 |
-
gap: 10px;
|
| 89 |
-
padding: 0.75rem 1rem;
|
| 90 |
-
width: 100%;
|
| 91 |
-
text-align: left;
|
| 92 |
-
border: none;
|
| 93 |
-
color: #fff;
|
| 94 |
-
font-size: 1rem;
|
| 95 |
-
cursor: pointer;
|
| 96 |
-
}
|
| 97 |
-
|
| 98 |
-
#menu button:hover {
|
| 99 |
-
background-color: rgba(55, 65, 81, 0.7);
|
| 100 |
-
}
|
| 101 |
-
|
| 102 |
-
/* Responsive Design */
|
| 103 |
-
@media (max-width: 640px) {
|
| 104 |
-
.w-72 {
|
| 105 |
-
width: 95%;
|
| 106 |
-
}
|
| 107 |
-
.h-72 {
|
| 108 |
-
height: 350px;
|
| 109 |
-
}
|
| 110 |
-
}
|
| 111 |
-
/* Main Container */
|
| 112 |
-
body {
|
| 113 |
-
background: linear-gradient(135deg, #2c3e50, #1f2937);
|
| 114 |
-
display: flex;
|
| 115 |
-
align-items: center;
|
| 116 |
-
justify-content: center;
|
| 117 |
-
min-height: 100vh;
|
| 118 |
-
font-family: "Arial", sans-serif;
|
| 119 |
-
}
|
| 120 |
-
|
| 121 |
-
/* Main Content Wrapper */
|
| 122 |
-
.main-content {
|
| 123 |
-
border: 5px solid rgba(255, 255, 255, 0.2);
|
| 124 |
-
padding: 2rem;
|
| 125 |
-
border-radius: 1rem;
|
| 126 |
-
width: 90%;
|
| 127 |
-
max-width: 500px;
|
| 128 |
-
background-color: rgba(0, 0, 0, 0.3);
|
| 129 |
-
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
|
| 130 |
-
text-align: center;
|
| 131 |
-
}
|
| 132 |
-
|
| 133 |
-
/* Title */
|
| 134 |
-
.main-title {
|
| 135 |
-
font-size: 2.5rem;
|
| 136 |
-
font-weight: bold;
|
| 137 |
-
margin-bottom: 1.5rem;
|
| 138 |
-
color: #fff;
|
| 139 |
-
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
| 140 |
-
}
|
| 141 |
-
|
| 142 |
-
/* Hamburger Menu Button */
|
| 143 |
-
#menuButton {
|
| 144 |
-
background-color: rgba(255, 255, 255, 0.1);
|
| 145 |
-
border: none;
|
| 146 |
-
border-radius: 50%;
|
| 147 |
-
padding: 0.5rem;
|
| 148 |
-
cursor: pointer;
|
| 149 |
-
transition: background-color 0.2s ease;
|
| 150 |
-
}
|
| 151 |
-
|
| 152 |
-
#menuButton:hover {
|
| 153 |
-
background-color: rgba(255, 255, 255, 0.2);
|
| 154 |
-
}
|
| 155 |
-
</style>
|
| 156 |
-
</head>
|
| 157 |
-
<body onclick="closeMenu(event)">
|
| 158 |
-
<!-- Main Content Wrapper -->
|
| 159 |
-
<div class="main-content relative">
|
| 160 |
-
<!-- Title -->
|
| 161 |
-
<div class="main-title">JustTalk</div>
|
| 162 |
-
|
| 163 |
-
<!-- Hamburger Menu -->
|
| 164 |
-
<div class="absolute top-4 left-4">
|
| 165 |
-
<button
|
| 166 |
-
id="menuButton"
|
| 167 |
-
class="text-white text-2xl focus:outline-none"
|
| 168 |
-
onclick="toggleMenu(event)"
|
| 169 |
-
>
|
| 170 |
-
<i class="fas fa-bars"></i>
|
| 171 |
-
</button>
|
| 172 |
-
|
| 173 |
-
<!-- Menu Content -->
|
| 174 |
-
<div
|
| 175 |
-
id="menu"
|
| 176 |
-
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"
|
| 177 |
-
>
|
| 178 |
-
<div class="px-4 py-2 text-lg font-semibold">メニュー</div>
|
| 179 |
-
<button onclick="showUserRegister()">
|
| 180 |
-
<i class="fas fa-user-plus"></i>
|
| 181 |
-
</button>
|
| 182 |
-
<button onclick="showRecorder()">
|
| 183 |
-
<i class="fas fa-microphone"></i> 録音画面を表示
|
| 184 |
-
</button>
|
| 185 |
-
<button onclick="showResults()">
|
| 186 |
-
<i class="fas fa-chart-bar"></i> フィードバックを表示
|
| 187 |
-
</button>
|
| 188 |
-
<button onclick="showTalkDetail()">
|
| 189 |
-
<i class="fas fa-comments"></i> 会話詳細を表示
|
| 190 |
-
</button>
|
| 191 |
-
<button onclick="resetAction()">
|
| 192 |
-
<i class="fas fa-redo"></i> リセット
|
| 193 |
-
</button>
|
| 194 |
-
<button onclick="toggleMenu(event)">
|
| 195 |
-
<i class="fas fa-times"></i> 閉じる
|
| 196 |
-
</button>
|
| 197 |
-
</div>
|
| 198 |
-
</div>
|
| 199 |
-
|
| 200 |
-
<!-- Chart Display -->
|
| 201 |
-
<div class="chart w-72 h-72 mb-5 mx-auto">
|
| 202 |
-
<canvas id="speechChart"></canvas>
|
| 203 |
-
</div>
|
| 204 |
-
|
| 205 |
-
<!-- Record Form -->
|
| 206 |
-
<form
|
| 207 |
-
id="recordForm"
|
| 208 |
-
action="/submit"
|
| 209 |
-
method="POST"
|
| 210 |
-
class="flex items-center justify-center space-x-2 w-full sm:w-auto"
|
| 211 |
-
onsubmit="event.preventDefault();"
|
| 212 |
-
>
|
| 213 |
-
<!-- Record Button -->
|
| 214 |
-
<button
|
| 215 |
-
type="button"
|
| 216 |
-
class="record-button"
|
| 217 |
-
id="recordButton"
|
| 218 |
-
onclick="toggleRecording()"
|
| 219 |
-
>
|
| 220 |
-
<div class="record-icon" id="recordIcon"></div>
|
| 221 |
-
</button>
|
| 222 |
-
</form>
|
| 223 |
-
</div>
|
| 224 |
-
|
| 225 |
-
<script src="{{ url_for('static', filename='process.js') }}"></script>
|
| 226 |
-
<script src="{{ url_for('static', filename='menu.js') }}"></script>
|
| 227 |
-
</body>
|
| 228 |
-
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="ja">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 6 |
+
<title>JustTalk - Voice Analysis</title>
|
| 7 |
+
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link
|
| 10 |
+
rel="stylesheet"
|
| 11 |
+
href="https://use.fontawesome.com/releases/v5.10.0/css/all.css"
|
| 12 |
+
/>
|
| 13 |
+
<style>
|
| 14 |
+
/* Custom Chart.js Styles */
|
| 15 |
+
#speechChart {
|
| 16 |
+
background-color: rgba(255, 255, 255, 0.05);
|
| 17 |
+
border-radius: 10px;
|
| 18 |
+
padding: 10px;
|
| 19 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
/* Record Button Styles */
|
| 23 |
+
.record-button {
|
| 24 |
+
width: 90px;
|
| 25 |
+
height: 90px;
|
| 26 |
+
background-color: transparent;
|
| 27 |
+
border-radius: 50%;
|
| 28 |
+
border: 5px solid white;
|
| 29 |
+
display: flex;
|
| 30 |
+
justify-content: center;
|
| 31 |
+
align-items: center;
|
| 32 |
+
cursor: pointer;
|
| 33 |
+
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.5);
|
| 34 |
+
transition: all 0.2s ease;
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
.record-icon {
|
| 38 |
+
width: 70px;
|
| 39 |
+
height: 70px;
|
| 40 |
+
background-color: #e53e3e;
|
| 41 |
+
border-radius: 50%;
|
| 42 |
+
transition: all 0.2s ease;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.recording .record-icon {
|
| 46 |
+
width: 50px;
|
| 47 |
+
height: 50px;
|
| 48 |
+
border-radius: 15%;
|
| 49 |
+
background-color: #c53030;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
.icon i {
|
| 53 |
+
font-size: 24px;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/* Hamburger Menu Styles */
|
| 57 |
+
#menu {
|
| 58 |
+
position: absolute;
|
| 59 |
+
top: 0;
|
| 60 |
+
left: 0;
|
| 61 |
+
z-index: 10;
|
| 62 |
+
transform: translateX(-100%);
|
| 63 |
+
visibility: hidden;
|
| 64 |
+
opacity: 0;
|
| 65 |
+
background-color: rgb(31, 41, 55);
|
| 66 |
+
transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
|
| 67 |
+
opacity 0.3s ease-in-out;
|
| 68 |
+
backdrop-filter: blur(10px);
|
| 69 |
+
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
#menu.open {
|
| 73 |
+
transform: translateX(0);
|
| 74 |
+
visibility: visible;
|
| 75 |
+
opacity: 1;
|
| 76 |
+
transition: transform 0.3s ease-in-out, visibility 0s 0s,
|
| 77 |
+
opacity 0.3s ease-in-out;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
#menu button {
|
| 81 |
+
transition: background-color 0.2s ease;
|
| 82 |
+
background-color: rgba(0, 0, 0, 0.1); /* 変更点: 透明度を 10% に変更 */
|
| 83 |
+
margin: 2px;
|
| 84 |
+
border-radius: 5px;
|
| 85 |
+
display: flex;
|
| 86 |
+
align-items: center;
|
| 87 |
+
justify-content: flex-start;
|
| 88 |
+
gap: 10px;
|
| 89 |
+
padding: 0.75rem 1rem;
|
| 90 |
+
width: 100%;
|
| 91 |
+
text-align: left;
|
| 92 |
+
border: none;
|
| 93 |
+
color: #fff;
|
| 94 |
+
font-size: 1rem;
|
| 95 |
+
cursor: pointer;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
#menu button:hover {
|
| 99 |
+
background-color: rgba(55, 65, 81, 0.7);
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
/* Responsive Design */
|
| 103 |
+
@media (max-width: 640px) {
|
| 104 |
+
.w-72 {
|
| 105 |
+
width: 95%;
|
| 106 |
+
}
|
| 107 |
+
.h-72 {
|
| 108 |
+
height: 350px;
|
| 109 |
+
}
|
| 110 |
+
}
|
| 111 |
+
/* Main Container */
|
| 112 |
+
body {
|
| 113 |
+
background: linear-gradient(135deg, #2c3e50, #1f2937);
|
| 114 |
+
display: flex;
|
| 115 |
+
align-items: center;
|
| 116 |
+
justify-content: center;
|
| 117 |
+
min-height: 100vh;
|
| 118 |
+
font-family: "Arial", sans-serif;
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
/* Main Content Wrapper */
|
| 122 |
+
.main-content {
|
| 123 |
+
border: 5px solid rgba(255, 255, 255, 0.2);
|
| 124 |
+
padding: 2rem;
|
| 125 |
+
border-radius: 1rem;
|
| 126 |
+
width: 90%;
|
| 127 |
+
max-width: 500px;
|
| 128 |
+
background-color: rgba(0, 0, 0, 0.3);
|
| 129 |
+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
|
| 130 |
+
text-align: center;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
/* Title */
|
| 134 |
+
.main-title {
|
| 135 |
+
font-size: 2.5rem;
|
| 136 |
+
font-weight: bold;
|
| 137 |
+
margin-bottom: 1.5rem;
|
| 138 |
+
color: #fff;
|
| 139 |
+
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
/* Hamburger Menu Button */
|
| 143 |
+
#menuButton {
|
| 144 |
+
background-color: rgba(255, 255, 255, 0.1);
|
| 145 |
+
border: none;
|
| 146 |
+
border-radius: 50%;
|
| 147 |
+
padding: 0.5rem;
|
| 148 |
+
cursor: pointer;
|
| 149 |
+
transition: background-color 0.2s ease;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
#menuButton:hover {
|
| 153 |
+
background-color: rgba(255, 255, 255, 0.2);
|
| 154 |
+
}
|
| 155 |
+
</style>
|
| 156 |
+
</head>
|
| 157 |
+
<body onclick="closeMenu(event)">
|
| 158 |
+
<!-- Main Content Wrapper -->
|
| 159 |
+
<div class="main-content relative">
|
| 160 |
+
<!-- Title -->
|
| 161 |
+
<div class="main-title">JustTalk</div>
|
| 162 |
+
|
| 163 |
+
<!-- Hamburger Menu -->
|
| 164 |
+
<div class="absolute top-4 left-4">
|
| 165 |
+
<button
|
| 166 |
+
id="menuButton"
|
| 167 |
+
class="text-white text-2xl focus:outline-none"
|
| 168 |
+
onclick="toggleMenu(event)"
|
| 169 |
+
>
|
| 170 |
+
<i class="fas fa-bars"></i>
|
| 171 |
+
</button>
|
| 172 |
+
|
| 173 |
+
<!-- Menu Content -->
|
| 174 |
+
<div
|
| 175 |
+
id="menu"
|
| 176 |
+
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"
|
| 177 |
+
>
|
| 178 |
+
<div class="px-4 py-2 text-lg font-semibold">メニュー</div>
|
| 179 |
+
<button onclick="showUserRegister()">
|
| 180 |
+
<i class="fas fa-user-plus"></i> メンバーを追加
|
| 181 |
+
</button>
|
| 182 |
+
<button onclick="showRecorder()">
|
| 183 |
+
<i class="fas fa-microphone"></i> 録音画面を表示
|
| 184 |
+
</button>
|
| 185 |
+
<button onclick="showResults()">
|
| 186 |
+
<i class="fas fa-chart-bar"></i> フィードバックを表示
|
| 187 |
+
</button>
|
| 188 |
+
<button onclick="showTalkDetail()">
|
| 189 |
+
<i class="fas fa-comments"></i> 会話詳細を表示
|
| 190 |
+
</button>
|
| 191 |
+
<button onclick="resetAction()">
|
| 192 |
+
<i class="fas fa-redo"></i> リセット
|
| 193 |
+
</button>
|
| 194 |
+
<button onclick="toggleMenu(event)">
|
| 195 |
+
<i class="fas fa-times"></i> 閉じる
|
| 196 |
+
</button>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
|
| 200 |
+
<!-- Chart Display -->
|
| 201 |
+
<div class="chart w-72 h-72 mb-5 mx-auto">
|
| 202 |
+
<canvas id="speechChart"></canvas>
|
| 203 |
+
</div>
|
| 204 |
+
|
| 205 |
+
<!-- Record Form -->
|
| 206 |
+
<form
|
| 207 |
+
id="recordForm"
|
| 208 |
+
action="/submit"
|
| 209 |
+
method="POST"
|
| 210 |
+
class="flex items-center justify-center space-x-2 w-full sm:w-auto"
|
| 211 |
+
onsubmit="event.preventDefault();"
|
| 212 |
+
>
|
| 213 |
+
<!-- Record Button -->
|
| 214 |
+
<button
|
| 215 |
+
type="button"
|
| 216 |
+
class="record-button"
|
| 217 |
+
id="recordButton"
|
| 218 |
+
onclick="toggleRecording()"
|
| 219 |
+
>
|
| 220 |
+
<div class="record-icon" id="recordIcon"></div>
|
| 221 |
+
</button>
|
| 222 |
+
</form>
|
| 223 |
+
</div>
|
| 224 |
+
|
| 225 |
+
<script src="{{ url_for('static', filename='process.js') }}"></script>
|
| 226 |
+
<script src="{{ url_for('static', filename='menu.js') }}"></script>
|
| 227 |
+
</body>
|
| 228 |
+
</html>
|
templates/talkDetail.html
CHANGED
|
@@ -1,49 +1,49 @@
|
|
| 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 |
+
<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>
|
templates/userRegister.html
CHANGED
|
@@ -4,6 +4,7 @@
|
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
<title>ユーザー音声登録</title>
|
| 6 |
<script src="https://cdn.tailwindcss.com"></script>
|
|
|
|
| 7 |
<style>
|
| 8 |
@keyframes pulse-scale {
|
| 9 |
0%,
|
|
@@ -17,6 +18,8 @@
|
|
| 17 |
.animate-pulse-scale {
|
| 18 |
animation: pulse-scale 1s infinite;
|
| 19 |
}
|
|
|
|
|
|
|
| 20 |
.record-button {
|
| 21 |
width: 50px;
|
| 22 |
height: 50px;
|
|
@@ -38,6 +41,7 @@
|
|
| 38 |
transition: all 0.3s ease;
|
| 39 |
}
|
| 40 |
.record-button.recording .record-icon {
|
|
|
|
| 41 |
border-radius: 4px; /* 録音時に赤い部分だけ四角にする */
|
| 42 |
}
|
| 43 |
.recording .record-icon {
|
|
@@ -45,46 +49,103 @@
|
|
| 45 |
height: 20px;
|
| 46 |
border-radius: 50%;
|
| 47 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
@media (max-width: 640px) {
|
| 49 |
-
.
|
| 50 |
-
padding:
|
| 51 |
}
|
| 52 |
}
|
| 53 |
</style>
|
| 54 |
</head>
|
| 55 |
-
<body
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
| 59 |
<div id="people-list" class="space-y-4"></div>
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
メンバーを追加
|
| 65 |
</button>
|
| 66 |
|
| 67 |
-
<!--
|
| 68 |
<button
|
| 69 |
id="backButton"
|
| 70 |
-
onclick="
|
| 71 |
-
class="
|
| 72 |
>
|
| 73 |
-
|
| 74 |
</button>
|
| 75 |
</div>
|
| 76 |
|
| 77 |
<script src="{{ url_for('static', filename='register_record.js') }}"></script>
|
| 78 |
-
|
| 79 |
-
function showRecorder() {
|
| 80 |
-
// 録音画面へ遷移
|
| 81 |
-
window.location.href = "index";
|
| 82 |
-
}
|
| 83 |
-
</script>
|
| 84 |
-
<script>
|
| 85 |
-
|
| 86 |
-
|
| 87 |
|
| 88 |
-
|
| 89 |
</body>
|
| 90 |
</html>
|
|
|
|
| 4 |
<meta charset="UTF-8" />
|
| 5 |
<title>ユーザー音声登録</title>
|
| 6 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 7 |
+
<script src="https://use.fontawesome.com/releases/v5.10.0/js/all.js"></script>
|
| 8 |
<style>
|
| 9 |
@keyframes pulse-scale {
|
| 10 |
0%,
|
|
|
|
| 18 |
.animate-pulse-scale {
|
| 19 |
animation: pulse-scale 1s infinite;
|
| 20 |
}
|
| 21 |
+
|
| 22 |
+
/* Record Button Styles */
|
| 23 |
.record-button {
|
| 24 |
width: 50px;
|
| 25 |
height: 50px;
|
|
|
|
| 41 |
transition: all 0.3s ease;
|
| 42 |
}
|
| 43 |
.record-button.recording .record-icon {
|
| 44 |
+
background-color: #f44336; /* 録音中は赤色 */
|
| 45 |
border-radius: 4px; /* 録音時に赤い部分だけ四角にする */
|
| 46 |
}
|
| 47 |
.recording .record-icon {
|
|
|
|
| 49 |
height: 20px;
|
| 50 |
border-radius: 50%;
|
| 51 |
}
|
| 52 |
+
|
| 53 |
+
/* Main Container */
|
| 54 |
+
body {
|
| 55 |
+
background: linear-gradient(135deg, #2c3e50, #1f2937);
|
| 56 |
+
display: flex;
|
| 57 |
+
align-items: center;
|
| 58 |
+
justify-content: center;
|
| 59 |
+
min-height: 100vh;
|
| 60 |
+
font-family: "Arial", sans-serif;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/* Main Content Wrapper */
|
| 64 |
+
.main-content {
|
| 65 |
+
border: 5px solid rgba(255, 255, 255, 0.2);
|
| 66 |
+
padding: 2rem;
|
| 67 |
+
border-radius: 1rem;
|
| 68 |
+
width: 90%;
|
| 69 |
+
max-width: 500px;
|
| 70 |
+
background-color: rgba(0, 0, 0, 0.3);
|
| 71 |
+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
|
| 72 |
+
text-align: center;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* Title */
|
| 76 |
+
.main-title {
|
| 77 |
+
font-size: 2.5rem;
|
| 78 |
+
font-weight: bold;
|
| 79 |
+
margin-bottom: 1.5rem;
|
| 80 |
+
color: #fff;
|
| 81 |
+
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
/* Buttons */
|
| 85 |
+
.action-button {
|
| 86 |
+
margin-top: 1rem;
|
| 87 |
+
padding: 0.75rem 1.5rem;
|
| 88 |
+
border-radius: 0.5rem;
|
| 89 |
+
cursor: pointer;
|
| 90 |
+
transition: background-color 0.2s ease;
|
| 91 |
+
width: 100%;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
.action-button:hover {
|
| 95 |
+
background-color: rgba(55, 65, 81, 0.7);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
.back-button {
|
| 99 |
+
background-color: #607d8b; /* 落ち着いたグレー */
|
| 100 |
+
color: white;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.add-button {
|
| 104 |
+
background-color: #4caf50; /* 落ち着いた緑色 */
|
| 105 |
+
color: white;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/* Disabled State */
|
| 109 |
+
.disabled {
|
| 110 |
+
opacity: 0.5;
|
| 111 |
+
pointer-events: none;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
/* Responsive Design */
|
| 115 |
@media (max-width: 640px) {
|
| 116 |
+
.main-content {
|
| 117 |
+
padding: 1.5rem;
|
| 118 |
}
|
| 119 |
}
|
| 120 |
</style>
|
| 121 |
</head>
|
| 122 |
+
<body>
|
| 123 |
+
<!-- Main Content Wrapper -->
|
| 124 |
+
<div class="main-content relative">
|
| 125 |
+
<!-- Title -->
|
| 126 |
+
<div class="main-title">ユーザー音声登録</div>
|
| 127 |
+
|
| 128 |
+
<!-- User List -->
|
| 129 |
<div id="people-list" class="space-y-4"></div>
|
| 130 |
+
|
| 131 |
+
<!-- Add Button -->
|
| 132 |
+
<button id="add-btn" class="action-button add-button">
|
| 133 |
+
<i class="fas fa-user-plus"></i> メンバーを追加
|
|
|
|
| 134 |
</button>
|
| 135 |
|
| 136 |
+
<!-- Back Button -->
|
| 137 |
<button
|
| 138 |
id="backButton"
|
| 139 |
+
onclick="goBack()"
|
| 140 |
+
class="action-button back-button"
|
| 141 |
>
|
| 142 |
+
戻る
|
| 143 |
</button>
|
| 144 |
</div>
|
| 145 |
|
| 146 |
<script src="{{ url_for('static', filename='register_record.js') }}"></script>
|
| 147 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 148 |
|
| 149 |
+
|
| 150 |
</body>
|
| 151 |
</html>
|