diff src/main.css @ 17:472003015880

restyle using css grid
author drewp@bigasterisk.com
date Fri, 07 Jun 2024 21:22:37 -0700
parents 719c8cc4d8b2
children 499996b8224a
line wrap: on
line diff
--- a/src/main.css	Thu Jun 06 17:52:46 2024 -0700
+++ b/src/main.css	Fri Jun 07 21:22:37 2024 -0700
@@ -1,41 +1,50 @@
 @import url("https://fonts.googleapis.com/css2?family=Acme&family=Oswald&display=swap");
+
 html,
-body {
+#grid {
   width: 800px;
   height: 480px;
   overflow: hidden;
 }
+
 html {
   background: gray;
 }
+
 body {
   background: black;
   color: #f8f8f2;
   margin: 0;
   font-size: 25px;
   font-family: "Oswald", sans-serif;
-  display: flex;
-  flex-direction: column;
+}
+
+#grid {
+  display: grid;
+  grid-template-rows: 54px 206px 1fr;
+  grid-template-columns: 1.7fr 1fr 80px;
 }
-body > * {
-  /*outline: 1px orange solid;*/
+
+.debug #grid>* {
+  outline: 1px rgb(68, 68, 68) solid;
+}
+
+fd-week-guide {
+  grid-area: 1/1/1/3;
 }
-iframe {
-  background: #8bbe9c;
-  display: inline-block;
-  position: fixed;
-  top: 3em;
-  left: 12em;
-  width: 480px;
-  height: 380px;
+
+fd-clock {
+  grid-area: 1/3/1/3;
 }
+
+fd-upcoming-events {
+  grid-area: 2/1/3/1;
+}
+
 fd-countdown {
-  position: absolute;
-  left: 405px;
-  top: 52px;
+  grid-area: 2/2/2/4
 }
+
 fd-electricity {
-  position: absolute;
-  left: 402px;
-  top: 250px;
-}
+  grid-area: 3/2/3/4;
+}
\ No newline at end of file