PyxiLabs commited on
Commit
398b889
·
verified ·
1 Parent(s): b50f6e8

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +46 -20
templates/index.html CHANGED
@@ -5,26 +5,20 @@
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>PyxiLabs._.Vocify - Text to Speech API</title>
7
  <link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
8
- <!-- Standard favicon -->
9
  <link rel="icon" href="/static/icon.png" type="image/png">
10
-
11
- <!-- For higher resolution displays (Retina, etc.) -->
12
  <link rel="icon" href="/static/icon.png" sizes="32x32" type="image/png">
13
  <link rel="icon" href="/static/icon.png" sizes="16x16" type="image/png">
14
-
15
- <!-- Optional: For Apple devices (iPhone, iPad, etc.) -->
16
  <link rel="apple-touch-icon" href="/static/icon.png">
17
-
18
- <!-- Optional: For Android devices -->
19
  <link rel="icon" href="/static/icon.png" sizes="192x192">
20
- <style>
21
  :root {
22
  --gradient-start: #ff0066;
23
  --gradient-end: #3366ff;
24
  }
25
 
26
  body {
27
- background-image: url('static/bg2.png');
28
  background-size: cover;
29
  background-position: center;
30
  background-attachment: fixed;
@@ -122,34 +116,66 @@
122
  color: rgba(255, 255, 255, 0.9);
123
  }
124
 
 
125
  .loading-bar-container {
126
- height: 10px;
127
  background-color: rgba(255, 255, 255, 0.1);
128
- border-radius: 5px;
129
  overflow: hidden;
130
  margin-top: 1rem;
 
 
131
  }
132
 
