diff --git a/fiveparaminte-main/fiveparaminte-main/static/dashboard.html b/fiveparaminte-main/fiveparaminte-main/static/dashboard.html index aa9b343..379ed8a 100644 --- a/fiveparaminte-main/fiveparaminte-main/static/dashboard.html +++ b/fiveparaminte-main/fiveparaminte-main/static/dashboard.html @@ -92,15 +92,10 @@ .app-container { position: relative; z-index: 1; - max-width: 860px; - margin: 40px auto; - padding: 20px; - background: var(--bg-card); - border: 1px solid var(--border-color); - border-radius: 16px; - box-shadow: - 0 4px 6px -1px rgba(0, 0, 0, 0.02), - 0 10px 30px -5px rgba(0, 0, 0, 0.05); + max-width: 1400px; + margin: 0 auto; + padding: 24px; + min-height: 100vh; display: flex; flex-direction: column; width: 100%; @@ -390,30 +385,36 @@ .vitals-grid { display: grid; grid-template-columns: repeat(3, 1fr); - grid-template-rows: auto auto; - gap: 10px; + gap: 12px; + flex: 1; } .vital-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; - padding: 10px; + padding: 12px; position: relative; overflow: hidden; box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.03); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); - display: flex; - flex-direction: column; + display: grid; + grid-template-areas: + "header header" + "value waveform" + "footer footer"; + grid-template-columns: 110px 1fr; + grid-template-rows: auto 50px auto; + gap: 6px 12px; } .vital-card:hover { background: var(--bg-card-hover); - transform: translateY(-1px); + transform: translateY(-2px); box-shadow: - 0 6px 12px -5px rgba(0, 0, 0, 0.04), + 0 8px 16px -6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.01); } @@ -429,24 +430,24 @@ position: absolute; top: 0; left: 0; - right: 0; - height: 2.5px; - border-radius: 12px 12px 0 0; + bottom: 0; + width: 3.5px; + border-radius: 12px 0 0 12px; } - .vital-card.hr::before { background: linear-gradient(90deg, var(--hr-color), transparent); } - .vital-card.spo2::before { background: linear-gradient(90deg, var(--spo2-color), transparent); } - .vital-card.bp::before { background: linear-gradient(90deg, var(--bp-color), transparent); } - .vital-card.rr::before { background: linear-gradient(90deg, var(--rr-color), transparent); } - .vital-card.temp::before { background: linear-gradient(90deg, var(--temp-color), transparent); } - .vital-card.map-card::before { background: linear-gradient(90deg, var(--map-color), transparent); } + .vital-card.hr::before { background: linear-gradient(180deg, var(--hr-color), transparent); } + .vital-card.spo2::before { background: linear-gradient(180deg, var(--spo2-color), transparent); } + .vital-card.bp::before { background: linear-gradient(180deg, var(--bp-color), transparent); } + .vital-card.rr::before { background: linear-gradient(180deg, var(--rr-color), transparent); } + .vital-card.temp::before { background: linear-gradient(180deg, var(--temp-color), transparent); } + .vital-card.map-card::before { background: linear-gradient(180deg, var(--map-color), transparent); } /* Glow effect behind cards */ .vital-card::after { content: ''; position: absolute; top: 50%; - left: 50%; + left: 20%; width: 120px; height: 120px; border-radius: 50%; @@ -473,28 +474,29 @@ } .card-header { + grid-area: header; display: flex; align-items: center; justify-content: space-between; - margin-bottom: 6px; position: relative; z-index: 1; + padding-bottom: 2px; } .card-label { display: flex; align-items: center; - gap: 6px; + gap: 8px; } .card-icon { - width: 26px; - height: 26px; + width: 24px; + height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; - font-size: 13px; + font-size: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01); } @@ -506,10 +508,10 @@ .vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); } .card-name { - font-size: 10px; + font-size: 11px; font-weight: 700; text-transform: uppercase; - letter-spacing: 0.4px; + letter-spacing: 0.5px; } .vital-card.hr .card-name { color: var(--hr-color); } @@ -566,13 +568,13 @@ /* === Vital Value Display === */ .vital-value-container { - flex: 1; + grid-area: value; display: flex; align-items: center; - justify-content: center; + justify-content: flex-start; position: relative; z-index: 1; - min-height: 55px; + height: 100%; } .vital-value { @@ -584,31 +586,34 @@ transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); } - .vital-card.hr .vital-value { color: var(--hr-color); } - .vital-card.spo2 .vital-value { color: var(--spo2-color); } - .vital-card.bp .vital-value { color: var(--bp-color); } - .vital-card.rr .vital-value { color: var(--rr-color); } - .vital-card.temp .vital-value { color: var(--temp-color); } - .vital-card.map-card .vital-value { color: var(--map-color); } + .vital-card.hr .vital-value { color: var(--hr-color); text-shadow: 0 0 6px rgba(220, 38, 38, 0.12); } + .vital-card.spo2 .vital-value { color: var(--spo2-color); text-shadow: 0 0 6px rgba(8, 145, 178, 0.12); } + .vital-card.bp .vital-value { color: var(--bp-color); text-shadow: 0 0 6px rgba(124, 58, 237, 0.12); } + .vital-card.rr .vital-value { color: var(--rr-color); text-shadow: 0 0 6px rgba(22, 163, 74, 0.12); } + .vital-card.temp .vital-value { color: var(--temp-color); text-shadow: 0 0 6px rgba(234, 88, 12, 0.12); } + .vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 6px rgba(219, 39, 119, 0.12); } .vital-value.no-data { font-size: 26px; color: var(--text-dim) !important; + text-shadow: none !important; } .vital-value .unit { - font-size: 13px; + font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 2px; color: var(--text-secondary); + text-shadow: none !important; } .vital-value .slash { - font-size: 26px; + font-size: 24px; opacity: 0.3; margin: 0; color: var(--text-secondary); + text-shadow: none !important; } .vital-value-update { @@ -622,14 +627,13 @@ /* === Waveform Canvas === */ .waveform-container { - height: 30px; - margin-top: 6px; + grid-area: waveform; + height: 100%; position: relative; z-index: 1; overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, 0.01); - border: 1px solid rgba(0, 0, 0, 0.005); } .waveform-container canvas { @@ -640,24 +644,24 @@ /* === Normal Range Footer === */ .card-footer { + grid-area: footer; display: flex; align-items: center; justify-content: space-between; - margin-top: 6px; - padding-top: 6px; + padding-top: 4px; border-top: 1px solid var(--border-color); position: relative; z-index: 1; } .normal-range { - font-size: 9.5px; + font-size: 9px; color: var(--text-secondary); font-weight: 600; } .last-update { - font-size: 9.5px; + font-size: 9px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-weight: 500; @@ -669,11 +673,10 @@ } - /* === Responsive === */ @media (max-width: 1024px) { .vitals-grid { grid-template-columns: repeat(2, 1fr); - gap: 20px; + gap: 12px; } .setup-guide-body { grid-template-columns: 1fr; @@ -684,7 +687,7 @@ .app-container { padding: 12px; } .vitals-grid { grid-template-columns: 1fr; - gap: 16px; + gap: 12px; } .header { flex-direction: column; @@ -712,7 +715,6 @@ width: 100%; max-width: 250px; } - .vital-value { font-size: 56px; } .setup-guide-body { grid-template-columns: 1fr; } @@ -819,9 +821,6 @@ padding: 0 !important; max-width: 100% !important; margin: 0 !important; - background: transparent !important; - border: none !important; - box-shadow: none !important; } body.minimal-mode { padding: 0 !important; diff --git a/fiveparaminte-main/static/dashboard.html b/fiveparaminte-main/static/dashboard.html index aa9b343..379ed8a 100644 --- a/fiveparaminte-main/static/dashboard.html +++ b/fiveparaminte-main/static/dashboard.html @@ -92,15 +92,10 @@ .app-container { position: relative; z-index: 1; - max-width: 860px; - margin: 40px auto; - padding: 20px; - background: var(--bg-card); - border: 1px solid var(--border-color); - border-radius: 16px; - box-shadow: - 0 4px 6px -1px rgba(0, 0, 0, 0.02), - 0 10px 30px -5px rgba(0, 0, 0, 0.05); + max-width: 1400px; + margin: 0 auto; + padding: 24px; + min-height: 100vh; display: flex; flex-direction: column; width: 100%; @@ -390,30 +385,36 @@ .vitals-grid { display: grid; grid-template-columns: repeat(3, 1fr); - grid-template-rows: auto auto; - gap: 10px; + gap: 12px; + flex: 1; } .vital-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; - padding: 10px; + padding: 12px; position: relative; overflow: hidden; box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.03); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); - display: flex; - flex-direction: column; + display: grid; + grid-template-areas: + "header header" + "value waveform" + "footer footer"; + grid-template-columns: 110px 1fr; + grid-template-rows: auto 50px auto; + gap: 6px 12px; } .vital-card:hover { background: var(--bg-card-hover); - transform: translateY(-1px); + transform: translateY(-2px); box-shadow: - 0 6px 12px -5px rgba(0, 0, 0, 0.04), + 0 8px 16px -6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.01); } @@ -429,24 +430,24 @@ position: absolute; top: 0; left: 0; - right: 0; - height: 2.5px; - border-radius: 12px 12px 0 0; + bottom: 0; + width: 3.5px; + border-radius: 12px 0 0 12px; } - .vital-card.hr::before { background: linear-gradient(90deg, var(--hr-color), transparent); } - .vital-card.spo2::before { background: linear-gradient(90deg, var(--spo2-color), transparent); } - .vital-card.bp::before { background: linear-gradient(90deg, var(--bp-color), transparent); } - .vital-card.rr::before { background: linear-gradient(90deg, var(--rr-color), transparent); } - .vital-card.temp::before { background: linear-gradient(90deg, var(--temp-color), transparent); } - .vital-card.map-card::before { background: linear-gradient(90deg, var(--map-color), transparent); } + .vital-card.hr::before { background: linear-gradient(180deg, var(--hr-color), transparent); } + .vital-card.spo2::before { background: linear-gradient(180deg, var(--spo2-color), transparent); } + .vital-card.bp::before { background: linear-gradient(180deg, var(--bp-color), transparent); } + .vital-card.rr::before { background: linear-gradient(180deg, var(--rr-color), transparent); } + .vital-card.temp::before { background: linear-gradient(180deg, var(--temp-color), transparent); } + .vital-card.map-card::before { background: linear-gradient(180deg, var(--map-color), transparent); } /* Glow effect behind cards */ .vital-card::after { content: ''; position: absolute; top: 50%; - left: 50%; + left: 20%; width: 120px; height: 120px; border-radius: 50%; @@ -473,28 +474,29 @@ } .card-header { + grid-area: header; display: flex; align-items: center; justify-content: space-between; - margin-bottom: 6px; position: relative; z-index: 1; + padding-bottom: 2px; } .card-label { display: flex; align-items: center; - gap: 6px; + gap: 8px; } .card-icon { - width: 26px; - height: 26px; + width: 24px; + height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; - font-size: 13px; + font-size: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01); } @@ -506,10 +508,10 @@ .vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); } .card-name { - font-size: 10px; + font-size: 11px; font-weight: 700; text-transform: uppercase; - letter-spacing: 0.4px; + letter-spacing: 0.5px; } .vital-card.hr .card-name { color: var(--hr-color); } @@ -566,13 +568,13 @@ /* === Vital Value Display === */ .vital-value-container { - flex: 1; + grid-area: value; display: flex; align-items: center; - justify-content: center; + justify-content: flex-start; position: relative; z-index: 1; - min-height: 55px; + height: 100%; } .vital-value { @@ -584,31 +586,34 @@ transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); } - .vital-card.hr .vital-value { color: var(--hr-color); } - .vital-card.spo2 .vital-value { color: var(--spo2-color); } - .vital-card.bp .vital-value { color: var(--bp-color); } - .vital-card.rr .vital-value { color: var(--rr-color); } - .vital-card.temp .vital-value { color: var(--temp-color); } - .vital-card.map-card .vital-value { color: var(--map-color); } + .vital-card.hr .vital-value { color: var(--hr-color); text-shadow: 0 0 6px rgba(220, 38, 38, 0.12); } + .vital-card.spo2 .vital-value { color: var(--spo2-color); text-shadow: 0 0 6px rgba(8, 145, 178, 0.12); } + .vital-card.bp .vital-value { color: var(--bp-color); text-shadow: 0 0 6px rgba(124, 58, 237, 0.12); } + .vital-card.rr .vital-value { color: var(--rr-color); text-shadow: 0 0 6px rgba(22, 163, 74, 0.12); } + .vital-card.temp .vital-value { color: var(--temp-color); text-shadow: 0 0 6px rgba(234, 88, 12, 0.12); } + .vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 6px rgba(219, 39, 119, 0.12); } .vital-value.no-data { font-size: 26px; color: var(--text-dim) !important; + text-shadow: none !important; } .vital-value .unit { - font-size: 13px; + font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 2px; color: var(--text-secondary); + text-shadow: none !important; } .vital-value .slash { - font-size: 26px; + font-size: 24px; opacity: 0.3; margin: 0; color: var(--text-secondary); + text-shadow: none !important; } .vital-value-update { @@ -622,14 +627,13 @@ /* === Waveform Canvas === */ .waveform-container { - height: 30px; - margin-top: 6px; + grid-area: waveform; + height: 100%; position: relative; z-index: 1; overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, 0.01); - border: 1px solid rgba(0, 0, 0, 0.005); } .waveform-container canvas { @@ -640,24 +644,24 @@ /* === Normal Range Footer === */ .card-footer { + grid-area: footer; display: flex; align-items: center; justify-content: space-between; - margin-top: 6px; - padding-top: 6px; + padding-top: 4px; border-top: 1px solid var(--border-color); position: relative; z-index: 1; } .normal-range { - font-size: 9.5px; + font-size: 9px; color: var(--text-secondary); font-weight: 600; } .last-update { - font-size: 9.5px; + font-size: 9px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-weight: 500; @@ -669,11 +673,10 @@ } - /* === Responsive === */ @media (max-width: 1024px) { .vitals-grid { grid-template-columns: repeat(2, 1fr); - gap: 20px; + gap: 12px; } .setup-guide-body { grid-template-columns: 1fr; @@ -684,7 +687,7 @@ .app-container { padding: 12px; } .vitals-grid { grid-template-columns: 1fr; - gap: 16px; + gap: 12px; } .header { flex-direction: column; @@ -712,7 +715,6 @@ width: 100%; max-width: 250px; } - .vital-value { font-size: 56px; } .setup-guide-body { grid-template-columns: 1fr; } @@ -819,9 +821,6 @@ padding: 0 !important; max-width: 100% !important; margin: 0 !important; - background: transparent !important; - border: none !important; - box-shadow: none !important; } body.minimal-mode { padding: 0 !important; diff --git a/static/dashboard.html b/static/dashboard.html index aa9b343..379ed8a 100644 --- a/static/dashboard.html +++ b/static/dashboard.html @@ -92,15 +92,10 @@ .app-container { position: relative; z-index: 1; - max-width: 860px; - margin: 40px auto; - padding: 20px; - background: var(--bg-card); - border: 1px solid var(--border-color); - border-radius: 16px; - box-shadow: - 0 4px 6px -1px rgba(0, 0, 0, 0.02), - 0 10px 30px -5px rgba(0, 0, 0, 0.05); + max-width: 1400px; + margin: 0 auto; + padding: 24px; + min-height: 100vh; display: flex; flex-direction: column; width: 100%; @@ -390,30 +385,36 @@ .vitals-grid { display: grid; grid-template-columns: repeat(3, 1fr); - grid-template-rows: auto auto; - gap: 10px; + gap: 12px; + flex: 1; } .vital-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; - padding: 10px; + padding: 12px; position: relative; overflow: hidden; box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02), 0 4px 6px -2px rgba(0, 0, 0, 0.03); transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); - display: flex; - flex-direction: column; + display: grid; + grid-template-areas: + "header header" + "value waveform" + "footer footer"; + grid-template-columns: 110px 1fr; + grid-template-rows: auto 50px auto; + gap: 6px 12px; } .vital-card:hover { background: var(--bg-card-hover); - transform: translateY(-1px); + transform: translateY(-2px); box-shadow: - 0 6px 12px -5px rgba(0, 0, 0, 0.04), + 0 8px 16px -6px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.01); } @@ -429,24 +430,24 @@ position: absolute; top: 0; left: 0; - right: 0; - height: 2.5px; - border-radius: 12px 12px 0 0; + bottom: 0; + width: 3.5px; + border-radius: 12px 0 0 12px; } - .vital-card.hr::before { background: linear-gradient(90deg, var(--hr-color), transparent); } - .vital-card.spo2::before { background: linear-gradient(90deg, var(--spo2-color), transparent); } - .vital-card.bp::before { background: linear-gradient(90deg, var(--bp-color), transparent); } - .vital-card.rr::before { background: linear-gradient(90deg, var(--rr-color), transparent); } - .vital-card.temp::before { background: linear-gradient(90deg, var(--temp-color), transparent); } - .vital-card.map-card::before { background: linear-gradient(90deg, var(--map-color), transparent); } + .vital-card.hr::before { background: linear-gradient(180deg, var(--hr-color), transparent); } + .vital-card.spo2::before { background: linear-gradient(180deg, var(--spo2-color), transparent); } + .vital-card.bp::before { background: linear-gradient(180deg, var(--bp-color), transparent); } + .vital-card.rr::before { background: linear-gradient(180deg, var(--rr-color), transparent); } + .vital-card.temp::before { background: linear-gradient(180deg, var(--temp-color), transparent); } + .vital-card.map-card::before { background: linear-gradient(180deg, var(--map-color), transparent); } /* Glow effect behind cards */ .vital-card::after { content: ''; position: absolute; top: 50%; - left: 50%; + left: 20%; width: 120px; height: 120px; border-radius: 50%; @@ -473,28 +474,29 @@ } .card-header { + grid-area: header; display: flex; align-items: center; justify-content: space-between; - margin-bottom: 6px; position: relative; z-index: 1; + padding-bottom: 2px; } .card-label { display: flex; align-items: center; - gap: 6px; + gap: 8px; } .card-icon { - width: 26px; - height: 26px; + width: 24px; + height: 24px; border-radius: 6px; display: flex; align-items: center; justify-content: center; - font-size: 13px; + font-size: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01); } @@ -506,10 +508,10 @@ .vital-card.map-card .card-icon { background: rgba(219, 39, 119, 0.05); } .card-name { - font-size: 10px; + font-size: 11px; font-weight: 700; text-transform: uppercase; - letter-spacing: 0.4px; + letter-spacing: 0.5px; } .vital-card.hr .card-name { color: var(--hr-color); } @@ -566,13 +568,13 @@ /* === Vital Value Display === */ .vital-value-container { - flex: 1; + grid-area: value; display: flex; align-items: center; - justify-content: center; + justify-content: flex-start; position: relative; z-index: 1; - min-height: 55px; + height: 100%; } .vital-value { @@ -584,31 +586,34 @@ transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); } - .vital-card.hr .vital-value { color: var(--hr-color); } - .vital-card.spo2 .vital-value { color: var(--spo2-color); } - .vital-card.bp .vital-value { color: var(--bp-color); } - .vital-card.rr .vital-value { color: var(--rr-color); } - .vital-card.temp .vital-value { color: var(--temp-color); } - .vital-card.map-card .vital-value { color: var(--map-color); } + .vital-card.hr .vital-value { color: var(--hr-color); text-shadow: 0 0 6px rgba(220, 38, 38, 0.12); } + .vital-card.spo2 .vital-value { color: var(--spo2-color); text-shadow: 0 0 6px rgba(8, 145, 178, 0.12); } + .vital-card.bp .vital-value { color: var(--bp-color); text-shadow: 0 0 6px rgba(124, 58, 237, 0.12); } + .vital-card.rr .vital-value { color: var(--rr-color); text-shadow: 0 0 6px rgba(22, 163, 74, 0.12); } + .vital-card.temp .vital-value { color: var(--temp-color); text-shadow: 0 0 6px rgba(234, 88, 12, 0.12); } + .vital-card.map-card .vital-value { color: var(--map-color); text-shadow: 0 0 6px rgba(219, 39, 119, 0.12); } .vital-value.no-data { font-size: 26px; color: var(--text-dim) !important; + text-shadow: none !important; } .vital-value .unit { - font-size: 13px; + font-size: 12px; font-weight: 500; letter-spacing: 0; margin-left: 2px; color: var(--text-secondary); + text-shadow: none !important; } .vital-value .slash { - font-size: 26px; + font-size: 24px; opacity: 0.3; margin: 0; color: var(--text-secondary); + text-shadow: none !important; } .vital-value-update { @@ -622,14 +627,13 @@ /* === Waveform Canvas === */ .waveform-container { - height: 30px; - margin-top: 6px; + grid-area: waveform; + height: 100%; position: relative; z-index: 1; overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, 0.01); - border: 1px solid rgba(0, 0, 0, 0.005); } .waveform-container canvas { @@ -640,24 +644,24 @@ /* === Normal Range Footer === */ .card-footer { + grid-area: footer; display: flex; align-items: center; justify-content: space-between; - margin-top: 6px; - padding-top: 6px; + padding-top: 4px; border-top: 1px solid var(--border-color); position: relative; z-index: 1; } .normal-range { - font-size: 9.5px; + font-size: 9px; color: var(--text-secondary); font-weight: 600; } .last-update { - font-size: 9.5px; + font-size: 9px; color: var(--text-dim); font-family: 'JetBrains Mono', monospace; font-weight: 500; @@ -669,11 +673,10 @@ } - /* === Responsive === */ @media (max-width: 1024px) { .vitals-grid { grid-template-columns: repeat(2, 1fr); - gap: 20px; + gap: 12px; } .setup-guide-body { grid-template-columns: 1fr; @@ -684,7 +687,7 @@ .app-container { padding: 12px; } .vitals-grid { grid-template-columns: 1fr; - gap: 16px; + gap: 12px; } .header { flex-direction: column; @@ -712,7 +715,6 @@ width: 100%; max-width: 250px; } - .vital-value { font-size: 56px; } .setup-guide-body { grid-template-columns: 1fr; } @@ -819,9 +821,6 @@ padding: 0 !important; max-width: 100% !important; margin: 0 !important; - background: transparent !important; - border: none !important; - box-shadow: none !important; } body.minimal-mode { padding: 0 !important;