added some widgets in grid layour (mostly dummies)

This commit is contained in:
Daniel Ledda
2020-11-29 14:01:22 +01:00
parent 16b4be1cd4
commit a308844639
6 changed files with 275 additions and 26 deletions

View File

@@ -10,6 +10,18 @@ html, body {
opacity: 100%;
}
.main-content-grid {
height: 80%;
width: 80%;
display: grid;
grid-template-rows: repeat(5, 1fr);
grid-template-columns: repeat(12, 1fr);
text-align: center;
}
.main-content-grid > * {
display: block;
}
.center {
position: absolute;
top: 0;
@@ -17,6 +29,7 @@ html, body {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
margin: auto;
align-items: center;
justify-content: center;
@@ -31,26 +44,48 @@ html, body {
z-index: -1;
}
.chart-container {
padding: 10vw;
width: calc(100% - 20vw);
height: calc(100% - 20vw);
text-align: center;
flex-flow: column;
}
.chart-container > * {
display: block;
}
#myChart {
background-color: white;
padding: 1vw;
border-radius: 1vw;
border: 3px #c7ab82 solid;
}
h1 {
display: block;
font-family: "Georgia", serif;
font-weight: normal;
color: #7b5b2f;
}
.widget {
display: flex;
justify-content: space-around;
flex-direction: column;
margin: 1em;
padding: 1em;
border-radius: 1em;
border: 0.2em #c7ab82 solid;
background-color: white;
}
.widget h2 {
font-family: "Georgia", serif;
font-weight: normal;
color: #7b5b2f;
font-size: 1em;
display: inline-block;
}
.widget p {
margin: 0;
}
#timer-widget {
grid-area: 1 / 11 / span 1 / span 2;
}
#mins-widget {
grid-area: auto / 11 / span 2 / span 2;
}
#timezone-widget {
grid-area: auto / 11 / span 2 / span 2;
}
#chart-container {
grid-area: 1 / 1 / span 5 / span 10;
}