Paillasse/design/_backup-ludique/resources/views/auth/connexion.blade.php
2026-10-06 23:28:18 +02:00

61 lines
7.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.vitrine')
@section('titre', 'Se connecter')
@section('contenu')
<section class="relative overflow-hidden">
<div aria-hidden="true" class="pointer-events-none absolute inset-0"><span class="etoile flotte absolute left-[45%] top-8 h-10 w-10 bg-[#FF6FB5] [--r:12deg]"></span><span class="zigzag absolute bottom-10 right-10 h-4 w-40"></span></div>
<div class="relative mx-auto max-w-7xl px-5 pb-28 pt-16 lg:px-10">
<h1 class="text-6xl font-black tracking-tighter sm:text-7xl">Se connecter.</h1>
<div class="mt-12 grid gap-10 lg:grid-cols-2">
<form action="{{ route('eleve') }}" method="get" class="grid gap-5 border-4 border-black bg-[#FFD23F] p-7 shadow-[8px_8px_0px_#000000] lg:-rotate-1">
<h2 class="text-3xl font-black">Je suis élève</h2>
<label class="grid gap-2 font-extrabold">Identifiant<input name="identifiant" autocomplete="username" class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none font-mono" placeholder="lea.m.2nde-b"></label>
<label class="grid gap-2 font-extrabold">Code secret<input type="password" name="code" autocomplete="current-password" class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none font-mono"></label>
<p class="font-medium">Ils sont sur ta fiche de connexion. Tu peux aussi scanner le QR.</p>
<div><button type="submit" class="inline-flex items-center gap-4 border-4 border-black bg-black px-6 py-4 text-lg font-extrabold text-white shadow-[6px_6px_0px_#ec3013] transition-transform hover:-translate-x-0.5 hover:-translate-y-0.5 hover:bg-[#ec3013] hover:shadow-[8px_8px_0px_#000000] active:translate-x-1.5 active:translate-y-1.5 active:shadow-none">Entrer <span class="font-mono" aria-hidden="true">→</span></button></div>
</form>
<form action="{{ route('suivi') }}" method="get" class="grid gap-5 border-4 border-black bg-white p-7 shadow-[8px_8px_0px_#000000] lg:translate-y-10">
<h2 class="text-3xl font-black">Je suis enseignant</h2>
<div class="grid gap-4">
<label class="grid gap-2 font-extrabold" for="etab-connexion">Établissement</label>
<select id="etab-connexion" name="etablissement_id" required data-etab class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none -mt-2">
<option value="">Choisir dans la liste</option>
<optgroup label="Lycées"><option value="L0">Lycée Jean-Jaurès · Montreuil</option><option value="L1">Lycée Louis-Armand · Paris 15e</option><option value="L2">Lycée Gustave-Eiffel · Bordeaux</option><option value="L3">Lycée La Martinière Monplaisir · Lyon</option></optgroup>
<optgroup label="BTS et IUT"><option value="B0">Lycée Saint-Exupéry · Marseille</option><option value="B1">IUT de Villetaneuse · R&amp;T</option><option value="B2">IUT de Lannion · R&amp;T</option></optgroup>
<optgroup label="Organismes de formation"><option value="O0">Télécom Saint-Étienne · école d’ingénieurs</option><option value="O1">AFPA · Centre de Rennes</option></optgroup>
<option value="autre">Mon établissement n’est pas dans la liste</option>
</select>
<div data-etab-autre hidden class="relative grid gap-4 border-4 border-black bg-white p-5 shadow-[5px_5px_0px_#000000]">
<span class="absolute -right-3 -top-4 rotate-3 border-2 border-black bg-[#FF6FB5] px-3 py-1 text-sm font-extrabold shadow-[3px_3px_0px_#000000]">Version démo</span>
<p class="font-semibold">Paillasse est en version démo. C’est avec grand plaisir qu’on vous laisse l’accès, sans carte bancaire. En échange, donnez-nous un coup de pouce : aidez-nous à faire souscrire une offre à votre établissement, ou envoyez-nous vos critiques et remarques pour rendre l’outil plus utile.</p>
<label class="grid gap-2 font-extrabold">Nom de l’établissement<input name="etablissement_nom" data-req class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none" placeholder="Lycée Marie-Curie"></label>
<div class="grid gap-4 sm:grid-cols-2">
<label class="grid gap-2 font-extrabold">Ville<input name="etablissement_ville" data-req class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none"></label>
<label class="grid gap-2 font-extrabold">Code UAI <span class="font-semibold">(facultatif)</span><input name="etablissement_uai" class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none font-mono" placeholder="0931234A"></label>
</div>
<fieldset class="grid gap-2 font-semibold">
<legend class="font-extrabold">Mon coup de pouce</legend>
<label class="flex items-center gap-3"><input type="checkbox" name="aide[]" value="offre" class="h-5 w-5 accent-black"> Aider à faire souscrire une offre</label>
<label class="flex items-center gap-3"><input type="checkbox" name="aide[]" value="avis" class="h-5 w-5 accent-black"> Envoyer mes critiques et remarques</label>
</fieldset>
</div>
</div>
<label class="grid gap-2 font-extrabold">E-mail<input type="email" name="email" autocomplete="email" class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none"></label>
<label class="grid gap-2 font-extrabold">Mot de passe<input type="password" name="password" autocomplete="current-password" class="w-full border-4 border-black bg-white px-4 py-3 text-lg font-semibold text-black placeholder:text-[#444141] focus:bg-[#FFFBEA] focus:shadow-[4px_4px_0px_#000000] focus:outline-none"></label>
<div class="flex flex-wrap items-center gap-5"><button type="submit" class="inline-flex items-center gap-4 border-4 border-black bg-black px-6 py-4 text-lg font-extrabold text-white shadow-[6px_6px_0px_#ec3013] transition-transform hover:-translate-x-0.5 hover:-translate-y-0.5 hover:bg-[#ec3013] hover:shadow-[8px_8px_0px_#000000] active:translate-x-1.5 active:translate-y-1.5 active:shadow-none">Se connecter</button><a href="{{ route('register') }}" class="font-extrabold underline underline-offset-4">Créer une classe</a></div>
</form>
</div>
</div>
</section>
<script>
document.querySelectorAll('[data-etab]').forEach(function (s) {
var box = s.parentNode.querySelector('[data-etab-autre]');
function maj() {
box.hidden = s.value !== 'autre';
box.querySelectorAll('[data-req]').forEach(function (i) { i.required = !box.hidden; });
}
s.addEventListener('change', maj); maj();
});
</script>
@endsection