make a prototype title webpage

This commit is contained in:
2024-07-07 20:19:06 -06:00
commit 7b7c1b0a75
6 changed files with 85 additions and 0 deletions

8
.idea/.gitignore generated vendored Normal file
View File

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

9
.idea/live-video-overlay.iml generated Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

8
.idea/modules.xml generated Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/live-video-overlay.iml" filepath="$PROJECT_DIR$/.idea/live-video-overlay.iml" />
</modules>
</component>
</project>

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module live-video-overlay
go 1.21

16
index.html Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Live Title for OBS</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="title">
<span id="titleText">Your Live Title</span>
</div>
</div>
</body>
</html>

41
styles.css Normal file
View File

@ -0,0 +1,41 @@
html, body {
height: 100%;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
background: transparent;
overflow: hidden;
}
.container {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: flex-end;
padding: 20px;
box-sizing: border-box;
}
.title {
background-color: rgba(0, 0, 0, 0.5);
color: white;
padding: 10px 20px;
border-radius: 5px;
font-size: 24px;
}
@media screen and (min-aspect-ratio: 16/9) {
.container {
width: 100%;
height: 56.25vw; /* 100 / 16 * 9 = 56.25 */
}
}
@media screen and (max-aspect-ratio: 16/9) {
.container {
width: 177.78vh; /* 100 / 9 * 16 = 177.78 */
height: 100%;
}
}