Small general update

This commit is contained in:
2025-12-14 01:43:31 +01:00
parent ea97d0fa62
commit 754d2a082b
5 changed files with 166 additions and 25 deletions
+17
View File
@@ -72,6 +72,23 @@
"value": 1.5,
"type": "multiplicative",
"operatives": ""
},
{
"id": "multiple-buffs-sharpshooter-drink",
"label": "Sharpshooter Drink (-40% Firerate, +60% Damage)",
"buffs": [
{
"type": "rpm",
"value": 0.6,
"buffType": "multiplicative"
},
{
"type": "damage",
"value": 1.6,
"buffType": "multiplicative"
}
],
"operatives": ""
}
],
"operativePerks": [
+10 -10
View File
@@ -211,8 +211,8 @@
"modifiers": [
{
"id": "armor-restructure-10-damage-perk",
"label": "Armor Restructure(10 HP Left) (+52% Damage)",
"value": 1.52,
"label": "Armor Restructure (10 HP Left) (+32% Damage)",
"value": 1.32,
"type": "multiplicative",
"appliesTo": ""
},
@@ -223,13 +223,6 @@
"type": "additive",
"appliesTo": ""
},
{
"id": "anarchist-world-on-fire-damage-perk",
"label": "World on Fire (+50% damage)",
"value": 1.5,
"type": "multiplicative",
"appliesTo": ""
},
{
"id": "berserker-damage-perk",
"label": "Berserker (+30 Damage)",
@@ -1908,14 +1901,21 @@
"type": "rpm",
"value": 0.5,
"buffType": "multiplicative"
}
],
"appliesTo": "RIFLE"
},
{
"id": "dmr-conversion-damage-headshot-perk",
"label": "DMR Conversion Kit (+70% Headshot Damage)",
"buffs": [
{
"type": "damage",
"value": 1.7,
"buffType": "multiplicative-headshot"
}
],
"appliesTo": "RIFLE"
"appliesTo": ""
},
{
"id": "weapon-expert-reload-perk-sharp",
+132 -8
View File
@@ -32,8 +32,8 @@ body {
background-attachment: fixed;
background-size: cover;
position: relative;
z-index: -1;
font-family: Arial, sans-serif;
z-index: auto;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
margin: 20px;
}
@@ -119,13 +119,15 @@ input {
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;
z-index: 1;
background-color: rgba(255, 255, 255, 0.75);
margin-top: 8vh;
padding: 24px 32px 32px 32px;
border-radius: 16px;
border: 1px solid rgba(0,0,0,0.08);
overflow: auto;
box-shadow: 0 10px 30px rgba(0,0,0,0.18);
backdrop-filter: blur(8px);
}
nav {
@@ -765,3 +767,125 @@ a:hover {
font-size: 0.95rem;
}
}
/* --------------------------
Modern theme enhancements
-------------------------- */
:root {
--bg-tint: rgba(15, 23, 42, 0.45);
--card-bg: rgba(255, 255, 255, 0.75);
--text-900: #0f172a;
--text-700: #334155;
--text-500: #64748b;
--border: rgba(2, 6, 23, 0.08);
--shadow: 0 10px 30px rgba(2, 6, 23, 0.18);
--primary: #dc2626; /* red-600 */
--primary-700: #b91c1c;
--primary-50: #fef2f2;
--success: #16a34a;
--warning: #f59e0b;
}
/* Subtle overlay to improve contrast on busy backgrounds */
body::before {
content: "";
position: fixed;
inset: 0;
background: linear-gradient(180deg, rgba(2,6,23,0.35), rgba(2,6,23,0.25)) , var(--bg-tint);
pointer-events: none;
z-index: 0;
}
main {
background-color: var(--card-bg);
border: 1px solid var(--border);
box-shadow: var(--shadow);
}
h1, h2, h3 {
color: var(--text-900);
}
.about_us_text, p, label, th, td, a {
color: var(--text-700);
}
/* Links */
a {
color: var(--primary);
text-decoration: none;
}
a:hover { text-decoration: underline; }
/* Inputs */
input[type="text"], input[type="number"], textarea, select, #search {
border: 1px solid var(--border);
background-color: #f8fafc;
border-radius: 10px;
padding: 10px 14px;
}
input[type="text"]:focus, input[type="number"]:focus, textarea:focus, select:focus, #search:focus {
border-color: var(--primary);
box-shadow: 0 0 0 4px var(--primary-50);
}
/* Buttons */
button, .button1, #weapon-create, #weapon-edit, #copy-stats, #weapon-form form button[type="submit"] {
background-color: var(--primary);
border-radius: 10px;
padding: 10px 16px;
box-shadow: 0 2px 6px rgba(2, 6, 23, 0.15);
}
button:hover, .button1:hover, #weapon-create:hover, #weapon-edit:hover, #copy-stats:hover, #weapon-form form button[type="submit"]:hover {
background-color: var(--primary-700);
}
/* Table modernization */
table {
background: rgba(255,255,255,0.85);
border-radius: 12px;
overflow: hidden;
}
thead th {
position: sticky;
top: 0;
background: rgba(255,255,255,0.95);
backdrop-filter: blur(6px);
}
tbody tr:nth-child(odd) { background: #fafafa; }
tbody tr:hover { background: #f1f5f9; }
th, td {
border-color: var(--border);
}
/* Hamburger + nav menu tweaks */
.hamburger {
background: rgba(15, 23, 42, 0.6);
backdrop-filter: blur(6px);
}
.nav-menu {
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(8px);
}
.nav-menu a {
color: var(--text-900);
}
.nav-menu a:hover {
color: var(--primary);
}
/* Success/error text */
#successMessage { color: var(--success); }
#copy-message.success { color: var(--success); }
#copy-message.error { color: var(--primary); }
/* Responsive table spacing */
@media (max-width: 768px) {
th, td { padding: 12px; }
main { padding: 20px; }
}
+5 -5
View File
@@ -29,11 +29,11 @@
<main class="about_us_main">
<h1 class="about_us_h1">About Us</h1>
<h3 class="about_us_h3"><b>Hey there!</b> You found the TRL Stats Page by <b>Fretux</b> and <b>Losernoob124</b> 🎯</h3>
<h3 class="about_us_h3"><b>Hey there!</b> You found the TRL Stats Page by <b>Fretux</b> and <b>Losernoob124</b></h3>
<h2 class="about_us_h2">Our Mission</h2>
<p class="about_us_text">
We created this platform to help the TRL community quickly and easily calculate gun DPS and DPM — no
We created this platform to help the TRL community quickly and easily calculate gun DPS and DPM. No
spreadsheets, no hassle. Whether you're theorycrafting a Deathwish loadout or comparing your sidearms, our
tool’s built to support your grind.
</p>
@@ -44,7 +44,7 @@
<h2 class="about_us_h2">Our Story</h2>
<p class="about_us_text">
It started with a spreadsheet... and frustration. Calculating DPS manually was tedious — and we knew we could do
It started with a spreadsheet... and frustration. Calculating DPS manually was tedious and we knew we could do
better. What began as a side hobby by Losernoob124 was reignited by Fretux and evolved into a full web app
through plenty of bug fixing, community help, and caffeine.
</p>
@@ -76,7 +76,7 @@
</p>
</div>
<h2 class="about_us_h2">Special Thanks 🙏</h2>
<h2 class="about_us_h2">Special Thanks</h2>
<div class="thanks-section">
<p><b>gameknight90999 (holdenn)</b>: Helped with various stat and weapon data and ideas</p>
<p><b>Kris HD</b>: Motivation + bug hunting</p>
@@ -85,7 +85,7 @@
</div>
<h3 class="about_us_text" style="text-align: center; margin-top: 2rem;">
Thanks for using <b>TRL Stats</b> 💚
Thanks for using <b>TRL Stats</b> <3
</h3>
</main>
+1 -1
View File
@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/trlstats/static/img/TRL_Logo_Custom.jpg">
<link rel="icon" type="image/x-icon" href="/static/img/TRL_Logo_Custom.jpg">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<title>DPM/DPS Calculator</title>
</head>