133
  .loading-bar {
134
  height: 100%;
135
- background: linear-gradient(to right, #ff0066, #3366ff);
136
  width: 0%;
137
- border-radius: 5px;
138
- transition: width 0.3s ease-in-out;
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  }
 
 
 
 
 
 
 
 
 
 
140
  .loading-bar-text {
141
  position: absolute;
142
  top: 50%;
143
  left: 50%;
144
  transform: translate(-50%, -50%);
145
  color: white;
146
- font-size: 0.8rem;
 
 
 
 
 
 
147
  }
148
  </style>
149
  </head>
150
  <body class="text-white text-shadow">
151
  <div class="container mx-auto px-4 py-8 md:py-12 max-w-6xl relative">
152
- <!-- Header remains unchanged -->
153
  <header class="text-center mb-8 md:mb-12">
154
  <div class="glass-effect inline-block px-6 md:px-10 py-4 md:py-6 rounded-3xl mb-6 md:mb-8">
155
  <h1 class="text-3xl md:text-5xl lg:text-7xl font-bold gradient-text mb-3 md:mb-4 tracking-tight">PyxiLabs._.Vocify</h1>
@@ -159,7 +185,7 @@
159
 
160
  <!-- Main Content -->
161
  <div class="max-w-3xl mx-auto content-box rounded-3xl custom-shadow p-4 md:p-8 lg:p-10 hover-scale">
162
- <!-- Model Selection (New) -->
163
  <div class="mb-6 md:mb-8">
164
  <label class="block white-text text-base md:text-lg font-medium mb-2 md:mb-3" for="model">
165
  Select Model
@@ -215,11 +241,11 @@
215
  </button>
216
 
217
  <!-- Loading Bar -->
218
- <div id="loading-bar-container" class="hidden relative">
219
  <div class="loading-bar-container">
220
  <div id="loading-bar" class="loading-bar"></div>
221
  </div>
222
- <div id="loading-bar-text" class="absolute inset-0 flex justify-center items-center text-white font-semibold">0%</div>
223
  </div>
224
 
225
  <!-- Audio Player -->
@@ -231,7 +257,7 @@
231
  </div>
232
  </div>
233
 
234
- <!-- Loading State (the spinning circle) -->
235
  <div id="loading" class="hidden mt-6 md:mt-8 text-center">
236
  <div class="inline-block animate-spin rounded-full h-10 w-10 md:h-12 md:w-12 border-4 border-red-500 border-t-transparent"></div>
237
  </div>
 
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
  <title>PyxiLabs._.Vocify - Text to Speech API</title>
7
  <link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
8
+ <!-- Favicon -->
9
  <link rel="icon" href="/static/icon.png" type="image/png">
 
 
10
  <link rel="icon" href="/static/icon.png" sizes="32x32" type="image/png">
11
  <link rel="icon" href="/static/icon.png" sizes="16x16" type="image/png">
 
 
12
  <link rel="apple-touch-icon" href="/static/icon.png">
 
 
13
  <link rel="icon" href="/static/icon.png" sizes="192x192">
14
+ <style>
15
  :root {
16
  --gradient-start: #ff0066;
17
  --gradient-end: #3366ff;
18
  }
19
 
20
  body {
21
+ background-image: url('static/bg3.png');
22
  background-size: cover;
23
  background-position: center;
24
  background-attachment: fixed;
 
116
  color: rgba(255, 255, 255, 0.9);
117
  }
118
 
119
+ /* Enhanced Loading Bar */
120
  .loading-bar-container {
121
+ height: 12px;
122
  background-color: rgba(255, 255, 255, 0.1);
123
+ border-radius: 10px;
124
  overflow: hidden;
125
  margin-top: 1rem;
126
+ position: relative;
127
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
128
  }
129
 
130
  .loading-bar {
131
  height: 100%;
132
+ background: linear-gradient(90deg, #ff0066, #3366ff);
133
  width: 0%;
134
+ border-radius: 10px;
135
+ transition: width 0.5s ease-in-out;
136
+ position: relative;
137
+ overflow: hidden;
138
+ }
139
+
140
+ .loading-bar::after {
141
+ content: '';
142
+ position: absolute;
143
+ top: 0;
144
+ left: -100%;
145
+ width: 100%;
146
+ height: 100%;
147
+ background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
148
+ animation: shimmer 2s infinite;
149
  }
150
+
151
+ @keyframes shimmer {
152
+ 0% {
153
+ left: -100%;
154
+ }
155
+ 100% {
156
+ left: 100%;
157
+ }
158
+ }
159
+
160
  .loading-bar-text {
161
  position: absolute;
162
  top: 50%;
163
  left: 50%;
164
  transform: translate(-50%, -50%);
165
  color: white;
166
+ font-size: 0.9rem;
167
+ font-weight: bold;
168
+ text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
169
+ background: rgba(0, 0, 0, 0.5);
170
+ padding: 2px 8px;
171
+ border-radius: 12px;
172
+ backdrop-filter: blur(4px);
173
  }
174
  </style>
175
  </head>
176
  <body class="text-white text-shadow">
177
  <div class="container mx-auto px-4 py-8 md:py-12 max-w-6xl relative">
178
+ <!-- Header -->
179
  <header class="text-center mb-8 md:mb-12">
180
  <div class="glass-effect inline-block px-6 md:px-10 py-4 md:py-6 rounded-3xl mb-6 md:mb-8">
181
  <h1 class="text-3xl md:text-5xl lg:text-7xl font-bold gradient-text mb-3 md:mb-4 tracking-tight">PyxiLabs._.Vocify</h1>
 
185
 
186
  <!-- Main Content -->
187
  <div class="max-w-3xl mx-auto content-box rounded-3xl custom-shadow p-4 md:p-8 lg:p-10 hover-scale">
188
+ <!-- Model Selection -->
189
  <div class="mb-6 md:mb-8">
190
  <label class="block white-text text-base md:text-lg font-medium mb-2 md:mb-3" for="model">
191
  Select Model
 
241
  </button>
242
 
243
  <!-- Loading Bar -->
244
+ <div id="loading-bar-container" class="hidden relative mt-6">
245
  <div class="loading-bar-container">
246
  <div id="loading-bar" class="loading-bar"></div>
247
  </div>
248
+ <div id="loading-bar-text" class="loading-bar-text">0%</div>
249
  </div>
250
 
251
  <!-- Audio Player -->
 
257
  </div>
258
  </div>
259
 
260
+ <!-- Loading Spinner -->
261
  <div id="loading" class="hidden mt-6 md:mt-8 text-center">
262
  <div class="inline-block animate-spin rounded-full h-10 w-10 md:h-12 md:w-12 border-4 border-red-500 border-t-transparent"></div>
263
  </div>