V2.0.1! Added a version number on the bottom right and a future way to add a logo. Also changed version scheme

This commit is contained in:
abrendan 2024-01-22 19:44:09 +00:00
parent 91e2fa270a
commit b28d9a16db
3 changed files with 18 additions and 0 deletions

View File

@ -12,6 +12,7 @@
<body onload = "onload()">
<div id = "Main">
<audio id = "Ding" src = "Ding.mp3"> </audio>
<!-- <img id = "Logo" src="https://micdropmessages.app/pictures/micdropmessages_logo-circle.png" alt="Logo"> -->
<h1 id = "Title"> MicDropMessages V2 </h1>
<p>Welcome to MicDropMessages! This small webbased application allows you to chat with your friends anonymously! To start, enter your username and enter a chatroom.</p>
<div id = "AccessPort">
@ -45,6 +46,7 @@
<button id="WebsiteButton" onclick=" window.open('http://www.abrendan.dev','_blank')" class="button">abrendan.dev</button>
</div>
<br><br>
<p class="version-number">V2.0.1</p>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

View File

@ -27,6 +27,9 @@ input{
.Message{
color: #000000;
}
#Logo{
height: 80px;
}
#Main{
min-height: 94.5vh; /* Stretch to fill the viewport height */
width: 50%;
@ -38,6 +41,7 @@ input{
display: flex; /* Adding flex properties to layout contents */
flex-direction: column; /* Stack children elements vertically */
align-items: center; /* Centering child elements horizontally */
position: relative; /* To position the version number correctly */
}
#Title{
font-size: 300%;
@ -87,6 +91,9 @@ body.dark-mode .input {
.dark-mode #Main {
background-color: rgba(0, 0, 0, 0.5); /* Slightly transparent dark background */
}
body.dark-mode .version-number {
color: #ffffff; /* Dark button background color */
}
.input {
border-radius: 10px;
padding: 6px;
@ -104,6 +111,15 @@ body.dark-mode .input {
background-color:#000000;
color:#ffffff;
}
.version-number {
position: absolute;
bottom: 1px;
right: 10px;
font-size: 0.75em;
color: #000000; /* Assuming light text for visibility against a potentially dark background */
}
@media (max-width: 800px) {
label {
width: auto; /* Full width on narrow screens */