diff --git a/src/components/global/api/View.js b/src/components/global/api/View.js
index e9afada..cffe84e 100644
--- a/src/components/global/api/View.js
+++ b/src/components/global/api/View.js
@@ -35,13 +35,13 @@ export default class View {
this.updateMenu(document.getElementById(`menu0-${e.name}`).innerText, "next")
}
- this.zone.appendChild(elem)
-
riot.mount(elem, {
name: e.name,
count: e.count,
idd: `menu0-${e.name}`
}, "selectorfragment")
+
+ this.zone.appendChild(elem)
})
}
@@ -55,12 +55,13 @@ export default class View {
renderPath(path) {
this.path.innerHTML = ""
let elem = document.createElement("locfragment")
- this.path.appendChild(elem)
riot.mount(elem, {
msg: path.filter(Boolean).join(" ► ")
}, "locfragment")
+ this.path.appendChild(elem)
+
log("Loc->View", `Chemin change ${path}`)
}
diff --git a/src/components/global/generalytics/generalysticsfragment.riot b/src/components/global/generalytics/generalysticsfragment.riot
new file mode 100644
index 0000000..f213a8c
--- /dev/null
+++ b/src/components/global/generalytics/generalysticsfragment.riot
@@ -0,0 +1,129 @@
+
+
+
+
+
+
+
+
+ { this.props.manPercent } (H)
+
+
+
+ { this.props.womenPercent } (F)
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/global/generalytics/generalytics.riot b/src/components/global/generalytics/generalytics.riot
index 0d9fd20..23dbdbc 100644
--- a/src/components/global/generalytics/generalytics.riot
+++ b/src/components/global/generalytics/generalytics.riot
@@ -9,385 +9,29 @@
padding: 1vw;
overflow: auto;
}
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-glob {
- color: white;
- display: flex;
- flex-direction: column;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-glob
- .generalytics-stat-atom {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-glob
- .generalytics-stat-atom
- #generalytics-stat-progress {
- width: 40vw;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-gender, #generalytics-stat-bac, #generalytics-stat-mention {
- text-align: center;
- color: white;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-gender-progressbar-container, #generalytics-stat-bac-progressbar-container, #generalytics-stat-mention-progressbar-container {
- padding: 10px;
- display: flex;
- width: 100%;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-gender-legend, #generalytics-stat-bac-legend, #generalytics-stat-mention-legend {
- display: flex;
- flex-direction: row;
- justify-content: center;
- gap: 3%;
- align-items: center;
- }
-
- /*
- * A PARTIR DE LA FAUT AUTOMATISER (C'est juste pour chopper le model)
- */
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-gender
- #generalytics-stat-gender-progressbar-container
- .generalytics-stat-gender-progressbar-h {
- border-top-right-radius: 1vw;
- border-bottom-right-radius: 1vw;
- background: royalblue;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-gender
- #generalytics-stat-gender-progressbar-container
- .generalytics-stat-gender-progressbar-f {
- border-top-left-radius: 1vw;
- border-bottom-left-radius: 1vw;
- background: purple;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-progressbar-container
- .generalytics-stat-bac-progressbar-gen {
- border-top-left-radius: 1vw;
- border-bottom-left-radius: 1vw;
- background: purple;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-progressbar-container
- .generalytics-stat-bac-progressbar-tech {
- background: royalblue;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-progressbar-container
- .generalytics-stat-bac-progressbar-pro {
- background: green;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-progressbar-container
- .generalytics-stat-bac-progressbar-aut {
- border-top-right-radius: 1vw;
- border-bottom-right-radius: 1vw;
- background: saddlebrown;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-progressbar-container
- .generalytics-stat-mention-progressbar-r {
- border-top-left-radius: 1vw;
- border-bottom-left-radius: 1vw;
- background: purple;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-progressbar-container
- .generalytics-stat-mention-progressbar-ab {
- background: royalblue;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-progressbar-container
- .generalytics-stat-mention-progressbar-b {
- background: green;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-progressbar-container
- .generalytics-stat-mention-progressbar-tb {
- background: saddlebrown;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-progressbar-container
- .generalytics-stat-mention-progressbar-tbf {
- border-top-right-radius: 1vw;
- border-bottom-right-radius: 1vw;
- background: darkred;
- }
-
- #generalytics
- #generalytics-stat-container
- .generalytics-stat-legend-square {
- width: 2vw;
- height: 2vw;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-gender
- #generalytics-stat-gender-legend
- #generalytics-stat-gender-legend-h
- .generalytics-stat-legend-square {
- background: royalblue;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-gender
- #generalytics-stat-gender-legend
- #generalytics-stat-gender-legend-f
- .generalytics-stat-legend-square {
- background: purple;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-legend
- #generalytics-stat-bac-legend-gen
- .generalytics-stat-legend-square {
- background: purple;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-legend
- #generalytics-stat-bac-legend-tech
- .generalytics-stat-legend-square {
- background: royalblue;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-legend
- #generalytics-stat-bac-legend-pro
- .generalytics-stat-legend-square {
- background: green;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-bac
- #generalytics-stat-bac-legend
- #generalytics-stat-bac-legend-autre
- .generalytics-stat-legend-square {
- background: saddlebrown;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-legend
- #generalytics-stat-mention-legend-r
- .generalytics-stat-legend-square {
- background: purple;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-legend
- #generalytics-stat-mention-legend-ab
- .generalytics-stat-legend-square {
- background: royalblue;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-legend
- #generalytics-stat-mention-legend-b
- .generalytics-stat-legend-square {
- background: green;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-legend
- #generalytics-stat-mention-legend-tb
- .generalytics-stat-legend-square {
- background: saddlebrown;
- }
-
- #generalytics
- #generalytics-stat-container
- #generalytics-stat-mention
- #generalytics-stat-mention-legend
- #generalytics-stat-mention-legend-tbf
- .generalytics-stat-legend-square {
- background: darkred;
- }
-
-
-
- Moyenne
- 342
-
-
-
- Nb formations
- 49
-
-
-
- Capacite
- 38
-
-
-
-
-
-
-
Repartition par genre
-
-
- 15% (F)
- 85% (H)
-
-
-
-
-
-
-
Repartition par bac
-
-
- 20% (Gen.)
- 30% (Tech.)
- 25% (Pro.)
- 0% (Aut.)
-
-
-
-
-
-
-
Repartition par mention au bac
-
-
- 10% (R)
- 10% (AB)
- 40% (B)
- 29% (TB)
- 10% (TBF)
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/src/pages/home.riot b/src/pages/home.riot
index d692702..671b006 100644
--- a/src/pages/home.riot
+++ b/src/pages/home.riot
@@ -4,7 +4,10 @@
position: relative;
display: flex;
flex-direction: row;
+ justify-content: center;
+ align-items: center;
justify-content: space-around;
+ margin-top: 2%;
}
#home