From 46ae1d7aa89dc2755e8779828a514355a14f22d7 Mon Sep 17 00:00:00 2001 From: IM23a-spirgif Date: Mon, 16 Jun 2025 16:31:02 +0200 Subject: [PATCH] Updated `rpm` for Luger, modularized About Us styles, and improved CSS readability. --- static/json/data.json | 2 +- static/style.css | 151 +++++++++++++++++++++++++++++++++------- templates/about_us.html | 113 +++--------------------------- 3 files changed, 134 insertions(+), 132 deletions(-) diff --git a/static/json/data.json b/static/json/data.json index 6654303..7ac6ca6 100644 --- a/static/json/data.json +++ b/static/json/data.json @@ -44,7 +44,7 @@ "name": "Luger", "damage": 150, "damage_multiplier": 1, - "rpm": 500, + "rpm": 116, "mag_size": 8, "reload_time": 1.95, "guntype": ["PISTOL", "WW2", "SECONDARY"] diff --git a/static/style.css b/static/style.css index afc752e..85e33c4 100644 --- a/static/style.css +++ b/static/style.css @@ -599,50 +599,149 @@ body.menu-open { } #copy-stats { - background: darkred; - color: #fff; - border: none; - border-radius: 6px; - padding: 10px 16px; - font-size: 1rem; - cursor: pointer; - transition: background 0.2s; + background: darkred; + color: #fff; + border: none; + border-radius: 6px; + padding: 10px 16px; + font-size: 1rem; + cursor: pointer; + transition: background 0.2s; } + #copy-stats:hover { - background: red; + background: red; } #copy-message { - margin-top: 8px; - font-size: 0.95rem; - min-height: 1.2em; + margin-top: 8px; + font-size: 0.95rem; + min-height: 1.2em; } #copy-message.success { - color: green; + color: green; } #copy-message.error { - color: crimson; + color: crimson; } .checkbox-group { - display: flex; - flex-wrap: wrap; - gap: 12px; - margin-bottom: 16px; - border: none; - padding: 0; + display: flex; + flex-wrap: wrap; + gap: 12px; + margin-bottom: 16px; + border: none; + padding: 0; } + .checkbox-group legend { - font-weight: bold; - margin-bottom: 8px; + font-weight: bold; + margin-bottom: 8px; } + .checkbox-group label { - display: flex; - align-items: center; - font-size: 0.95em; + display: flex; + align-items: center; + font-size: 0.95em; } + .checkbox-group input { - margin-right: 6px; + margin-right: 6px; +} + +.about_us_main { + background-color: rgba(255, 255, 255, 0.92); + margin: 8vh auto; + padding: 40px; + border-radius: 12px; + width: 90%; + max-width: 900px; + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); +} + +.about_us_h1 { + text-align: center; + font-size: 3rem; + margin-bottom: 1.5rem; + color: #111; +} + +.about_us_h2 { + margin-top: 2rem; + color: #222; + font-size: 1.8rem; + border-left: 5px solid red; + padding-left: 12px; +} + +.about_us_h3 { + font-size: 1.3rem; + margin-top: 1.5rem; + color: #333; +} + +.about_us_text { + font-size: 1.05rem; + line-height: 1.7; + margin-top: 1rem; + color: #444; +} + +.highlight { + font-weight: bold; + color: #d32f2f; +} + +a { + color: red; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +.team-section { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.team-member { + background-color: #f7f7f7; + padding: 15px 20px; + border-radius: 8px; + box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); +} + +.thanks-section { + background-color: #fff; + padding: 20px; + border-left: 4px solid red; + border-radius: 6px; + margin-top: 1.5rem; +} + +.faq p { + margin-top: 0.5rem; +} + +@media screen and (max-width: 600px) { + main { + padding: 25px; + } + + h1 { + font-size: 2rem; + } + + h2 { + font-size: 1.5rem; + } + + .about_us_text { + font-size: 0.95rem; + } } \ No newline at end of file diff --git a/templates/about_us.html b/templates/about_us.html index 0326486..7731df9 100644 --- a/templates/about_us.html +++ b/templates/about_us.html @@ -6,103 +6,6 @@ About Us - TRL Stats - @@ -123,12 +26,12 @@ -
-

About Us

+
+

About Us

-

Hey there! You found the TRL Stats Page by Fretux and Losernoob124 🎯

+

Hey there! You found the TRL Stats Page by Fretux and Losernoob124 🎯

-

Our Mission

+

Our Mission

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 @@ -139,14 +42,14 @@ href="{{ url_for('suggestion') }}">Suggestions Page.

-

Our Story

+

Our Story

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.

-

The Team

+

The Team

Fretux – Frontend Developer & Data Specialist. Designs the UI and ensures stat accuracy. @@ -157,7 +60,7 @@
-

Frequently Asked Questions

+

Frequently Asked Questions

How do you calculate DPS and DPM?

@@ -173,7 +76,7 @@

-

Special Thanks 🙏

+

Special Thanks 🙏

gameknight90999 (holdenn): Helped with various stat and weapon data and ideas

Kris HD: Motivation + bug hunting