- 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
247 lines
3.9 KiB
CSS
247 lines
3.9 KiB
CSS
.greetingBar {
|
|
padding: 8px 0 16px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.greetingText {
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.notifyBtn {
|
|
position: relative;
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--color-white);
|
|
border-radius: 14px;
|
|
box-shadow: var(--shadow-sm);
|
|
border: 1px solid var(--color-divider);
|
|
}
|
|
|
|
.notifyBadge {
|
|
position: absolute;
|
|
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(145deg, #3A54E8 0%, #5B74F7 30%, #7D9AFF 100%);
|
|
color: #fff;
|
|
border-radius: var(--radius-xl);
|
|
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: 18px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.overviewTitle {
|
|
font-size: var(--font-size-md);
|
|
font-weight: 600;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.overviewTime {
|
|
font-size: 11px;
|
|
opacity: 0.65;
|
|
background: rgba(255,255,255,0.15);
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.overviewData {
|
|
display: flex;
|
|
align-items: stretch;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.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.65;
|
|
font-weight: 500;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.bpValues {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 1px;
|
|
}
|
|
|
|
.bpNum {
|
|
font-size: 22px;
|
|
font-weight: 800;
|
|
line-height: 1.15;
|
|
color: #fff;
|
|
white-space: nowrap;
|
|
letter-spacing: -1px;
|
|
}
|
|
|
|
.bpSep {
|
|
font-size: 14px;
|
|
opacity: 0.35;
|
|
margin: 0 -1px;
|
|
}
|
|
|
|
.hrNum {
|
|
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.5;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.divider {
|
|
width: 1px;
|
|
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(4, 1fr);
|
|
gap: 10px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.quickAction {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 14px 4px;
|
|
background: var(--color-white);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
transition: all 0.2s;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.quickAction:active {
|
|
transform: scale(0.94);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
.quickIcon {
|
|
width: 46px;
|
|
height: 46px;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.quickLabel {
|
|
font-size: 11px;
|
|
color: var(--color-text-secondary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Health Tip */
|
|
.tipCard {
|
|
margin-bottom: 16px;
|
|
background: linear-gradient(135deg, #FFFDF5, #FFF8EC);
|
|
border: 1px solid #FDE8B3;
|
|
border-radius: var(--radius-lg);
|
|
}
|
|
|
|
.tipHeader {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tipTitle {
|
|
font-size: var(--font-size-sm);
|
|
font-weight: 700;
|
|
color: #B7791F;
|
|
}
|
|
|
|
.tipHint {
|
|
margin-left: auto;
|
|
font-size: var(--font-size-xs);
|
|
color: #D69E2E;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tipContent {
|
|
font-size: 13px;
|
|
color: #7B3F00;
|
|
line-height: 1.6;
|
|
}
|