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>
<div class="columns">
<div class="column is-one-third">
<div class="box p-3 m-2">
<img class="mt-1 ml-5 mr-auto" style="margin: auto;" src="../resources/logo-parcoursup.svg"/>
<div class="box p-3 m-2" style="display: flex">
<img class="m-auto" src="../resources/logo-parcoursup.svg"/>
</div>
<search updateCourse={updateCourse}></search>
</div>

View File

@ -9,11 +9,11 @@
<script>
const DEFAULT_CLASSES = "progress is-small m-2 mt-auto mb-auto"
const COLOR_CLASSES = [
"is-link",
"is-info",
"is-success",
"is-danger",
"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))
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 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}`))
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 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}`))
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 response = result["records"]