Update gitignore
This commit is contained in:
commit
9e0ddb8182
32 changed files with 3863 additions and 0 deletions
87
views/overlay_preview.ejs
Normal file
87
views/overlay_preview.ejs
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<style>
|
||||
:root {
|
||||
--chat-left: <%= overlayLayout.chat_left %>%;
|
||||
--chat-top: <%= overlayLayout.chat_top %>%;
|
||||
--chat-width: <%= overlayLayout.chat_width %>%;
|
||||
--chat-height: <%= overlayLayout.chat_height %>%;
|
||||
--chat-font-size: <%= overlayLayout.chat_font_size %>px;
|
||||
--chat-font-family: <%= overlayLayout.chat_font_family %>;
|
||||
--chat-bg-opacity: <%= overlayLayout.chat_bg_opacity %>;
|
||||
--chat-text-color: <%= overlayLayout.chat_text_color %>;
|
||||
--chat-border-radius: <%= overlayLayout.chat_border_radius %>px;
|
||||
--alert-left: <%= overlayLayout.alert_left %>%;
|
||||
--alert-top: <%= overlayLayout.alert_top %>%;
|
||||
--alert-font-size: <%= overlayLayout.alert_font_size %>px;
|
||||
--alert-bg-opacity: <%= overlayLayout.alert_bg_opacity %>;
|
||||
--alert-text-color: <%= overlayLayout.alert_text_color %>;
|
||||
}
|
||||
* { margin: 0; padding: 0; box-sizing: border-box; }
|
||||
body { background: rgba(30,30,30,0.6); overflow: hidden; width: 1920px; height: 1080px; }
|
||||
|
||||
#chat {
|
||||
position: fixed;
|
||||
left: var(--chat-left);
|
||||
top: var(--chat-top);
|
||||
width: var(--chat-width);
|
||||
max-height: var(--chat-height);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
font-family: var(--chat-font-family);
|
||||
font-size: var(--chat-font-size);
|
||||
color: var(--chat-text-color);
|
||||
}
|
||||
.chat-msg {
|
||||
background: rgba(0, 0, 0, var(--chat-bg-opacity));
|
||||
border-radius: var(--chat-border-radius);
|
||||
padding: 5px 10px;
|
||||
word-break: break-word;
|
||||
}
|
||||
.chat-msg .username { font-weight: 700; margin-right: 4px; }
|
||||
|
||||
#alert-box {
|
||||
position: fixed;
|
||||
left: var(--alert-left);
|
||||
top: var(--alert-top);
|
||||
transform: translate(-50%, -50%);
|
||||
font-family: var(--chat-font-family);
|
||||
font-size: var(--alert-font-size);
|
||||
color: var(--alert-text-color);
|
||||
background: rgba(0, 0, 0, var(--alert-bg-opacity));
|
||||
border-radius: 12px;
|
||||
padding: 16px 28px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#chat-handle, #alert-handle {
|
||||
position: fixed;
|
||||
border: 2px dashed rgba(255,255,255,0.5);
|
||||
cursor: move;
|
||||
background: rgba(255,255,255,0.05);
|
||||
}
|
||||
#chat-handle {
|
||||
left: var(--chat-left); top: var(--chat-top);
|
||||
width: var(--chat-width); height: var(--chat-height);
|
||||
}
|
||||
#alert-handle {
|
||||
left: calc(var(--alert-left) - 80px); top: calc(var(--alert-top) - 20px);
|
||||
width: 160px; height: 40px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="chat">
|
||||
<div class="chat-msg"><span class="username" style="color:#9146ff">channel</span>: This is a preview message</div>
|
||||
<div class="chat-msg"><span class="username" style="color:#ff6b6b">someviewer</span>: Looking great!</div>
|
||||
<div class="chat-msg"><span class="username" style="color:#6bcbff">anotheruser</span>: pog pog pog</div>
|
||||
</div>
|
||||
<div id="alert-box">Alert preview</div>
|
||||
<div id="chat-handle" data-widget="chat"></div>
|
||||
<div id="alert-handle" data-widget="alert"></div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue