|
46 | 46 | @if (temperatureStatus != null) |
47 | 47 | { |
48 | 48 | <div class="row g-2"> |
49 | | - <div class="col-6"> |
50 | | - <div class="text-center"> |
51 | | - <div class="mb-1"> |
52 | | - <i class="fas fa-cloud-sun fa-lg" style="color: @GetTemperatureColor(temperatureStatus.OutsideTemperature)"></i> |
| 49 | + <div class="col-6"> <div class="text-center"> |
| 50 | + <div class="mb-2"> |
| 51 | + <i class="fas fa-cloud-sun fa-2x" style="color: @GetTemperatureColor(temperatureStatus.OutsideTemperature)"></i> |
53 | 52 | </div> |
54 | | - <div class="small text-muted">Outside</div> |
| 53 | + <div class="h6 text-muted mb-2">Outside</div> |
55 | 54 | <div class="temperature-display"> |
56 | | - <span class="h6" style="color: @GetTemperatureColor(temperatureStatus.OutsideTemperature)">@FormatTemperature(temperatureStatus.OutsideTemperature)</span> |
| 55 | + <span class="display-1 fw-bold" style="color: @GetTemperatureColor(temperatureStatus.OutsideTemperature)">@FormatTemperature(temperatureStatus.OutsideTemperature)</span> |
57 | 56 | </div> |
58 | 57 | </div> |
59 | 58 | </div> |
60 | | - <div class="col-6"> |
61 | | - <div class="text-center"> |
62 | | - <div class="mb-1"> |
63 | | - <i class="fas fa-female fa-lg" style="color: @GetTemperatureColor(temperatureStatus.YoungerGirlsRoomTemperature)"></i> |
| 59 | + <div class="col-6"> <div class="text-center"> |
| 60 | + <div class="mb-2"> |
| 61 | + <i class="fas fa-female fa-2x" style="color: @GetTemperatureColor(temperatureStatus.YoungerGirlsRoomTemperature)"></i> |
64 | 62 | </div> |
65 | | - <div class="small text-muted">Girl's Room</div> |
| 63 | + <div class="h6 text-muted mb-2">Girl's Room</div> |
66 | 64 | <div class="temperature-display"> |
67 | | - <span class="h6" style="color: @GetTemperatureColor(temperatureStatus.YoungerGirlsRoomTemperature)">@FormatTemperature(temperatureStatus.YoungerGirlsRoomTemperature)</span> |
| 65 | + <span class="display-1 fw-bold" style="color: @GetTemperatureColor(temperatureStatus.YoungerGirlsRoomTemperature)">@FormatTemperature(temperatureStatus.YoungerGirlsRoomTemperature)</span> |
68 | 66 | </div> |
69 | 67 | </div> |
70 | 68 | </div> |
71 | | - <div class="col-6"> |
72 | | - <div class="text-center"> |
73 | | - <div class="mb-1"> |
74 | | - <i class="fas fa-male fa-lg" style="color: @GetTemperatureColor(temperatureStatus.BoysRoomTemperature)"></i> |
| 69 | + <div class="col-6"> <div class="text-center"> |
| 70 | + <div class="mb-2"> |
| 71 | + <i class="fas fa-male fa-2x" style="color: @GetTemperatureColor(temperatureStatus.BoysRoomTemperature)"></i> |
75 | 72 | </div> |
76 | | - <div class="small text-muted">Boy's Room</div> |
| 73 | + <div class="h6 text-muted mb-2">Boy's Room</div> |
77 | 74 | <div class="temperature-display"> |
78 | | - <span class="h6" style="color: @GetTemperatureColor(temperatureStatus.BoysRoomTemperature)">@FormatTemperature(temperatureStatus.BoysRoomTemperature)</span> |
| 75 | + <span class="display-1 fw-bold" style="color: @GetTemperatureColor(temperatureStatus.BoysRoomTemperature)">@FormatTemperature(temperatureStatus.BoysRoomTemperature)</span> |
79 | 76 | </div> |
80 | 77 | </div> |
81 | 78 | </div> |
82 | | - <div class="col-6"> |
83 | | - <div class="text-center"> |
84 | | - <div class="mb-1"> |
85 | | - <i class="fas fa-seedling fa-lg" style="color: @GetTemperatureColor(temperatureStatus.GreenhouseTemperature)"></i> |
| 79 | + <div class="col-6"> <div class="text-center"> |
| 80 | + <div class="mb-2"> |
| 81 | + <i class="fas fa-seedling fa-2x" style="color: @GetTemperatureColor(temperatureStatus.GreenhouseTemperature)"></i> |
86 | 82 | </div> |
87 | | - <div class="small text-muted">Greenhouse</div> |
| 83 | + <div class="h6 text-muted mb-2">Greenhouse</div> |
88 | 84 | <div class="temperature-display"> |
89 | | - <span class="h6" style="color: @GetTemperatureColor(temperatureStatus.GreenhouseTemperature)">@FormatTemperature(temperatureStatus.GreenhouseTemperature)</span> |
| 85 | + <span class="display-1 fw-bold" style="color: @GetTemperatureColor(temperatureStatus.GreenhouseTemperature)">@FormatTemperature(temperatureStatus.GreenhouseTemperature)</span> |
90 | 86 | </div> |
91 | | - </div> </div> |
| 87 | + </div></div> |
92 | 88 | </div> |
93 | 89 | <div class="text-center mt-1"> |
94 | 90 | <small class="text-muted"> |
|
124 | 120 | </div> |
125 | 121 | </div> |
126 | 122 |
|
127 | | -<style> |
128 | | - .temperature-card .temperature-display { |
| 123 | +<style> .temperature-card .temperature-display { |
129 | 124 | margin: 0.25rem 0; |
| 125 | + line-height: 0.9; |
| 126 | + }.temperature-card .temperature-display .display-1 { |
| 127 | + font-size: 4rem !important; |
| 128 | + text-shadow: 1px 1px 2px rgba(0,0,0,0.3); |
| 129 | + } |
| 130 | + |
| 131 | + /* Extra large on smaller screens for better visibility */ |
| 132 | + @@media (max-width: 1024px) { |
| 133 | + .temperature-card .temperature-display .display-1 { |
| 134 | + font-size: 5rem !important; |
| 135 | + } |
130 | 136 | } |
131 | 137 | |
132 | 138 | .temperature-card .recommendation-display { |
|
147 | 153 | opacity: 1; |
148 | 154 | transform: scale(1.05); |
149 | 155 | transition: all 0.2s ease-in-out; |
150 | | - } |
151 | | - |
152 | | - .temperature-card .card-body { |
153 | | - padding: 0.5rem; |
| 156 | + } .temperature-card .card-body { |
| 157 | + padding: 1rem; |
154 | 158 | } |
155 | 159 | |
156 | 160 | .temperature-card .small { |
|
210 | 214 | } |
211 | 215 | } private string FormatTemperature(double? temperature) |
212 | 216 | { |
213 | | - return temperature.HasValue ? $"{temperature.Value:F1}°F" : "N/A"; |
| 217 | + return temperature.HasValue ? $"{temperature.Value:F1}°" : "N/A"; |
214 | 218 | } |
215 | 219 |
|
216 | 220 | private string GetTemperatureColor(double? temperature) |
|
0 commit comments