ProjetRIOT/components/fili-info.riot

41 lines
1.5 KiB
Plaintext
Raw Normal View History

2023-03-28 13:42:53 +02:00
<fili-info>
2023-03-30 00:54:13 +02:00
<div class="box p-1 m-2" if={props.shouldShowInfos}>
<h1 class="title is-4 m-2">
<span style="color: #485FC7;">{props.course.fili}</span> /
<span style="color: #485FC7;">{props.course.sousfili}</span> /
<span style="color: #485FC7;">{props.course.soussousfili}</span>
</h1>
2023-03-28 16:17:29 +02:00
<div class="box mt-2" style="background-color: #EAEAEA; margin: auto; width: 60%;">
2023-03-30 00:54:13 +02:00
<p>Moyenne des admis<span class="is-pulled-right">{state.average}</span></p>
<p>Nombre de formations<span class="is-pulled-right">{state.courseNumber}</span></p>
<p>Capacité<span class="is-pulled-right">{state.capacity}</span></p>
2023-03-28 16:17:29 +02:00
<p>Sélectivité</p>
</div>
<div class="m-4">
2023-03-30 00:54:13 +02:00
<line-graph title="Répartition par genre" style="height: 6rem;"></line-graph>
2023-03-28 16:17:29 +02:00
</div>
<div class="m-4">
2023-03-30 00:54:13 +02:00
<line-graph title="Répartition par bac" style="height: 6rem;"></line-graph>
2023-03-28 16:17:29 +02:00
</div>
<div class="m-4">
2023-03-30 00:54:13 +02:00
<line-graph title="Répartition par mention au bac" style="height: 6rem;"></line-graph>
2023-03-28 16:17:29 +02:00
</div>
2023-03-28 13:42:53 +02:00
</div>
<script>
2023-03-30 00:54:13 +02:00
export default {
onBeforeMount(props, state) {
this.state = {
average: 0,
capacity: 0,
selectivity: 0,
courseNumber: 0
}
},
2023-03-28 13:42:53 +02:00
2023-03-30 00:54:13 +02:00
onUpdated(props, state) {
}
}
2023-03-28 13:42:53 +02:00
</script>
</fili-info>