rein0421 commited on
Commit
d7b2813
·
verified ·
1 Parent(s): f024ed2

Upload index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +59 -72
templates/index.html CHANGED
@@ -13,59 +13,60 @@
13
  <style>
14
  /* Custom Chart.js Styles */
15
  #speechChart {
16
- background-color: rgba(255, 255, 255, 0.05); /* Subtle background for the chart */
17
  border-radius: 10px;
18
  padding: 10px;
19
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
20
  }
21
 
22
  /* Record Button Styles */
23
  .record-button {
24
- width: 90px; /* Slightly larger */
25
- height: 90px; /* Slightly larger */
26
  background-color: transparent;
27
  border-radius: 50%;
28
- border: 5px solid white; /* Thicker border */
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); /* Deeper shadow */
34
  transition: all 0.2s ease;
35
  }
36
 
37
  .record-icon {
38
- width: 70px; /* Slightly larger */
39
- height: 70px; /* Slightly larger */
40
- background-color: #e53e3e; /* Brighter red */
41
  border-radius: 50%;
42
  transition: all 0.2s ease;
43
  }
44
 
45
  .recording .record-icon {
46
- width: 50px; /* Slightly larger */
47
- height: 50px; /* Slightly larger */
48
- border-radius: 15%; /* More rounded square */
49
- background-color: #c53030; /* Darker red when recording */
50
  }
51
 
52
  .icon i {
53
- font-size: 24px; /* Larger icon */
54
  }
55
 
56
  /* Hamburger Menu Styles */
57
  #menu {
58
  position: absolute;
59
  top: 0;
60
- right: 0;
61
  z-index: 10;
62
- transform: translateX(100%);
63
  visibility: hidden;
64
  opacity: 0;
65
- background-color: rgba(31, 41, 55, 0.95); /* Slightly transparent */
66
  transition: transform 0.3s ease-in-out, visibility 0s 0.3s,
67
  opacity 0.3s ease-in-out;
68
- backdrop-filter: blur(10px); /* Add a blur effect */
 
69
  }
70
 
71
  #menu.open {
@@ -78,40 +79,54 @@
78
 
79
  #menu button {
80
  transition: background-color 0.2s ease;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  }
82
 
83
  #menu button:hover {
84
- background-color: rgba(55, 65, 81, 0.7); /* Darker on hover */
85
  }
86
 
87
  /* Responsive Design */
88
  @media (max-width: 640px) {
89
  .w-72 {
90
- width: 95%; /* Take up more space on small screens */
91
  }
92
  .h-72 {
93
- height: 350px; /* Taller on small screens */
94
  }
95
  }
96
  /* Main Container */
97
  body {
98
- background: linear-gradient(135deg, #2c3e50, #1f2937); /* Gradient background */
99
  display: flex;
100
  align-items: center;
101
  justify-content: center;
102
- min-height: 100vh; /* Ensure full viewport height */
103
- font-family: 'Arial', sans-serif; /* Modern font */
104
  }
105
 
106
  /* Main Content Wrapper */
107
  .main-content {
108
- border: 5px solid rgba(255, 255, 255, 0.2); /* Subtle border */
109
  padding: 2rem;
110
  border-radius: 1rem;
111
- width: 90%; /* Responsive width */
112
- max-width: 500px; /* Maximum width */
113
- background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
114
- box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Stronger shadow */
115
  text-align: center;
116
  }
117
 
@@ -121,12 +136,12 @@
121
  font-weight: bold;
122
  margin-bottom: 1.5rem;
123
  color: #fff;
124
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow */
125
  }
126
 
127
  /* Hamburger Menu Button */
128
  #menuButton {
129
- background-color: rgba(255, 255, 255, 0.1); /* Light background */
130
  border: none;
131
  border-radius: 50%;
132
  padding: 0.5rem;
@@ -135,20 +150,7 @@
135
  }
136
 
137
  #menuButton:hover {
138
- background-color: rgba(255, 255, 255, 0.2); /* Darker on hover */
139
- }
140
-
141
- /* Menu Items */
142
- #menu button {
143
- display: block;
144
- width: 100%;
145
- padding: 0.75rem 1rem;
146
- text-align: left;
147
- border: none;
148
- background-color: transparent;
149
- color: #fff;
150
- font-size: 1rem;
151
- cursor: pointer;
152
  }
153
  </style>
154
  </head>
@@ -159,7 +161,7 @@
159
  <div class="main-title">JustTalk</div>
160
 
161
  <!-- Hamburger Menu -->
162
- <div class="absolute top-4 right-4">
163
  <button
164
  id="menuButton"
165
  class="text-white text-2xl focus:outline-none"
@@ -171,38 +173,23 @@
171
  <!-- Menu Content -->
172
  <div
173
  id="menu"
174
- class="absolute top-0 right-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"
175
  >
176
  <div class="px-4 py-2 text-lg font-semibold">メニュー</div>
177
- <button
178
- onclick="showUserRegister()"
179
- class="block px-4 py-2 text-sm hover:bg-gray-700"
180
- >
181
- メンバーを追加
182
  </button>
183
- <button
184
- onclick="showResults()"
185
- class="block px-4 py-2 text-sm hover:bg-gray-700"
186
- >
187
- フィードバックを表示
188
  </button>
189
- <button
190
- onclick="showTalkdetail()"
191
- class="block px-4 py-2 text-sm hover:bg-gray-700"
192
- >
193
- 会話詳細を表示
194
  </button>
195
- <button
196
- onclick="resetAction()"
197
- class="block px-4 py-2 text-sm hover:bg-gray-700"
198
- >
199
- リセット
200
  </button>
201
- <button
202
- onclick="toggleMenu(event)"
203
- class="block px-4 py-2 text-sm hover:bg-gray-700"
204
- >
205
- 閉じる
206
  </button>
207
  </div>
208
  </div>
 
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 {
 
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
 
 
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;
 
150
  }
151
 
152
  #menuButton:hover {
153
+ background-color: rgba(255, 255, 255, 0.2);
 
 
 
 
 
 
 
 
 
 
 
 
 
154
  }
155
  </style>
156
  </head>
 
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"
 
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="showResults()">
183
+ <i class="fas fa-chart-bar"></i> フィードバックを表示
 
 
 
184
  </button>
185
+ <button onclick="showTalkdetail()">
186
+ <i class="fas fa-comments"></i> 会話詳細を表示
 
 
 
187
  </button>
188
+ <button onclick="resetAction()">
189
+ <i class="fas fa-redo"></i> リセット
 
 
 
190
  </button>
191
+ <button onclick="toggleMenu(event)">
192
+ <i class="fas fa-times"></i> 閉じる
 
 
 
193
  </button>
194
  </div>
195
  </div>