Alot of CSS Changes don't ask stupid Nogger

This commit is contained in:
IM23a-spirgif
2024-09-12 09:56:59 +02:00
parent 9e34e1df06
commit dbf4391651
4 changed files with 58 additions and 17 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 113 KiB

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

+45 -6
View File
@@ -1,20 +1,47 @@
.background_image {
background-image: url("/img/trlbg1.jpg");
}
body { body {
background-image: url("/static/img/trlbg1.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
position: relative; /* This allows the z-index on children elements to work */
z-index: -1; /* Send the background behind the content */
font-family: Arial, sans-serif; font-family: Arial, sans-serif;
margin: 20px; margin: 20px;
} }
header nav {
margin-bottom: 20px;
}
header nav a {
color: #4CAF50;
text-decoration: none;
font-weight: bold;
padding: 10px 20px;
}
header nav a:hover {
color: #45a049;
}
h1 { h1 {
color: #333; color: #333;
margin-bottom: 20px;
}
.background-roster {
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background for better readability */
padding: 20px;
border-radius: 10px;
z-index: 1;
} }
table { table {
width: 100%; width: 100%;
border-collapse: collapse; border-collapse: collapse;
margin-bottom: 20px; margin-bottom: 20px;
overflow: hidden;
background-color: rgba(255, 255, 255, 0.8);
} }
table, th, td { table, th, td {
@@ -22,12 +49,13 @@ table, th, td {
} }
th, td { th, td {
padding: 8px; padding: 10px;
text-align: left; text-align: left;
} }
th { th {
background-color: #f2f2f2; color: #333;
background-color: rgba(255, 255, 255, 0.9);
} }
button { button {
@@ -59,3 +87,14 @@ input {
margin-right: 16px; margin-right: 16px;
font-size: 17px; font-size: 17px;
} }
main{
position: relative;
z-index: 1;
background-color: rgba(255, 255, 255, 0.9);
margin-top: 10%;
padding: 20px 35px 35px 35px;
border-radius: 10px;
border: 2px solid black;
}
+12 -10
View File
@@ -3,21 +3,23 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/static/img/TRL_Logo_Custom.jpg">
<title>Gun Stats</title> <title>Gun Stats</title>
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head> </head>
<body> <nav></nav>
<header> <header>
<nav> <nav>
<a class="index-nav" href="{{ url_for('calculator') }}">Calculator</a> <a class="index-nav" href="{{ url_for('calculator') }}">Calculator</a>
</nav> </nav>
</header> </header>
<main class="background_image"> <body class="background-image">
<main>
<h1>Gun Stats</h1> <h1>Gun Stats</h1>
<div> <div class="search-container">
<input type="text" id="search" placeholder="Search by name" onkeyup="filterTable()"> <input type="text" id="search" placeholder="Search by name" onkeyup="filterTable()">
</div> </div>
<table id="gun-stats"> <table id="gun-stats" class="background-roster">
<thead> <thead>
<tr> <tr>
<th>ID</th> <th>ID</th>
@@ -40,6 +42,6 @@
</table> </table>
<script src="{{ url_for('static', filename='populateTable.js') }}"></script> <script src="{{ url_for('static', filename='populateTable.js') }}"></script>
<script src="{{ url_for('static', filename='filterTable.js') }}"></script> <script src="{{ url_for('static', filename='filterTable.js') }}"></script>
</main> </main>
</body> </body>
</html> </html>