Feat: goto grid display

This commit is contained in:
Bertrand Benjamin 2021-08-11 15:27:24 +02:00
parent 52c627c4f4
commit c2cc0d0e9c
4 changed files with 19 additions and 13 deletions

View File

@ -95,7 +95,8 @@ export default {
.month-presentation { .month-presentation {
display: inline-flex; display: inline-flex;
flex-direction: row; flex-direction: row;
background-color: palegreen; box-shadow: 5px 5px 10px gray;
border-left: 1rem solid green;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
border-radius: 10px; border-radius: 10px;

View File

@ -112,7 +112,7 @@ export default {
flex-direction: row; flex-direction: row;
*/ */
display: grid; display: grid;
grid-template-columns: 1fr 6fr; grid-template-columns: 140px 6fr;
box-shadow: 2px 2px 5px gray; box-shadow: 2px 2px 5px gray;
border-left: 1rem solid black; border-left: 1rem solid black;

View File

@ -9,12 +9,13 @@ button {
border: none; border: none;
color: white; color: white;
padding: 15px 32px; padding: 15px 32px;
box-shadow: 1px 1px 2px gray;
text-align: center; text-align: center;
display: inline-block; display: inline-block;
width: 100%; width: 100%;
font-size: 16px; font-size: 16px;
border-radius: 5px; border-radius: 5px;
color: black; color: white;
} }
.validate { .validate {
background-color: green; background-color: green;

View File

@ -1,6 +1,5 @@
<template> <template>
<h1>Home</h1> <h1>Sous de Margot</h1>
<revenus-chart/>
<section id="selector"> <section id="selector">
<month-selector/> <month-selector/>
</section> </section>
@ -11,8 +10,8 @@
<months-list/> <months-list/>
</section> </section>
<section id="stats"> <section id="stats">
<h2>Résumé</h2>
<highlights/> <highlights/>
<revenus-chart/>
</section> </section>
</div> </div>
</template> </template>
@ -44,22 +43,27 @@ export default {
}), }),
}, },
mounted () { mounted () {
//this.loadMonths() this.loadMonths()
}, },
} }
</script> </script>
<style scoped> <style scoped>
#selector {
display: none;
background-color: gray;
padding: 10px;
}
#content { #content {
display: inline-flex; display: grid;
flex-direction: row; grid-template-columns: 1fr 3fr;
background-color: red;
margin: 0; margin: 0;
} }
#content > * { #content > * {
margin: 10px; margin: 20px;
} }
#months { #months {
flex-basis: 60%; }
#stats {
} }
</style> </style>