index.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. /* =========
  2. Dark TV Dashboard Theme tuned for:
  3. - viewport: 960 x 540
  4. - devicePixelRatio (DPI): 2
  5. - NO media queries
  6. Notes:
  7. - All sizing is based on the 960x540 viewport, so everything fits without clipping.
  8. - Radar is non-cropped (contain).
  9. ========= */
  10. :root{
  11. --bg: #0b0f16;
  12. --border: rgba(255,255,255,0.10);
  13. --text: rgba(255,255,255,0.92);
  14. --muted: rgba(255,255,255,0.68);
  15. --accent: #4cc9f0;
  16. --accent-2: #a78bfa;
  17. /* Layout tuned to 960x540 */
  18. --outer-pad: 10px;
  19. --gap: 10px;
  20. --radius: 14px;
  21. --radius-sm: 10px;
  22. --font: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial, sans-serif;
  23. }
  24. *{ box-sizing:border-box; }
  25. html, body{ height:100%; width:100%; }
  26. body{
  27. margin:0;
  28. font-family: var(--font);
  29. color: var(--text);
  30. background:
  31. radial-gradient(900px 520px at 20% 10%, rgba(76,201,240,0.12), transparent 60%),
  32. radial-gradient(700px 420px at 85% 20%, rgba(167,139,250,0.10), transparent 55%),
  33. radial-gradient(700px 480px at 50% 100%, rgba(255,255,255,0.06), transparent 55%),
  34. var(--bg);
  35. overflow:hidden;
  36. -webkit-font-smoothing: antialiased;
  37. text-rendering: geometricPrecision;
  38. }
  39. /* =========
  40. 2x2 Grid fixed for this viewport
  41. ========= */
  42. .grid{
  43. height:100vh;
  44. width:100vw;
  45. padding: var(--outer-pad);
  46. display:grid;
  47. grid-template-columns: minmax(0, 1fr) minmax(0, 1.30fr);
  48. grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  49. gap: var(--gap);
  50. }
  51. .grid > *{
  52. min-width: 0;
  53. min-height: 0;
  54. }
  55. .topLeft, .topRight, .bottomLeft, .bottomRight{
  56. position:relative;
  57. min-width: 0;
  58. min-height: 0;
  59. border-radius: var(--radius);
  60. background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  61. border: 1px solid var(--border);
  62. box-shadow:
  63. 0 8px 24px rgba(0,0,0,0.35),
  64. inset 0 1px 0 rgba(255,255,255,0.06);
  65. overflow:hidden;
  66. }
  67. /* =========
  68. Top Left: Date/Time + Current Weather
  69. Sized to fit in a 960x540 tile.
  70. ========= */
  71. .topLeft{
  72. display:flex;
  73. flex-direction:column;
  74. min-width: 0;
  75. min-height: 0;
  76. padding: 8px;
  77. gap: 8px;
  78. }
  79. .dateTime{
  80. flex: 0 0 auto;
  81. min-width: 0;
  82. display:flex;
  83. flex-direction:column;
  84. gap: 2px;
  85. padding: 7px 9px;
  86. border-radius: var(--radius-sm);
  87. background: rgba(0,0,0,0.22);
  88. border: 1px solid rgba(255,255,255,0.08);
  89. }
  90. #date{
  91. margin:0;
  92. font-size: 12px;
  93. letter-spacing: 0.35px;
  94. color: var(--muted);
  95. }
  96. #time{
  97. margin:0;
  98. font-size: 32px;
  99. font-weight: 760;
  100. letter-spacing: 0.6px;
  101. line-height: 1.00;
  102. color: var(--text);
  103. overflow:hidden;
  104. text-overflow: ellipsis;
  105. white-space: nowrap;
  106. }
  107. .weather{
  108. flex: 1 1 auto;
  109. min-width: 0;
  110. min-height: 0;
  111. display:flex;
  112. }
  113. .weatherBlock{
  114. flex: 1 1 auto;
  115. min-width: 0;
  116. min-height: 0;
  117. padding: 8px;
  118. border-radius: var(--radius-sm);
  119. background:
  120. radial-gradient(420px 200px at 20% 10%, rgba(76,201,240,0.10), transparent 60%),
  121. rgba(0,0,0,0.18);
  122. border: 1px solid rgba(255,255,255,0.08);
  123. display:grid;
  124. grid-template-rows: auto auto minmax(0, 1fr);
  125. gap: 6px;
  126. }
  127. .weatherBlock h2{
  128. margin:0;
  129. font-size: 12px;
  130. font-weight: 820;
  131. letter-spacing: 0.45px;
  132. display:flex;
  133. align-items:center;
  134. gap: 8px;
  135. }
  136. .weatherBlock h2::before{
  137. content:"";
  138. width: 8px;
  139. height: 8px;
  140. border-radius: 50%;
  141. background: linear-gradient(135deg, var(--accent), var(--accent-2));
  142. box-shadow: 0 0 14px rgba(76,201,240,0.35);
  143. }
  144. .condition{
  145. display:flex;
  146. align-items:center;
  147. gap: 8px;
  148. padding: 6px 8px;
  149. border-radius: 12px;
  150. background: rgba(255,255,255,0.04);
  151. border: 1px solid rgba(255,255,255,0.06);
  152. min-width: 0;
  153. }
  154. .condition img{
  155. width: 26px;
  156. height: 26px;
  157. object-fit: contain;
  158. filter: drop-shadow(0 5px 8px rgba(0,0,0,0.45));
  159. flex: 0 0 auto;
  160. }
  161. .conditionText{
  162. margin:0;
  163. font-size: 12px;
  164. font-weight: 700;
  165. letter-spacing: 0.1px;
  166. color: var(--text);
  167. min-width: 0;
  168. line-height: 1.05;
  169. /* allow up to 2 lines without exploding height */
  170. display: -webkit-box;
  171. -webkit-box-orient: vertical;
  172. -webkit-line-clamp: 2;
  173. overflow: hidden;
  174. }
  175. .weatherInfo{
  176. min-width: 0;
  177. min-height: 0;
  178. display:grid;
  179. grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  180. grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  181. gap: 6px 8px;
  182. align-content: stretch;
  183. }
  184. .weatherInfo p{
  185. margin:0;
  186. padding: 5px 8px;
  187. border-radius: 12px;
  188. background: rgba(255,255,255,0.035);
  189. border: 1px solid rgba(255,255,255,0.06);
  190. font-size: 11px;
  191. line-height: 1.00;
  192. color: var(--muted);
  193. display:flex;
  194. align-items:center;
  195. justify-content:space-between;
  196. min-width: 0;
  197. min-height: 0;
  198. overflow:hidden;
  199. text-overflow: ellipsis;
  200. white-space: nowrap;
  201. }
  202. #temp, #feels, #wind, #humidity{
  203. color: var(--text);
  204. font-weight: 650;
  205. }
  206. /* =========
  207. Top Right: Radar (no crop)
  208. ========= */
  209. .topRight{
  210. padding: 8px;
  211. display:flex;
  212. align-items:center;
  213. justify-content:center;
  214. background:
  215. radial-gradient(620px 420px at 70% 10%, rgba(167,139,250,0.09), transparent 55%),
  216. rgba(0,0,0,0.10);
  217. }
  218. #radar{
  219. width:100%;
  220. height:100%;
  221. object-fit: contain;
  222. object-position: center;
  223. max-width: 100%;
  224. max-height: 100%;
  225. border-radius: calc(var(--radius) - 4px);
  226. border: 1px solid rgba(255,255,255,0.08);
  227. box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  228. background: rgba(0,0,0,0.22);
  229. display:block;
  230. }
  231. .topRight::after{
  232. content:"Radar";
  233. position:absolute;
  234. top: 8px;
  235. left: 10px;
  236. padding: 4px 8px;
  237. font-size: 10px;
  238. letter-spacing: 0.6px;
  239. text-transform: uppercase;
  240. color: rgba(255,255,255,0.72);
  241. background: rgba(0,0,0,0.40);
  242. border: 1px solid rgba(255,255,255,0.08);
  243. border-radius: 999px;
  244. }
  245. /* =========
  246. Bottom Left: Forecast Table (already tight)
  247. ========= */
  248. .bottomLeft{
  249. padding: 8px;
  250. display:flex;
  251. min-width: 0;
  252. min-height: 0;
  253. }
  254. table{
  255. width:100%;
  256. height:100%;
  257. border-collapse: separate;
  258. border-spacing: 0;
  259. overflow:hidden;
  260. border-radius: calc(var(--radius) - 4px);
  261. background: rgba(0,0,0,0.18);
  262. border: 1px solid rgba(255,255,255,0.08);
  263. table-layout: fixed;
  264. }
  265. thead th{
  266. padding: 6px 6px;
  267. font-size: 10px;
  268. line-height: 1.05;
  269. color: rgba(255,255,255,0.82);
  270. letter-spacing: 0.35px;
  271. text-transform: uppercase;
  272. background: linear-gradient(90deg, rgba(76,201,240,0.10), rgba(167,139,250,0.08));
  273. border-bottom: 1px solid rgba(255,255,255,0.10);
  274. overflow:hidden;
  275. text-overflow: ellipsis;
  276. white-space: nowrap;
  277. }
  278. tbody td{
  279. padding: 5px 6px;
  280. font-size: 10px;
  281. line-height: 1.05;
  282. color: var(--muted);
  283. border-bottom: 1px solid rgba(255,255,255,0.06);
  284. overflow:hidden;
  285. text-overflow: ellipsis;
  286. white-space: nowrap;
  287. }
  288. tbody td:first-child{
  289. width: 46%;
  290. color: rgba(255,255,255,0.88);
  291. font-weight: 760;
  292. letter-spacing: 0.10px;
  293. background: rgba(255,255,255,0.03);
  294. border-right: 1px solid rgba(255,255,255,0.06);
  295. }
  296. tbody td:not(:first-child),
  297. thead th:not(:first-child){
  298. text-align:center;
  299. }
  300. tbody tr:nth-child(odd) td{ background: rgba(255,255,255,0.018); }
  301. tbody tr:nth-child(even) td{ background: rgba(255,255,255,0.028); }
  302. tbody tr:nth-child(odd) td:first-child{ background: rgba(255,255,255,0.040); }
  303. tbody tr:nth-child(even) td:first-child{ background: rgba(255,255,255,0.055); }
  304. tbody tr:last-child td{ border-bottom: none; }
  305. /* =========
  306. Bottom Right: YouTube iframe
  307. ========= */
  308. .bottomRight{
  309. padding: 8px;
  310. background:
  311. radial-gradient(700px 480px at 20% 20%, rgba(76,201,240,0.08), transparent 55%),
  312. rgba(0,0,0,0.10);
  313. min-width: 0;
  314. min-height: 0;
  315. }
  316. .bottomRight iframe{
  317. width:100%;
  318. height:100%;
  319. border: 1px solid rgba(255,255,255,0.10);
  320. border-radius: calc(var(--radius) - 4px);
  321. box-shadow: 0 12px 36px rgba(0,0,0,0.55);
  322. background: #000;
  323. display:block;
  324. }
  325. /* Focus styling */
  326. :focus{
  327. outline: 2px solid rgba(76,201,240,0.55);
  328. outline-offset: 2px;
  329. }