Express + Socket.IO backend with Google login on the sender page, a transparent overlay page for OBS/StreamLabs Browser Source, and TTS voice-over via the edge-tts Python CLI (same engine as t2sTelegramBot). Dockerized for deployment. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
55 lines
1 KiB
HTML
55 lines
1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Overlay</title>
|
|
<style>
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
background: transparent;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
#box {
|
|
position: fixed;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%) scale(0.95);
|
|
max-width: 80%;
|
|
padding: 20px 32px;
|
|
background: rgba(0, 0, 0, 0.75);
|
|
color: #fff;
|
|
font-family: system-ui, sans-serif;
|
|
font-size: 36px;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
border-radius: 16px;
|
|
opacity: 0;
|
|
transition: opacity 0.4s ease, transform 0.4s ease;
|
|
word-wrap: break-word;
|
|
}
|
|
#box.visible {
|
|
opacity: 1;
|
|
transform: translate(-50%, -50%) scale(1);
|
|
}
|
|
#from {
|
|
font-size: 18px;
|
|
font-weight: 400;
|
|
opacity: 0.75;
|
|
margin-bottom: 6px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="box">
|
|
<div id="from"></div>
|
|
<div id="text"></div>
|
|
</div>
|
|
|
|
<script src="/socket.io/socket.io.js"></script>
|
|
<script src="/overlay.js"></script>
|
|
</body>
|
|
</html>
|