Nuevo evento
Sin título
Création rapide d'événement dans l'agenda
Clique sur un créneau vide de la semaine et une bulle ancrée dessus permet de donner un titre et une couleur à l'événement.
Réglages
Code
<div class="uvq13-cal"><div class="cal" role="group" aria-label="Semaine du 27 octobre"><span></span><span class="dh" id="uvq13-cal-d0"><span>Lundi</span> <b>27</b></span><span class="dh td" id="uvq13-cal-d1"><span>Mardi</span> <b>28</b></span><span class="dh" id="uvq13-cal-d2"><span>Mercredi</span> <b>29</b></span><span class="dh" id="uvq13-cal-d3"><span>Jeudi</span> <b>30</b></span><span class="hh" id="uvq13-cal-h0">9:00</span><button type="button" class="cell" data-h="0" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d0 uvq13-cal-h0"></button><button type="button" class="cell" data-h="0" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d1 uvq13-cal-h0"></button><button type="button" class="cell" data-h="0" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d2 uvq13-cal-h0"></button><button type="button" class="cell" data-h="0" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d3 uvq13-cal-h0"><span class="ev" style="--c:#f59e0b"><b>Dentiste</b><small>9:00</small></span></button><span class="hh" id="uvq13-cal-h1">10:00</span><button type="button" class="cell" data-h="1" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d0 uvq13-cal-h1"></button><button type="button" class="cell" data-h="1" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d1 uvq13-cal-h1"><span class="ev" style="--c:#14b8a6"><b>Design</b><small>10:00</small></span></button><button type="button" class="cell" data-h="1" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d2 uvq13-cal-h1"></button><button type="button" class="cell" data-h="1" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d3 uvq13-cal-h1"></button><span class="hh" id="uvq13-cal-h2">11:00</span><button type="button" class="cell" data-h="2" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d0 uvq13-cal-h2"></button><button type="button" class="cell" data-h="2" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d1 uvq13-cal-h2"></button><button type="button" class="cell" data-h="2" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d2 uvq13-cal-h2"></button><button type="button" class="cell" data-h="2" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d3 uvq13-cal-h2"></button><span class="hh" id="uvq13-cal-h3">12:00</span><button type="button" class="cell" data-h="3" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d0 uvq13-cal-h3"></button><button type="button" class="cell" data-h="3" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d1 uvq13-cal-h3"></button><button type="button" class="cell" data-h="3" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d2 uvq13-cal-h3"><span class="ev" style="--c:#e2553f"><b>Déjeuner avec Leo</b><small>12:00</small></span></button><button type="button" class="cell" data-h="3" aria-haspopup="dialog" aria-labelledby="uvq13-cal-d3 uvq13-cal-h3"></button></div><div class="po" role="dialog" aria-modal="true" aria-labelledby="uvq13-cal-pt"><p class="pt" id="uvq13-cal-pt">Nouvel événement</p><input class="nm" placeholder="Ajouter un titre" aria-label="Titre de l'événement" autocomplete="off"><p class="wh"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="8.5"/><path d="M12 7.5V12l3 2"/></svg><span class="when"></span></p><div class="cs" role="radiogroup" aria-label="Couleur"><button type="button" role="radio" aria-checked="true" aria-label="Corail" style="--c:#e2553f"></button><button type="button" role="radio" aria-checked="false" aria-label="Bleu canard" style="--c:#14b8a6"></button><button type="button" role="radio" aria-checked="false" aria-label="Ambre" style="--c:#f59e0b"></button><button type="button" role="radio" aria-checked="false" aria-label="Indigo" style="--c:#6366f1"></button></div><div class="ac"><button type="button" class="cn">Annuler</button><button type="button" class="ok">Enregistrer</button></div><span class="nt" hidden>Sans titre</span></div></div>Prompt pour l’IA
Collez-le dans ChatGPT, Claude ou Cursor : le bloc sera adapté à votre projet avec ces réglages, même sans React.
Plus dans Overlays
Voir tout : OverlaysOù l’utiliser
Créer un événement ne devrait pas obliger à quitter l'agenda, cette bulle s'ouvre donc juste à côté du créneau cliqué. Elle lit le jour et l'heure dans les en-têtes de la grille, change de côté s'il manque de place et pointe sa flèche vers la case. L'enregistrement dépose dans le créneau un bloc coloré modifiable. Pour un planning ou un agenda d'équipe.
La couleur principale marque aujourd'hui, le bouton d'enregistrement et l'anneau de sélection. Les flèches déplacent dans la grille, Entrée dans le titre enregistre et Échap annule en rendant le focus à la case d'origine.