Spaces:
Running
Running
Delete index.html
Browse files- index.html +0 -123
index.html
DELETED
@@ -1,123 +0,0 @@
|
|
1 |
-
|
2 |
-
<!DOCTYPE html>
|
3 |
-
<html lang="en">
|
4 |
-
<head>
|
5 |
-
<meta charset="UTF-8" />
|
6 |
-
<title>Chat Animator TikTok Export</title>
|
7 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
8 |
-
<style>
|
9 |
-
html, body {
|
10 |
-
margin: 0;
|
11 |
-
padding: 0;
|
12 |
-
background: #000;
|
13 |
-
height: 100%;
|
14 |
-
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
15 |
-
}
|
16 |
-
.phone-frame {
|
17 |
-
width: 360px;
|
18 |
-
height: 640px;
|
19 |
-
margin: 0 auto;
|
20 |
-
position: relative;
|
21 |
-
overflow: hidden;
|
22 |
-
border-radius: 32px;
|
23 |
-
box-shadow: 0 0 12px rgba(0,0,0,0.6);
|
24 |
-
}
|
25 |
-
video#bg {
|
26 |
-
position: absolute;
|
27 |
-
width: 100%;
|
28 |
-
height: 100%;
|
29 |
-
object-fit: cover;
|
30 |
-
z-index: 0;
|
31 |
-
}
|
32 |
-
#chat {
|
33 |
-
position: absolute;
|
34 |
-
z-index: 1;
|
35 |
-
width: 100%;
|
36 |
-
height: 100%;
|
37 |
-
padding: 12px;
|
38 |
-
display: flex;
|
39 |
-
flex-direction: column;
|
40 |
-
justify-content: flex-end;
|
41 |
-
overflow-y: hidden;
|
42 |
-
}
|
43 |
-
.message {
|
44 |
-
display: flex;
|
45 |
-
align-items: flex-end;
|
46 |
-
margin-bottom: 10px;
|
47 |
-
opacity: 0;
|
48 |
-
transform: translateY(20px);
|
49 |
-
animation: fadeIn 0.6s ease forwards;
|
50 |
-
}
|
51 |
-
.left { flex-direction: row; }
|
52 |
-
.right { flex-direction: row-reverse; }
|
53 |
-
.avatar {
|
54 |
-
width: 32px;
|
55 |
-
height: 32px;
|
56 |
-
border-radius: 50%;
|
57 |
-
margin: 0 6px;
|
58 |
-
}
|
59 |
-
.bubble {
|
60 |
-
max-width: 70%;
|
61 |
-
padding: 10px 14px;
|
62 |
-
font-size: 14px;
|
63 |
-
border-radius: 18px;
|
64 |
-
background: white;
|
65 |
-
}
|
66 |
-
.right .bubble { background: #007aff; color: white; }
|
67 |
-
.typing {
|
68 |
-
width: 48px;
|
69 |
-
height: 20px;
|
70 |
-
background: #e5e5ea;
|
71 |
-
border-radius: 12px;
|
72 |
-
display: flex;
|
73 |
-
align-items: center;
|
74 |
-
justify-content: center;
|
75 |
-
gap: 3px;
|
76 |
-
margin-bottom: 10px;
|
77 |
-
animation: fadeIn 0.3s ease;
|
78 |
-
}
|
79 |
-
.typing span {
|
80 |
-
width: 6px;
|
81 |
-
height: 6px;
|
82 |
-
background: #999;
|
83 |
-
border-radius: 50%;
|
84 |
-
animation: blink 1.4s infinite;
|
85 |
-
}
|
86 |
-
.typing span:nth-child(2) { animation-delay: 0.2s; }
|
87 |
-
.typing span:nth-child(3) { animation-delay: 0.4s; }
|
88 |
-
|
89 |
-
@keyframes fadeIn {
|
90 |
-
to { opacity: 1; transform: translateY(0); }
|
91 |
-
}
|
92 |
-
@keyframes blink {
|
93 |
-
0%, 80%, 100% { opacity: 0.2; }
|
94 |
-
40% { opacity: 1; }
|
95 |
-
}
|
96 |
-
#controls {
|
97 |
-
text-align: center;
|
98 |
-
margin: 10px auto;
|
99 |
-
color: white;
|
100 |
-
}
|
101 |
-
button {
|
102 |
-
padding: 10px 20px;
|
103 |
-
background: #25d366;
|
104 |
-
border: none;
|
105 |
-
border-radius: 8px;
|
106 |
-
color: white;
|
107 |
-
font-size: 16px;
|
108 |
-
cursor: pointer;
|
109 |
-
}
|
110 |
-
</style>
|
111 |
-
</head>
|
112 |
-
<body>
|
113 |
-
<div class="phone-frame">
|
114 |
-
<video id="bg" muted loop></video>
|
115 |
-
<div id="chat"></div>
|
116 |
-
</div>
|
117 |
-
<div id="controls">
|
118 |
-
<input type="file" accept="video/mp4" onchange="loadBackground(event)">
|
119 |
-
<button onclick="start()">🎬 Export MP4 with Voice</button>
|
120 |
-
</div>
|
121 |
-
<script type="module" src="main.js"></script>
|
122 |
-
</body>
|
123 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|