123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- /* device-monitor.component.css */
- :host {
- display: block;
- width: 100%;
- padding: 15px;
- }
- .monitor-container {
- max-width: 1400px;
- margin: 0 auto;
- padding: 20px;
- background: white;
- border-radius: 8px;
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
- }
- .monitor-header {
- display: flex;
- justify-content: space-between;
- align-items: flex-start;
- margin-bottom: 24px;
- padding-bottom: 16px;
- border-bottom: 1px solid #eee;
- }
- .monitor-header h2 {
- display: flex;
- align-items: center;
- gap: 10px;
- font-size: 24px;
- color: #2c3e50;
- }
- .device-info {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 10px 20px;
- font-size: 14px;
- background: #f8fafc;
- padding: 15px;
- border-radius: 6px;
- }
- .monitor-row {
- display: flex;
- gap: 20px;
- margin-bottom: 20px;
- }
- .waveform-card {
- flex: 2;
- background: white;
- border-radius: 8px;
- padding: 20px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- }
- .status-panel {
- flex: 1;
- background: white;
- border-radius: 8px;
- padding: 20px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- }
- .waveform-container {
- height: 250px;
- background: #f1f8ff;
- border-radius: 6px;
- margin: 20px 0;
- position: relative;
- overflow: hidden;
- }
- .waveform-grid {
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
- .grid-line {
- position: absolute;
- height: 1px;
- background: rgba(0, 0, 0, 0.05);
- left: 0;
- right: 0;
- }
- .grid-line:nth-child(1) { top: 25%; }
- .grid-line:nth-child(2) { top: 50%; }
- .grid-line:nth-child(3) { top: 75%; }
- .waveform-line {
- position: absolute;
- top: 50%;
- left: 0;
- right: 0;
- height: 3px;
- background: #3498db;
- animation: waveform 8s infinite linear;
- }
- @keyframes waveform {
- 0% { transform: translateX(0); }
- 100% { transform: translateX(-100%); }
- }
- .threshold {
- position: absolute;
- left: 0;
- right: 0;
- height: 2px;
- background: #e74c3c;
- }
- .threshold.upper { top: 25%; }
- .threshold.lower { top: 75%; }
- .waveform-controls {
- display: flex;
- gap: 20px;
- }
- .threshold-control {
- flex: 1;
- }
- .threshold-control label {
- display: block;
- margin-bottom: 8px;
- font-size: 14px;
- }
- .threshold-control input {
- width: 100%;
- }
- .status-grid {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 15px;
- margin: 20px 0;
- }
- .status-card {
- display: flex;
- align-items: center;
- gap: 15px;
- padding: 15px;
- background: #f8fafc;
- border-radius: 6px;
- border-left: 3px solid #3498db;
- }
- .status-icon {
- width: 45px;
- height: 45px;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 18px;
- color: white;
- }
- .status-icon.blue { background: #3498db; }
- .status-icon.green { background: #27ae60; }
- .status-icon.orange { background: #f39c12; }
- .status-icon.purple { background: #9b59b6; }
- .status-data {
- flex: 1;
- }
- .status-label {
- font-size: 14px;
- color: #95a5a6;
- margin-bottom: 3px;
- }
- .status-value {
- font-size: 20px;
- font-weight: 700;
- color: #2c3e50;
- }
- .progress-steps {
- display: flex;
- justify-content: space-between;
- margin-top: 15px;
- }
- .step {
- width: 36px;
- height: 36px;
- border-radius: 50%;
- background: #ecf0f1;
- display: flex;
- align-items: center;
- justify-content: center;
- font-weight: 700;
- color: #95a5a6;
- }
- .step.active {
- background: #3498db;
- color: white;
- }
- .step.current {
- background: #27ae60;
- color: white;
- transform: scale(1.2);
- }
- .history-panel {
- background: white;
- border-radius: 8px;
- padding: 20px;
- box-shadow: 0 2px 8px rgba(0,0,0,0.1);
- }
- .history-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 15px;
- }
- .alert-history {
- border: 1px solid #eee;
- border-radius: 6px;
- overflow: hidden;
- }
- .history-item {
- display: flex;
- align-items: center;
- padding: 12px 15px;
- border-bottom: 1px solid #eee;
- }
- .history-item:last-child {
- border-bottom: none;
- }
- .alert-time {
- width: 90px;
- font-weight: 500;
- color: #2c3e50;
- }
- .alert-desc {
- flex: 1;
- }
- .alert-level {
- padding: 4px 10px;
- border-radius: 4px;
- font-size: 13px;
- font-weight: 500;
- }
- .alert-level.warning {
- background: #fef5e7;
- color: #f39c12;
- border: 1px solid #f39c12;
- }
- .alert-level.critical {
- background: #fdecea;
- color: #e74c3c;
- border: 1px solid #e74c3c;
- }
- .alert-level.info {
- background: #ebf5fb;
- color: #3498db;
- border: 1px solid #3498db;
- }
|