Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/src/lib/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
{#if user}
<li class="relative">
<!-- Empêcher la propagation du clic pour que l'action clickOutside ne ferme pas immédiatement le menu -->
<button onclick={(e) => { e.stopPropagation(); toggleProfileMenu(); }} class="focus:outline-none" aria-label="Menu profil">
<button onclick={(e) => { e.stopPropagation(); toggleProfileMenu(); }} class="focus:outline-none hover:cursor-pointer" aria-label="Menu profil">
<svg width="34" height="35" viewBox="0 0 34 35" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="0.5" y="1" width="33" height="33" rx="16.5" stroke="#030712" />
<path d="M27 26.5C27 20.6665 23.3636 16.5001 17 16.5" stroke="#233430" />
Expand Down Expand Up @@ -109,7 +109,7 @@
<!-- Menu burger -->
<div class="lg:hidden flex items-center">
<!-- Empêcher la propagation du clic pour éviter la fermeture immédiate via clickOutside -->
<button onclick={(e) => { e.stopPropagation(); toggleMobileMenu(); }} class="focus:outline-none" aria-label="Menu mobile">
<button onclick={(e) => { e.stopPropagation(); toggleMobileMenu(); }} class="focus:outline-none cursor-pointer" aria-label="Menu mobile">
<svg fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-8 h-8">
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 7.5h16.5m-16.5 4.5h16.5m-16.5 4.5h16.5" />
</svg>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/components/myaccount/CreateService.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<button
type="submit"
disabled={submitted}
class="w-full sm:w-auto h-[46px] px-6 rounded-lg bg-gs-green-950 text-white font-medium
class="hover:cursor-pointer hover:bg-gs-green-800 w-full sm:w-auto h-[46px] px-6 rounded-lg bg-gs-green-950 text-white font-medium
shadow-sm hover:shadow hover:bg-gs-green-900
focus:ring-2 focus:ring-offset-2 focus:ring-gs-green-950
disabled:opacity-70 disabled:cursor-not-allowed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
<div class="flex justify-end gap-4">
<button
onclick={onClose}
class="px-4 py-2 text-gray-600 hover:bg-gray-100 rounded-lg transition-colors font-medium border border-gray-200"
class="hover:cursor-pointer px-4 py-2 text-gray-600 hover:bg-gray-100 rounded-lg transition-colors font-medium border border-gray-200"
>
{$t('common.cancel', { default: 'Annuler' })}
</button>

<button
onclick={onConfirm}
class="px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors font-medium shadow-sm"
class="hover:cursor-pointer px-4 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors font-medium shadow-sm"
>
{$t('account.modals.delete')}
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</picture>
</div>
{/if}
<p class="text-center mt-2 text-lg font-medium"><span class="animate-counter">{equivalentAverage.value}</span> {$t(equivalentAverage.name)}</p>
<p class="text-center mt-2 text-lg font-medium"><span class="animate-counter">{equivalentAverage.value.toFixed(1)}</span> {$t(equivalentAverage.name)}</p>
</div>
{:else}
<p class="text-center text-gray-500 flex items-center justify-center h-full">{$t('widgets.common.no_data')}</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export let messageAverageFootprint: string | null = null;
</script>

<div class="h-full bg-white flex flex-col justify-between gap-2 p-6 rounded-lg shadow-md col-span-1 order-1 lg:col-span-4 text-grey-950">
<div class="h-full bg-white flex flex-col justify-between gap-2 p-6 rounded-lg shadow-md col-span-1 order-1 lg:col-span-3 text-grey-950">
{#if myAverageDailyCarbonFootprint === null && averageDailyCarbonFootprint === null}
<p class="text-center text-gray-500 flex items-center justify-center h-full">{$t('widgets.common.no_data')}</p>
{:else}
Expand All @@ -17,7 +17,7 @@
<svg class="w-20 h-20 rotate-[-90deg]" viewBox="0 0 36 36">
<circle cx="18" cy="18" r="15.9155" class="text-gradient-purple" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="100 0" stroke-linecap="round"></circle>
</svg>
<p class="absolute inset-0 flex items-center justify-center text-3xl font-bold text-gradient-purple" data-value="{myAverageDailyCarbonFootprint}">{myAverageDailyCarbonFootprint}</p>
<p class="absolute inset-0 flex items-center justify-center text-3xl font-bold text-gradient-purple" data-value="{myAverageDailyCarbonFootprint}">{myAverageDailyCarbonFootprint.toFixed(1)}</p>
</div>
<p class="text-sm text-gray-500">{$t('widgets.common.average_daily_footprint.you')}</p>
</div>
Expand All @@ -28,7 +28,7 @@
<svg class="w-20 h-20 rotate-[-90deg]" viewBox="0 0 36 36">
<circle cx="18" cy="18" r="15.9155" class="text-gradient-purple" fill="none" stroke="currentColor" stroke-width="2" stroke-dasharray="100 0" stroke-linecap="round"></circle>
</svg>
<p class="absolute inset-0 flex items-center justify-center text-3xl font-bold text-gradient-purple" data-value="{averageDailyCarbonFootprint}">{averageDailyCarbonFootprint}</p>
<p class="absolute inset-0 flex items-center justify-center text-3xl font-bold text-gradient-purple" data-value="{averageDailyCarbonFootprint}">{averageDailyCarbonFootprint.toFixed(1)}</p>
</div>
<p class="text-sm text-gray-500">{$t('widgets.common.average_daily_footprint.other_users')}</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/routes/(app)/mon-compte/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
{#if selectedOrganisation && selectedOrganisation.est_admin}
<button
onclick={() => showDeleteModal = true}
class="p-2 text-gray-400 hover:text-red-600 hover:bg-red-50 rounded-lg transition-colors"
class="p-2 text-gray-400 hover:text-red-600 hover:cursor-pointer hover:bg-red-50 rounded-lg transition-colors"
title={$t('account.delete_org.button_title', { default: 'Supprimer l\'organisation' })}
>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
Expand Down
Loading