Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Data Analysis & Automated Reporting Tool
<img src="assets/railstat-mark.svg" width="56" height="56" alt="Railstat logo">

# Railstat: Data Analysis & Automated Reporting Tool

### Project Overview
This project is a Python-based automation tool designed to ingest, normalize, and analyze complex datasets from Excel. While currently configured for financial/booking data, the core engine demonstrates the logic required for Security Log Parsing and Incident Reporting.
Expand Down
1 change: 1 addition & 0 deletions assets/railstat-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions report_tool/templates/_logo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{# Railstat logo: a rising rail route (two stations joined by a line that climbs like a trend). #}
<span class="brand-mark" aria-hidden="true"><svg viewBox="0 0 32 32" width="28" height="28"><rect width="32" height="32" rx="8" fill="#2a78d6"></rect><path d="M6.5 24.5H11L16 19.5H19L25.5 13" fill="none" stroke="#fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"></path><circle cx="6.5" cy="24.5" r="2.6" fill="#2a78d6" stroke="#fff" stroke-width="2"></circle><circle cx="25.5" cy="13" r="3.4" fill="#fff"></circle><circle cx="25.5" cy="13" r="1.4" fill="#2a78d6"></circle></svg></span>
<span class="brand-name">Rail<span class="brand-accent">stat</span></span>
6 changes: 6 additions & 0 deletions report_tool/templates/_theme.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{# Shared look: Space Mono, light/dark tokens, and the theme switcher. Included in <head>. #}
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 32 32%22%3E%3Crect width=%2232%22 height=%2232%22 rx=%228%22 fill=%22%232a78d6%22/%3E%3Cpath d=%22M6.5 24.5H11L16 19.5H19L25.5 13%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%223%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22/%3E%3Ccircle cx=%226.5%22 cy=%2224.5%22 r=%222.6%22 fill=%22%232a78d6%22 stroke=%22%23fff%22 stroke-width=%222%22/%3E%3Ccircle cx=%2225.5%22 cy=%2213%22 r=%223.4%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2225.5%22 cy=%2213%22 r=%221.4%22 fill=%22%232a78d6%22/%3E%3C/svg%3E">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap" rel="stylesheet">
Expand Down Expand Up @@ -58,5 +59,10 @@
:root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
:root:not([data-theme="light"]) .theme-toggle .moon { display: inline; }
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
color: var(--ink); text-decoration: none; }
.brand-mark { display: inline-flex; }
.brand-mark svg { display: block; }
.brand-accent { color: var(--series-1); }
@media print { .theme-toggle { display: none; } }
</style>
9 changes: 3 additions & 6 deletions report_tool/templates/landing.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 14px; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { text-decoration: underline; }
Expand Down Expand Up @@ -124,9 +122,8 @@
<body>
<header class="site-header">
<div class="wrap">
<a class="logo" href="/">
<span class="logo-mark"><svg width="20" height="20" viewBox="0 0 26 26" aria-hidden="true"><polyline points="4,19 10,12 14,15 22,6" fill="none" stroke="#6da7ec" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"></polyline></svg></span>
Railstat
<a class="brand" href="/" aria-label="Railstat home">
{% include "_logo.html" %}
</a>
<nav aria-label="Main">
<a class="nav-section" href="#how">How it works</a>
Expand Down Expand Up @@ -260,7 +257,7 @@ <h2 id="columns-title">What your file needs</h2>

<footer class="site-footer">
<div class="wrap">
<span>Railstat · built by Royal as a data automation project</span>
<span>Railstat · bookings spreadsheets in, dashboards out</span>
<a href="https://github.com/royalpriest/Data-Analysis-Automated-Reporting-Tool">Source on GitHub</a>
</div>
</footer>
Expand Down
7 changes: 2 additions & 5 deletions report_tool/templates/report.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ button:disabled { opacity: 0.45; cursor: default; }
/* D1 app header */
.topbar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between;
padding: 14px 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 7px; background: #0b0b0b; display: inline-grid; place-items: center; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
background: var(--chip); font-size: 12px; color: var(--ink-2); min-width: 0; max-width: 100%; }
.file-chip strong { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
Expand Down Expand Up @@ -157,9 +155,8 @@ footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-betwee
<main class="wrap">

<header class="topbar">
{% if upload_url %}<a class="brand" href="{{ upload_url }}">{% else %}<span class="brand">{% endif %}
<span class="logo-mark"><svg width="18" height="18" viewBox="0 0 26 26" aria-hidden="true"><polyline points="4,19 10,12 14,15 22,6" fill="none" stroke="#6da7ec" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"></polyline></svg></span>
Railstat
{% if upload_url %}<a class="brand" href="{{ upload_url }}" aria-label="Railstat home">{% else %}<span class="brand">{% endif %}
{% include "_logo.html" %}
{% if upload_url %}</a>{% else %}</span>{% endif %}
<span class="file-chip" title="{{ source }}">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"></path><path d="M14 3v6h6"></path></svg>
Expand Down
Loading