Fix marge logo

This commit is contained in:
HORVILLE 2023-03-31 11:36:19 +02:00
parent 963d4ae47d
commit 9dce55c45f
3 changed files with 19 additions and 10 deletions

View File

@ -1,8 +1,8 @@
<main-controller> <main-controller>
<div class="columns"> <div class="columns">
<div class="column is-one-third"> <div class="column is-one-third">
<div class="box p-3 m-2"> <div class="box p-3 m-2" style="display: flex">
<img class="mt-1 ml-5 mr-auto" style="margin: auto;" src="../resources/logo-parcoursup.svg"/> <img class="m-auto" src="../resources/logo-parcoursup.svg"/>
</div> </div>
<search updateCourse={updateCourse}></search> <search updateCourse={updateCourse}></search>
</div> </div>

View File

@ -9,11 +9,11 @@
<script> <script>
const DEFAULT_CLASSES = "progress is-small m-2 mt-auto mb-auto" const DEFAULT_CLASSES = "progress is-small m-2 mt-auto mb-auto"
const COLOR_CLASSES = [ const COLOR_CLASSES = [
"is-link", "is-danger",
"is-info",
"is-success",
"is-warning", "is-warning",
"is-danger" "is-success",
"is-info",
"is-link"
] ]

View File

@ -26,7 +26,10 @@ class PAPI {
if (localStorage.getItem("fili." + filiere)) return JSON.parse(localStorage.getItem("fili." + filiere)) if (localStorage.getItem("fili." + filiere)) return JSON.parse(localStorage.getItem("fili." + filiere))
let request = await fetch(`${PAPI.searchURL}&rows=0&sort=tri&facet=form_lib_voe_acc&refine.fili=${filiere}`) let url = `${PAPI.searchURL}&rows=0&sort=tri&facet=form_lib_voe_acc&refine.fili=${filiere}`
url = url.replace("+", "%2B")
let request = await fetch(url)
let result = await request.json() let result = await request.json()
let response = result["facet_groups"][0]["facets"] let response = result["facet_groups"][0]["facets"]
@ -39,7 +42,10 @@ class PAPI {
if (localStorage.getItem(`spe.${filiere}.${specialite}`)) return JSON.parse(localStorage.getItem(`spe.${filiere}.${specialite}`)) if (localStorage.getItem(`spe.${filiere}.${specialite}`)) return JSON.parse(localStorage.getItem(`spe.${filiere}.${specialite}`))
let request = await fetch(`${PAPI.searchURL}&rows=0&sort=tri&facet=fil_lib_voe_acc&refine.form_lib_voe_acc=${specialite}&refine.fili=${filiere}`) let url = `${PAPI.searchURL}&rows=0&sort=tri&facet=fil_lib_voe_acc&refine.form_lib_voe_acc=${specialite}&refine.fili=${filiere}`
url = url.replace("+", "%2B")
let request = await fetch(url)
let result = await request.json() let result = await request.json()
let response = result["facet_groups"][0]["facets"] let response = result["facet_groups"][0]["facets"]
@ -52,7 +58,10 @@ class PAPI {
if (localStorage.getItem(`eta.${filiere}.${sousfiliere}.${soussousfiliere}`)) return JSON.parse(localStorage.getItem(`eta.${filiere}.${sousfiliere}.${soussousfiliere}`)) if (localStorage.getItem(`eta.${filiere}.${sousfiliere}.${soussousfiliere}`)) return JSON.parse(localStorage.getItem(`eta.${filiere}.${sousfiliere}.${soussousfiliere}`))
let request = await fetch(`${PAPI.searchURL}&rows=10000&refine.fil_lib_voe_acc=${soussousfiliere}&refine.form_lib_voe_acc=${sousfiliere}&refine.fili=${filiere}`) let url = `${PAPI.searchURL}&rows=10000&refine.fil_lib_voe_acc=${soussousfiliere}&refine.form_lib_voe_acc=${sousfiliere}&refine.fili=${filiere}`
url = url.replace("+", "%2B")
let request = await fetch(url)
let result = await request.json() let result = await request.json()
let response = result["records"] let response = result["records"]