Redesigned progress tower as building with floors, windows and roof
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
8b9f4818f1
commit
897516ef22
2 files changed
+154
-53
No files matched your search
+19
-1
@@ -11,9 +11,27 @@
|
|||||||
<!-- Progress Tower (must be first for z-index) -->
|
<!-- Progress Tower (must be first for z-index) -->
|
||||||
<div class="progress-tower" id="overall-progress">
|
<div class="progress-tower" id="overall-progress">
|
||||||
<div class="tower-percentage" id="overall-percentage">0%</div>
|
<div class="tower-percentage" id="overall-percentage">0%</div>
|
||||||
<div class="tower-bar">
|
<div class="tower-roof"></div>
|
||||||
|
<div class="tower-body">
|
||||||
<div class="tower-fill" id="overall-progress-fill"></div>
|
<div class="tower-fill" id="overall-progress-fill"></div>
|
||||||
|
<div class="tower-floors">
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
<div class="tower-floor"><div class="tower-window"></div></div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tower-base"></div>
|
||||||
<div class="tower-count">
|
<div class="tower-count">
|
||||||
<span id="completed-count">0</span>/<span id="total-count">0</span>
|
<span id="completed-count">0</span>/<span id="total-count">0</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+135
-52
@@ -16,9 +16,9 @@ html {
|
|||||||
--subtask-bg: rgba(255, 255, 255, 0.14);
|
--subtask-bg: rgba(255, 255, 255, 0.14);
|
||||||
--subtask-border: rgba(255, 255, 255, 0.12);
|
--subtask-border: rgba(255, 255, 255, 0.12);
|
||||||
|
|
||||||
--text-primary: #1e293b;
|
--text-primary: #0f172a;
|
||||||
--text-secondary: #475569;
|
--text-secondary: #334155;
|
||||||
--text-muted: #64748b;
|
--text-muted: #475569;
|
||||||
|
|
||||||
--accent: #6366f1;
|
--accent: #6366f1;
|
||||||
--accent-hover: #4f46e5;
|
--accent-hover: #4f46e5;
|
||||||
@@ -46,7 +46,7 @@ html {
|
|||||||
body {
|
body {
|
||||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
padding: 16px 16px 16px 64px;
|
padding: 16px;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
background:
|
background:
|
||||||
linear-gradient(
|
linear-gradient(
|
||||||
@@ -69,19 +69,13 @@ body {
|
|||||||
/* ─── Progress Tower ─── */
|
/* ─── Progress Tower ─── */
|
||||||
.progress-tower {
|
.progress-tower {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 12px;
|
left: 46px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
|
||||||
z-index: 9000;
|
z-index: 9000;
|
||||||
padding: 16px 10px;
|
|
||||||
background: rgba(255, 255, 255, 0.82);
|
|
||||||
border-radius: 24px;
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.6);
|
|
||||||
box-shadow: 0 4px 20px rgba(60, 60, 120, 0.15);
|
|
||||||
transition: opacity 0.3s;
|
transition: opacity 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,19 +85,86 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tower-percentage {
|
.tower-percentage {
|
||||||
font-size: 0.92em;
|
font-size: 1.3em;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
color: var(--accent);
|
color: var(--accent);
|
||||||
letter-spacing: -0.5px;
|
letter-spacing: -0.5px;
|
||||||
|
margin-bottom: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tower-bar {
|
/* Tower roof */
|
||||||
width: 26px;
|
.tower-roof {
|
||||||
height: 220px;
|
width: 0;
|
||||||
background: rgba(0, 0, 0, 0.07);
|
height: 0;
|
||||||
border-radius: 13px;
|
border-left: 40px solid transparent;
|
||||||
overflow: hidden;
|
border-right: 40px solid transparent;
|
||||||
|
border-bottom: 28px solid rgba(255, 255, 255, 0.75);
|
||||||
|
margin-bottom: -1px;
|
||||||
|
filter: drop-shadow(0 -2px 4px rgba(60, 60, 120, 0.1));
|
||||||
|
}
|
||||||
|
|
||||||
|
.tower-body {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
width: 68px;
|
||||||
|
height: 550px;
|
||||||
|
background: rgba(255, 255, 255, 0.35);
|
||||||
|
border: 2px solid rgba(255, 255, 255, 0.6);
|
||||||
|
border-radius: 3px 3px 6px 6px;
|
||||||
|
overflow: hidden;
|
||||||
|
box-shadow: 0 4px 20px rgba(60, 60, 120, 0.12);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Floors grid overlaying the fill */
|
||||||
|
.tower-floors {
|
||||||
|
position: absolute;
|
||||||
|
top: 0; left: 0; right: 0; bottom: 0;
|
||||||
|
z-index: 2;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tower-floor {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 6px;
|
||||||
|
border-bottom: 2px solid rgba(255, 255, 255, 0.45);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tower-floor:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tower-window {
|
||||||
|
width: 22px;
|
||||||
|
height: 24px;
|
||||||
|
background: rgba(255, 255, 255, 0.2);
|
||||||
|
border: 1.5px solid rgba(255, 255, 255, 0.55);
|
||||||
|
border-radius: 2px 2px 0 0;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Cross divider */
|
||||||
|
.tower-window::before {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0; bottom: 0;
|
||||||
|
left: 50%;
|
||||||
|
width: 1.5px;
|
||||||
|
background: rgba(255, 255, 255, 0.55);
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tower-window::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
left: 0; right: 0;
|
||||||
|
top: 50%;
|
||||||
|
height: 1.5px;
|
||||||
|
background: rgba(255, 255, 255, 0.55);
|
||||||
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tower-fill {
|
.tower-fill {
|
||||||
@@ -112,16 +173,37 @@ body {
|
|||||||
left: 0;
|
left: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 0%;
|
height: 0%;
|
||||||
background: linear-gradient(to top, var(--accent), #a78bfa, var(--green));
|
background: linear-gradient(
|
||||||
border-radius: 13px;
|
to top,
|
||||||
|
var(--accent) 0%,
|
||||||
|
#818cf8 30%,
|
||||||
|
#a78bfa 50%,
|
||||||
|
#7dd3fc 70%,
|
||||||
|
var(--green) 100%
|
||||||
|
);
|
||||||
|
z-index: 1;
|
||||||
transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
||||||
|
box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Base / foundation */
|
||||||
|
.tower-base {
|
||||||
|
width: 80px;
|
||||||
|
height: 12px;
|
||||||
|
background: rgba(255, 255, 255, 0.75);
|
||||||
|
border-radius: 0 0 6px 6px;
|
||||||
|
border: 2px solid rgba(255, 255, 255, 0.6);
|
||||||
|
border-top: none;
|
||||||
|
box-shadow: 0 4px 10px rgba(60, 60, 120, 0.1);
|
||||||
|
margin-top: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tower-count {
|
.tower-count {
|
||||||
font-size: 0.75em;
|
font-size: 0.88em;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
margin-top: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tower-count span {
|
.tower-count span {
|
||||||
@@ -135,16 +217,16 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.greeting-banner .greeting-text {
|
.greeting-banner .greeting-text {
|
||||||
font-size: 1.15em;
|
font-size: 1.2em;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.greeting-banner .greeting-sub {
|
.greeting-banner .greeting-sub {
|
||||||
font-size: 0.82em;
|
font-size: 0.85em;
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
margin-top: 2px;
|
margin-top: 2px;
|
||||||
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ─── Header ─── */
|
/* ─── Header ─── */
|
||||||
@@ -162,7 +244,6 @@ h1 {
|
|||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
letter-spacing: -0.3px;
|
letter-spacing: -0.3px;
|
||||||
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-actions {
|
.header-actions {
|
||||||
@@ -631,7 +712,7 @@ button {
|
|||||||
|
|
||||||
.task-title {
|
.task-title {
|
||||||
font-size: 0.95em;
|
font-size: 0.95em;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
flex: 1;
|
flex: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
@@ -651,20 +732,21 @@ button {
|
|||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
font-size: 0.7em;
|
font-size: 0.7em;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
letter-spacing: 0.3px;
|
letter-spacing: 0.3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.task-size-badge.small { background: var(--sky-soft); color: #0369a1; }
|
.task-size-badge.small { background: rgba(2, 132, 199, 0.22); color: #0c4a6e; }
|
||||||
.task-size-badge.medium { background: var(--amber-soft); color: #b45309; }
|
.task-size-badge.medium { background: rgba(245, 158, 11, 0.25); color: #92400e; }
|
||||||
.task-size-badge.large { background: var(--rose-soft); color: #be123c; }
|
.task-size-badge.large { background: rgba(225, 29, 72, 0.2); color: #9f1239; }
|
||||||
|
|
||||||
.task-description {
|
.task-description {
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
font-size: 0.82em;
|
font-size: 0.84em;
|
||||||
|
font-weight: 500;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
@@ -688,16 +770,16 @@ button {
|
|||||||
padding: 2px 8px;
|
padding: 2px 8px;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
font-size: 0.72em;
|
font-size: 0.72em;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.due-badge.due-ok { background: var(--green-soft); color: #047857; }
|
.due-badge.due-ok { background: rgba(5, 150, 105, 0.25); color: #064e3b; }
|
||||||
.due-badge.due-soon { background: var(--amber-soft); color: #b45309; }
|
.due-badge.due-soon { background: rgba(245, 158, 11, 0.28); color: #92400e; }
|
||||||
.due-badge.due-overdue { background: var(--rose-soft); color: #be123c; }
|
.due-badge.due-overdue { background: rgba(225, 29, 72, 0.25); color: #9f1239; }
|
||||||
|
|
||||||
.due-badge.due-done {
|
.due-badge.due-done {
|
||||||
background: rgba(148, 163, 184, 0.12);
|
background: rgba(148, 163, 184, 0.2);
|
||||||
color: var(--text-muted);
|
color: var(--text-muted);
|
||||||
text-decoration: line-through;
|
text-decoration: line-through;
|
||||||
}
|
}
|
||||||
@@ -727,8 +809,8 @@ button {
|
|||||||
|
|
||||||
.progress-text {
|
.progress-text {
|
||||||
font-size: 0.78em;
|
font-size: 0.78em;
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--text-muted);
|
color: var(--text-secondary);
|
||||||
min-width: 32px;
|
min-width: 32px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
@@ -840,7 +922,7 @@ button {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.subtask-title {
|
.subtask-title {
|
||||||
font-weight: 600;
|
font-weight: 700;
|
||||||
color: var(--text-primary);
|
color: var(--text-primary);
|
||||||
font-size: 0.92em;
|
font-size: 0.92em;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
@@ -1023,7 +1105,7 @@ button {
|
|||||||
|
|
||||||
/* ─── Responsive ─── */
|
/* ─── Responsive ─── */
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
body { padding: 12px 12px 12px 50px; }
|
body { padding: 12px; }
|
||||||
h1 { font-size: 1.2em; }
|
h1 { font-size: 1.2em; }
|
||||||
|
|
||||||
header {
|
header {
|
||||||
@@ -1034,17 +1116,18 @@ button {
|
|||||||
.header-actions { justify-content: space-between; }
|
.header-actions { justify-content: space-between; }
|
||||||
.view-toggle { margin-left: auto; }
|
.view-toggle { margin-left: auto; }
|
||||||
.form-row-2 { grid-template-columns: 1fr; }
|
.form-row-2 { grid-template-columns: 1fr; }
|
||||||
.progress-tower {
|
.progress-tower { left: 8px; }
|
||||||
left: 6px;
|
.tower-body { width: 46px; height: 340px; }
|
||||||
padding: 10px 6px;
|
.tower-roof {
|
||||||
border-radius: 18px;
|
border-left-width: 26px;
|
||||||
|
border-right-width: 26px;
|
||||||
|
border-bottom-width: 18px;
|
||||||
}
|
}
|
||||||
.tower-bar {
|
.tower-base { width: 54px; height: 8px; }
|
||||||
width: 18px;
|
.tower-window { width: 14px; height: 14px; }
|
||||||
height: 140px;
|
.tower-floor { gap: 0; }
|
||||||
}
|
.tower-percentage { font-size: 0.9em; }
|
||||||
.tower-percentage { font-size: 0.75em; }
|
.tower-count { font-size: 0.65em; }
|
||||||
.tower-count { font-size: 0.6em; }
|
|
||||||
.subtask {
|
.subtask {
|
||||||
backdrop-filter: none;
|
backdrop-filter: none;
|
||||||
-webkit-backdrop-filter: none;
|
-webkit-backdrop-filter: none;
|
||||||
|
|||||||
Reference in new issue
Block a user