refactor: patient frontend UI overhaul
- Reworked design system (variables, global styles, component CSS) - Updated TabBar with icon-based navigation - Redesigned HomePage, HealthHub, ServicesHub layouts - Improved Exercise/Diet, Medication, Profile pages styling - Simplified constants (removed emoji icons, streamlined data) - Fixed launch.json cwd paths for frontend projects
This commit is contained in:
@@ -7,132 +7,171 @@
|
||||
|
||||
.greetingText {
|
||||
font-size: 22px;
|
||||
font-weight: 700;
|
||||
font-weight: 800;
|
||||
color: var(--color-text-primary);
|
||||
}
|
||||
|
||||
.notifyBtn {
|
||||
position: relative;
|
||||
font-size: 20px;
|
||||
padding: 4px;
|
||||
min-width: 44px;
|
||||
min-height: 44px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: var(--color-white);
|
||||
border-radius: 50%;
|
||||
box-shadow: var(--shadow-xs);
|
||||
border-radius: 14px;
|
||||
box-shadow: var(--shadow-sm);
|
||||
border: 1px solid var(--color-divider);
|
||||
}
|
||||
|
||||
.notifyBadge {
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
right: -2px;
|
||||
min-width: 18px;
|
||||
height: 18px;
|
||||
padding: 0 5px;
|
||||
border-radius: 9px;
|
||||
background: #EF4444;
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
line-height: 1;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--color-accent-red);
|
||||
border: 2px solid #fff;
|
||||
}
|
||||
|
||||
.overviewCard {
|
||||
margin-bottom: 16px;
|
||||
background: linear-gradient(135deg, #2563EB 0%, #3B82F6 40%, #5B9AFF 100%);
|
||||
background: linear-gradient(145deg, #3A54E8 0%, #5B74F7 30%, #7D9AFF 100%);
|
||||
color: #fff;
|
||||
border-radius: var(--radius-xl);
|
||||
padding: 16px 14px;
|
||||
padding: 20px 16px;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
box-shadow: 0 8px 25px rgba(58,84,232,0.3);
|
||||
}
|
||||
|
||||
.overviewCard::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255,255,255,0.05);
|
||||
top: -40px;
|
||||
right: -40px;
|
||||
}
|
||||
|
||||
.overviewCard::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border-radius: 50%;
|
||||
background: rgba(255,255,255,0.04);
|
||||
bottom: -30px;
|
||||
left: -30px;
|
||||
}
|
||||
|
||||
.overviewHeader {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 14px;
|
||||
margin-bottom: 18px;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.overviewTitle {
|
||||
font-size: var(--font-size-md);
|
||||
font-weight: 600;
|
||||
opacity: 0.9;
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.overviewTime {
|
||||
font-size: var(--font-size-xs);
|
||||
opacity: 0.7;
|
||||
font-size: 11px;
|
||||
opacity: 0.65;
|
||||
background: rgba(255,255,255,0.15);
|
||||
padding: 4px 10px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.overviewData {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
align-items: stretch;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.bpSection,
|
||||
.hrSection {
|
||||
.dataCol {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.dataCol:first-child {
|
||||
flex: 1.35;
|
||||
}
|
||||
|
||||
.dataLabel {
|
||||
font-size: 10px;
|
||||
opacity: 0.7;
|
||||
opacity: 0.65;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.bpValues {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 2px;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.bpNum {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
line-height: 1.15;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
letter-spacing: -1px;
|
||||
}
|
||||
|
||||
.bpSep {
|
||||
font-size: var(--font-size-md);
|
||||
opacity: 0.5;
|
||||
font-size: 14px;
|
||||
opacity: 0.35;
|
||||
margin: 0 -1px;
|
||||
}
|
||||
|
||||
.hrNum {
|
||||
font-size: 24px;
|
||||
font-weight: 700;
|
||||
line-height: 1.1;
|
||||
font-size: 22px;
|
||||
font-weight: 800;
|
||||
line-height: 1.15;
|
||||
color: #fff;
|
||||
white-space: nowrap;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.unit {
|
||||
font-size: 10px;
|
||||
opacity: 0.6;
|
||||
opacity: 0.5;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.divider {
|
||||
width: 1px;
|
||||
height: 48px;
|
||||
background: rgba(255,255,255,0.2);
|
||||
background: rgba(255,255,255,0.18);
|
||||
flex-shrink: 0;
|
||||
align-self: stretch;
|
||||
margin: 6px 0;
|
||||
}
|
||||
|
||||
.riskAbnormal {
|
||||
color: #FF7171 !important;
|
||||
}
|
||||
|
||||
/* Quick Actions */
|
||||
.quickActions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 10px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
@@ -142,35 +181,42 @@
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 14px 8px;
|
||||
padding: 14px 4px;
|
||||
background: var(--color-white);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: var(--shadow-sm);
|
||||
transition: all 0.15s;
|
||||
transition: all 0.2s;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
|
||||
.quickAction:active {
|
||||
transform: scale(0.96);
|
||||
transform: scale(0.94);
|
||||
box-shadow: var(--shadow-md);
|
||||
}
|
||||
|
||||
.quickIcon {
|
||||
font-size: 28px;
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 24px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.quickLabel {
|
||||
font-size: var(--font-size-xs);
|
||||
font-size: 11px;
|
||||
color: var(--color-text-secondary);
|
||||
font-weight: 500;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* Health Tip */
|
||||
.tipCard {
|
||||
margin-bottom: 16px;
|
||||
background: linear-gradient(135deg, #FFFBEB, #FFF7ED);
|
||||
border: 1px solid #FDE68A;
|
||||
background: linear-gradient(135deg, #FFFDF5, #FFF8EC);
|
||||
border: 1px solid #FDE8B3;
|
||||
border-radius: var(--radius-lg);
|
||||
}
|
||||
|
||||
.tipHeader {
|
||||
@@ -182,18 +228,19 @@
|
||||
|
||||
.tipTitle {
|
||||
font-size: var(--font-size-sm);
|
||||
font-weight: 600;
|
||||
color: #92400E;
|
||||
font-weight: 700;
|
||||
color: #B7791F;
|
||||
}
|
||||
|
||||
.tipHint {
|
||||
margin-left: auto;
|
||||
font-size: var(--font-size-xs);
|
||||
color: var(--color-text-tertiary);
|
||||
color: #D69E2E;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.tipContent {
|
||||
font-size: var(--font-size-sm);
|
||||
color: #78350F;
|
||||
font-size: 13px;
|
||||
color: #7B3F00;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user