Add html content

This commit is contained in:
aNNiMON 2024-03-09 14:22:46 +02:00
parent 308cb7927b
commit 1afa39bc04
4 changed files with 121 additions and 0 deletions

View File

@ -7,9 +7,25 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Online RenPy scenarios player"> <meta name="description" content="Online RenPy scenarios player">
<link rel="stylesheet" href="./src/css/main.css">
</head> </head>
<body> <body>
<div id="background">
<div id="background1"></div>
<div id="background2"></div>
<div id="container"></div>
<div id="window">
<div id="textAuthor"></div>
<div id="textContent"></div>
</div>
<div id="mainMenuButton"></div>
<div id="menu">
<p id="menuTitle"></p>
<ul id="menuChoose">
</ul>
</div>
</div>
<script type="module" src="./src/main.ts"></script> <script type="module" src="./src/main.ts"></script>
</body> </body>

2
src/css/main.css Normal file
View File

@ -0,0 +1,2 @@
@import '/node_modules/normalize.css/normalize.css';
@import './run.css';

103
src/css/run.css Normal file
View File

@ -0,0 +1,103 @@
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
html, body, div, span, p, li, ul {
margin: 0;
padding: 0;
}
body {
font-family: "Open Sans", sans-serif;
font-size: 18px;
line-height: 1.5;
}
#background, #background1, #background2 {
width: 100%;
height: 100%;
background: black;
overflow: hidden;
position: relative;
background-attachment: fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
#window {
position: absolute;
bottom: 0px;
width: 100%;
min-height: 20%;
background-color: rgba(0, 0, 0, 0.5);
}
#textAuthor {
margin: 5px 0 10px 20px;
color: white;
}
#textContent {
color: #DEC88C;
margin: 0 10px;
}
.sprite {
position: absolute;
bottom: 0px;
}
#menu {
position: absolute;
width: 100%;
height: 100%;
top: 0;
text-align: center;
background-color: rgba(0, 0, 0, 0.5);
padding: 10px;
color: white;
}
#menuTitle {
font-size: 120%;
margin: 16px 0;
}
#menuChoose {
list-style: none;
width: 70%;
margin: 0 auto;
color: #eee;
}
#menuChoose li {
display: block;
background-color: rgba(0, 0, 0, 0.5);
padding: 5px;
margin: 5px 10px;
}
#menuChoose li:hover {
background-color: rgba(200, 200, 200, 0.5);
cursor: pointer;
color: #fff;
}
#mainMenuButton {
position: absolute;
top: 20px;
left: 20px;
width: 48px;
height: 48px;
background: url(../images/menu.png) no-repeat center center;
opacity: 0.25;
-moz-opacity: 0.25;
-khtml-opacity: 0.25;
}
#mainMenuButton:hover {
opacity: 1;
-moz-opacity: 1;
-khtml-opacity: 1;
}

BIN
src/images/menu.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 B