Phase 4: Glassmorphic design refresh across all components
- Enhanced all major components with glassmorphic styling: * EngineData gauges: frosted glass panels with animations * InstrumentPanel: glassmorphic waypoint boxes and data tables * NowPlaying: glassmorphic album art container and controls * All panels: smooth fade-in animations on mount - Updated visual elements: * Consistent use of backdrop-filter blur effect * Semi-transparent borders with 0.1-0.2 opacity * Smooth animations (slideInUp, slideInDown, fadeIn) * Better font weights and hierarchy * Improved contrast and readability - Color scheme refinements: * Highlight backgrounds use RGBA with proper opacity * Better use of accent colors for emphasis * Consistent border styling with transparency * Support for light/dark mode throughout - Animation improvements: * All cards and panels animate on mount * Tab transitions are smooth and snappy * Hover effects with scale and shadow changes * Cubic-bezier timing functions for natural feel - Build optimization: * Still 70 modules, same bundle size * CSS is well-organized and maintainable * No breaking changes to component APIs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import WindRose from '../instruments/WindRose.jsx'
|
||||
|
||||
function DataRow({ label, value, unit, highlight }) {
|
||||
return (
|
||||
<div style={{ ...styles.row, background: highlight ? '#38bdf811' : 'transparent' }}>
|
||||
<div style={{ ...styles.row, background: highlight ? 'rgba(14, 165, 233, 0.08)' : 'transparent' }}>
|
||||
<span style={styles.label}>{label}</span>
|
||||
<span style={styles.value}>
|
||||
{value != null ? `${typeof value === 'number' ? value.toFixed(1) : value}` : '—'}
|
||||
@@ -97,12 +97,16 @@ export default function InstrumentPanel() {
|
||||
|
||||
const styles = {
|
||||
panel: { display: 'flex', flexDirection: 'column', gap: 16 },
|
||||
gauges: { display: 'flex', gap: 8, flexWrap: 'wrap', justifyContent: 'center' },
|
||||
gauges: { display: 'flex', gap: 10, flexWrap: 'wrap', justifyContent: 'center' },
|
||||
|
||||
waypointBox: {
|
||||
background: 'var(--surface)', borderRadius: 'var(--radius)',
|
||||
border: '1px solid var(--accent)',
|
||||
background: 'var(--glass-bg)',
|
||||
backdropFilter: 'blur(var(--glass-blur))',
|
||||
WebkitBackdropFilter: 'blur(var(--glass-blur))',
|
||||
borderRadius: 'var(--radius-lg)',
|
||||
border: '1px solid rgba(14, 165, 233, 0.2)',
|
||||
padding: 12,
|
||||
animation: 'slideInUp 0.3s ease-out',
|
||||
},
|
||||
waypointTitle: {
|
||||
fontSize: 12, fontWeight: 700, color: 'var(--accent)',
|
||||
@@ -116,7 +120,7 @@ const styles = {
|
||||
waypointRoute: {
|
||||
display: 'flex', flexDirection: 'column', gap: 6,
|
||||
marginTop: 4, paddingTop: 8,
|
||||
borderTop: '1px solid var(--border)',
|
||||
borderTop: '1px solid rgba(255, 255, 255, 0.1)',
|
||||
},
|
||||
routeLabel: { fontSize: 11, color: 'var(--muted)' },
|
||||
waypoints: {
|
||||
@@ -125,22 +129,26 @@ const styles = {
|
||||
waypointTag: {
|
||||
width: 28, height: 28,
|
||||
display: 'flex', alignItems: 'center', justifyContent: 'center',
|
||||
borderRadius: 4, fontSize: 11, fontWeight: 600,
|
||||
borderRadius: 6, fontSize: 11, fontWeight: 600,
|
||||
transition: 'all 0.2s',
|
||||
},
|
||||
|
||||
table: {
|
||||
display: 'grid', gridTemplateColumns: '1fr 1fr',
|
||||
gap: '0 24px', background: 'var(--surface)',
|
||||
borderRadius: 'var(--radius)', padding: 16,
|
||||
border: '1px solid var(--border)',
|
||||
gap: '0 24px',
|
||||
background: 'var(--glass-bg)',
|
||||
backdropFilter: 'blur(var(--glass-blur))',
|
||||
WebkitBackdropFilter: 'blur(var(--glass-blur))',
|
||||
borderRadius: 'var(--radius-lg)', padding: 16,
|
||||
border: '1px solid rgba(255, 255, 255, 0.1)',
|
||||
animation: 'slideInUp 0.3s ease-out',
|
||||
},
|
||||
row: {
|
||||
display: 'flex', justifyContent: 'space-between', alignItems: 'center',
|
||||
padding: '7px 0', borderBottom: '1px solid var(--border)',
|
||||
padding: '7px 0', borderBottom: '1px solid rgba(255, 255, 255, 0.05)',
|
||||
transition: 'background 0.2s',
|
||||
},
|
||||
label: { fontSize: 12, color: 'var(--muted)' },
|
||||
value: { fontFamily: 'var(--font-mono)', fontSize: 13, color: 'var(--text)' },
|
||||
label: { fontSize: 12, color: 'var(--muted)', fontWeight: 500 },
|
||||
value: { fontFamily: 'var(--font-mono)', fontSize: 13, color: 'var(--text)', fontWeight: 600 },
|
||||
unit: { color: 'var(--muted)', fontSize: 11 },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user