From e6652b3f3164aa7ed2d0450a4dc3f56b04fad05c Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Aug 2025 00:53:04 +0200 Subject: [PATCH] More UX/UI enhancements --- static/main.css | 85 +++++++++++++++++++++++++++++++ views/index.html | 80 +++++++++++++++++++++++++---- views/partials/api-endpoints.html | 8 +-- views/partials/changelog.html | 16 ++---- 4 files changed, 162 insertions(+), 27 deletions(-) diff --git a/static/main.css b/static/main.css index b7f3f22..59517de 100644 --- a/static/main.css +++ b/static/main.css @@ -307,6 +307,91 @@ pre code { color: #475569; } +.donate-info { + background: #f0fdf4; + padding: 18px; + border-radius: 12px; + border: 1px solid #22c55e; + margin: 16px 0; +} + +.donate-info p { + margin: 12px 0; + font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace; + color: #475569; +} + +.crypto-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 8px; +} + +.crypto-row { + margin-top: 8px; +} + +.crypto-address { + display: block; + width: 100%; + padding: 12px; + font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace; + font-size: 13px; + line-height: 1.5; + color: #16a34a; + background: #f8fafc; + border: 2px solid #e2e8f0; + border-radius: 8px; + resize: none; + outline: none; + transition: all 0.15s ease; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06); + word-break: break-all; + min-height: 45px; +} + +.crypto-address:hover { + border-color: #22c55e; + background: #ffffff; +} + +.crypto-address:focus { + border-color: #22c55e; + background: #ffffff; + box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(34, 197, 94, 0.1); +} + +.copy-crypto-btn { + background: #22c55e; + color: white; + border: none; + padding: 8px 12px; + border-radius: 6px; + cursor: pointer; + font-size: 11px; + font-weight: 600; + transition: all 0.15s ease; + text-transform: uppercase; + letter-spacing: 0.5px; + min-width: 60px; +} + +.copy-crypto-btn:hover { + background: #16a34a; + transform: translateY(-1px); + box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3); +} + +.copy-crypto-btn:active { + transform: translateY(0); +} + +.copy-crypto-btn.copied { + background: #3b82f6; + transform: scale(0.95); +} + /* Responsive design */ @media (max-width: 1280px) { .three-column-layout { diff --git a/views/index.html b/views/index.html index e9ece7f..93fc586 100644 --- a/views/index.html +++ b/views/index.html @@ -15,20 +15,11 @@
-

â„šī¸ About

+

About

What is FITRA?

FITRA (File Transfer API) is a lightweight, developer-friendly file sharing service designed for CLI usage and automation.

-

🌟 Features

-
    -
  • Simple HTTP API for file upload/download
  • -
  • Automatic cleanup after 24 hours
  • -
  • Storage usage tracking
  • -
  • Developer-friendly cURL examples
  • -
  • Health monitoring endpoint
  • -
-

🔒 Security

Files are automatically deleted after 24 hours. This service is designed for temporary file sharing and should not be used for permanent storage.

@@ -38,6 +29,75 @@

Discord: nu11ed

+

💰 Donate

+ + + + +

🌟 Features

+ +

🔧 Technical Details