Better CSS

This commit is contained in:
2025-08-08 00:28:15 +02:00
parent b7cdd82d9e
commit 04783ca4df
2 changed files with 121 additions and 116 deletions

View File

@@ -1,13 +1,13 @@
* { box-sizing: border-box; } * { box-sizing: border-box; }
body { body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
margin: 0; margin: 0;
padding: 0; padding: 0;
line-height: 1.6; line-height: 1.6;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); background: #f8fafc;
min-height: 100vh; min-height: 100vh;
color: #333; color: #1e293b;
} }
.container { .container {
@@ -43,74 +43,74 @@ body {
} }
h1 { h1 {
color: #2c3e50; color: #0f172a;
font-size: 2.5rem; font-size: 2.5rem;
margin-bottom: 10px; margin-bottom: 20px;
background: linear-gradient(135deg, #667eea, #764ba2); font-weight: 700;
-webkit-background-clip: text; letter-spacing: -0.025em;
-webkit-text-fill-color: transparent;
background-clip: text;
} }
h2 { h2 {
color: #34495e; color: #1e293b;
font-size: 1.8rem; font-size: 1.75rem;
margin-top: 2rem; margin-top: 2rem;
border-bottom: 2px solid #eee; font-weight: 600;
padding-bottom: 10px; margin-bottom: 1rem;
} }
.version-badge { .version-badge {
display: inline-block; display: inline-block;
background: linear-gradient(135deg, #667eea, #764ba2); background: #3b82f6;
color: white; color: white;
padding: 5px 15px; padding: 6px 16px;
border-radius: 20px; border-radius: 6px;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 500;
margin-bottom: 20px; margin-bottom: 20px;
} }
code { code {
background: #f8f9fa; background: #f1f5f9;
padding: 3px 8px; padding: 4px 8px;
border-radius: 6px; border-radius: 6px;
font-family: 'Monaco', 'Consolas', 'JetBrains Mono', monospace; font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace;
font-size: 14px; font-size: 13px;
border: 1px solid #e9ecef; border: 1px solid #e2e8f0;
color: #475569;
} }
pre { pre {
background: #282c34; background: #0f172a;
color: #abb2bf; color: #cbd5e1;
padding: 20px; padding: 24px;
border-radius: 12px; border-radius: 12px;
overflow-x: auto; overflow-x: auto;
font-family: 'Monaco', 'Consolas', 'JetBrains Mono', monospace; font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
border: 1px solid #3e4451; border: 1px solid #1e293b;
} }
pre code { pre code {
background: transparent; background: transparent;
border: none; border: none;
padding: 0; padding: 0;
color: #abb2bf; color: #cbd5e1;
} }
.endpoint { .endpoint {
margin: 25px 0; margin: 20px 0;
padding: 20px; padding: 24px;
border-radius: 12px; border-radius: 12px;
background: #fff; background: #f8fafc;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); box-shadow: none;
border-left: 4px solid #007acc; border: 1px solid #e2e8f0;
transition: transform 0.2s ease, box-shadow 0.2s ease; border-left: 4px solid #3b82f6;
transition: all 0.15s ease;
} }
.endpoint:hover { .endpoint:hover {
transform: translateY(-2px); background: #ffffff;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
} }
.method { .method {
@@ -125,66 +125,70 @@ pre code {
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.get { background: linear-gradient(135deg, #61affe, #4a90e2); } .get { background: #3b82f6; }
.post { background: linear-gradient(135deg, #49cc90, #2ecc71); } .post { background: #10b981; }
.step { .step {
margin: 15px 0; margin: 16px 0;
padding: 15px 20px; padding: 20px 24px;
background: #fff; background: #f8fafc;
border-radius: 10px; border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); box-shadow: none;
border-left: 4px solid #3498db; border: 1px solid #e2e8f0;
transition: transform 0.2s ease; border-left: 4px solid #6366f1;
transition: all 0.15s ease;
} }
.step:hover { .step:hover {
transform: translateX(5px); background: #ffffff;
border-color: #cbd5e1;
} }
.storage-info { .storage-info {
margin: 25px 0; margin: 20px 0;
padding: 20px; padding: 24px;
background: #fff; background: #f0fdf4;
border-radius: 12px; border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); box-shadow: none;
border-left: 4px solid #28a745; border: 1px solid #dcfce7;
border-left: 4px solid #22c55e;
} }
.progress-bar { .progress-bar {
width: 100%; width: 100%;
height: 12px; height: 10px;
background: #e9ecef; background: #e2e8f0;
border-radius: 8px; border-radius: 6px;
overflow: hidden; overflow: hidden;
margin: 15px 0; margin: 16px 0;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); box-shadow: none;
} }
.progress-fill { .progress-fill {
height: 100%; height: 100%;
background: linear-gradient(90deg, #28a745 0%, #ffc107 70%, #dc3545 90%); background: linear-gradient(90deg, #22c55e 0%, #f59e0b 70%, #ef4444 90%);
transition: width 0.5s ease; transition: width 0.5s ease;
border-radius: 8px; border-radius: 6px;
box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3); box-shadow: none;
} }
.storage-stats { .storage-stats {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-top: 15px; margin-top: 16px;
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 500;
color: #475569;
} }
.changelog-section { .changelog-section {
padding: 25px; padding: 24px;
background: rgba(255, 255, 255, 0.95); background: #ffffff;
border-radius: 12px; border-radius: 12px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); box-shadow: none;
border-left: 4px solid #6f42c1; border: 1px solid #e2e8f0;
backdrop-filter: blur(10px); border-left: 4px solid #8b5cf6;
} }
/* Remove redundant changelog wrapper styles */ /* Remove redundant changelog wrapper styles */
@@ -194,22 +198,22 @@ pre code {
} }
.changelog-entry { .changelog-entry {
margin: 20px 0; margin: 16px 0;
padding: 15px; padding: 20px;
background: #f8f9fa; background: #f8fafc;
border-radius: 10px; border-radius: 12px;
border: 1px solid #e9ecef; border: 1px solid #e2e8f0;
transition: transform 0.2s ease, box-shadow 0.2s ease; transition: all 0.15s ease;
} }
.changelog-entry:hover { .changelog-entry:hover {
transform: translateY(-2px); background: #ffffff;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); border-color: #cbd5e1;
} }
.version { .version {
font-weight: 700; font-weight: 600;
color: #6f42c1; color: #8b5cf6;
font-size: 16px; font-size: 16px;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -222,10 +226,10 @@ pre code {
} }
.date { .date {
color: #6c757d; color: #64748b;
font-size: 13px; font-size: 13px;
margin-top: 5px; margin-top: 5px;
font-weight: 500; font-weight: 400;
} }
.changelog-entry ul { .changelog-entry ul {
@@ -235,26 +239,26 @@ pre code {
.changelog-entry li { .changelog-entry li {
margin: 5px 0; margin: 5px 0;
color: #495057; color: #475569;
} }
.copy-btn { .copy-btn {
background: linear-gradient(135deg, #667eea, #764ba2); background: #3b82f6;
color: white; color: white;
border: none; border: none;
padding: 8px 12px; padding: 8px 14px;
border-radius: 6px; border-radius: 8px;
cursor: pointer; cursor: pointer;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 500;
transition: all 0.2s ease; transition: all 0.15s ease;
float: right; float: right;
margin-top: -10px; margin-top: -10px;
} }
.copy-btn:hover { .copy-btn:hover {
transform: translateY(-1px); background: #2563eb;
box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
} }
/* About section styling */ /* About section styling */
@@ -263,11 +267,10 @@ pre code {
} }
.about-content h3 { .about-content h3 {
color: #34495e; color: #1e293b;
font-size: 1.3rem; font-size: 1.25rem;
margin: 1.5rem 0 0.8rem 0; margin: 1.5rem 0 0.8rem 0;
border-bottom: 2px solid #eee; font-weight: 600;
padding-bottom: 8px;
} }
.about-content ul { .about-content ul {
@@ -276,30 +279,32 @@ pre code {
} }
.about-content li { .about-content li {
background: #f8f9fa; background: #f8fafc;
margin: 8px 0; margin: 8px 0;
padding: 12px 16px; padding: 14px 18px;
border-radius: 8px; border-radius: 10px;
border-left: 4px solid #667eea; border: 1px solid #e2e8f0;
transition: transform 0.2s ease; border-left: 4px solid #3b82f6;
transition: all 0.15s ease;
} }
.about-content li:hover { .about-content li:hover {
transform: translateX(5px); background: #ffffff;
background: #e9ecef; border-color: #cbd5e1;
} }
.contact-info { .contact-info {
background: #fff; background: #ffffff;
padding: 15px; padding: 18px;
border-radius: 10px; border-radius: 12px;
border: 2px solid #667eea; border: 1px solid #3b82f6;
margin: 15px 0; margin: 16px 0;
} }
.contact-info p { .contact-info p {
margin: 5px 0; margin: 6px 0;
font-family: 'Monaco', 'Consolas', 'JetBrains Mono', monospace; font-family: ui-monospace, SFMono-Regular, 'Cascadia Code', 'Roboto Mono', monospace;
color: #475569;
} }
/* Responsive design */ /* Responsive design */
@@ -411,20 +416,20 @@ pre code {
/* Content containers with equal height and scrolling */ /* Content containers with equal height and scrolling */
.content-container { .content-container {
background: rgba(255, 255, 255, 0.95); background: #ffffff;
border-radius: 20px; border-radius: 16px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
padding: 30px; padding: 32px;
backdrop-filter: blur(10px);
box-sizing: border-box; box-sizing: border-box;
overflow-y: auto; overflow-y: auto;
scrollbar-width: thin; scrollbar-width: thin;
scrollbar-color: rgba(102, 126, 234, 0.3) transparent; scrollbar-color: #cbd5e1 transparent;
border: 1px solid #e2e8f0;
} }
/* Webkit scrollbar styling */ /* Webkit scrollbar styling */
.content-container::-webkit-scrollbar { .content-container::-webkit-scrollbar {
width: 8px; width: 6px;
} }
.content-container::-webkit-scrollbar-track { .content-container::-webkit-scrollbar-track {
@@ -432,12 +437,12 @@ pre code {
} }
.content-container::-webkit-scrollbar-thumb { .content-container::-webkit-scrollbar-thumb {
background: rgba(102, 126, 234, 0.3); background: #cbd5e1;
border-radius: 4px; border-radius: 3px;
} }
.content-container::-webkit-scrollbar-thumb:hover { .content-container::-webkit-scrollbar-thumb:hover {
background: rgba(102, 126, 234, 0.5); background: #94a3b8;
} }
.progress-fill-initial { .progress-fill-initial {

View File

@@ -17,7 +17,7 @@
<div class="content-container"> <div class="content-container">
<h2> About</h2> <h2> About</h2>
<div class="about-content"> <div class="about-content">
<h3>🚀 What is FITRA?</h3> <h3>What is FITRA?</h3>
<p>FITRA (File Transfer API) is a lightweight, developer-friendly file sharing service designed for CLI usage and automation.</p> <p>FITRA (File Transfer API) is a lightweight, developer-friendly file sharing service designed for CLI usage and automation.</p>
<h3>🌟 Features</h3> <h3>🌟 Features</h3>