perf: auto-hébergement des polices et icônes, CSS Tailwind statique
- Suppression des scripts externes (CDN Tailwind, Phosphor via unpkg) et des feuilles Google Fonts / Fontshare : plus aucun JS ni framework chargé depuis un CDN. - Plus Jakarta Sans auto-hébergée en woff2 (latin + latin-ext, 400 à 800). - Phosphor Icons réduit aux 88 icônes utilisées (~29 Ko au total contre plusieurs centaines de Ko pour le paquet complet). - Tailwind compilé une fois dans assets/css/app.css (build npm run build:css), même configuration que l'ancienne config inline. - Images en loading="lazy" / decoding="async", vidéo en preload="metadata". - Respect de prefers-reduced-motion. Claude-Session: https://claude.ai/code/session_01J2SY2d6QEBNLiUG77tZiiw
Cette révision appartient à :
22 fichiers modifiés
+2097
-72
Aucun fichier ne correspond à votre recherche
+34
-67
@@ -6,46 +6,11 @@
|
||||
<title>Jobrunner - Services & Prestations Sécurisées</title>
|
||||
<link rel="icon" type="image/jpeg" href="./logo.jpg?v=4">
|
||||
|
||||
<!-- Chillax Font & Plus Jakarta Sans -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
||||
<link href="https://api.fontshare.com/v2/css?f[]=chillax@400,500,600,700&display=swap" rel="stylesheet">
|
||||
|
||||
<!-- Phosphor Icons -->
|
||||
<script src="https://unpkg.com/@phosphor-icons/web"></script>
|
||||
|
||||
<!-- Tailwind CSS -->
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
sans: ['Chillax', 'Plus Jakarta Sans', 'system-ui', 'sans-serif'],
|
||||
body: ['Plus Jakarta Sans', 'sans-serif'],
|
||||
},
|
||||
colors: {
|
||||
'job-bg': '#F4F2EC',
|
||||
'job-sage': '#7A8E76',
|
||||
'job-sage-dark': '#586B54',
|
||||
'job-sage-light': '#E7ECE5',
|
||||
'job-dark': '#1F221E',
|
||||
'job-gray': '#E5E4DC',
|
||||
'job-gold': '#D4AF37',
|
||||
},
|
||||
boxShadow: {
|
||||
'soft': '0 8px 30px rgba(0,0,0,0.04)',
|
||||
'card': '0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02)',
|
||||
'elevated': '0 20px 35px -10px rgba(31, 34, 30, 0.12)',
|
||||
'nav': '0 -10px 30px rgba(0,0,0,0.05)',
|
||||
'floating': '0 15px 35px rgba(122, 142, 118, 0.35)',
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
<!-- Polices auto-hébergées (aucun appel externe) -->
|
||||
<link rel="preload" href="assets/fonts/plus-jakarta-sans-latin-400-normal.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="stylesheet" href="assets/css/fonts.css">
|
||||
|
||||
<script>
|
||||
// ====== FALLBACK LOGO ROBUSTE ======
|
||||
function handleLogoError(img, theme = 'sage') {
|
||||
if (!img || img.dataset.fallbackApplied) return;
|
||||
@@ -193,6 +158,8 @@
|
||||
scroll-snap-stop: always;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="assets/icons/phosphor.css">
|
||||
<link rel="stylesheet" href="assets/css/app.css">
|
||||
</head>
|
||||
<body class="selection:bg-job-sage selection:text-white">
|
||||
|
||||
@@ -200,7 +167,7 @@
|
||||
<div id="dev-lock-screen" class="fixed inset-0 z-[9999] bg-[#f4f5f7] flex flex-col items-center justify-center p-4 text-gray-800 transition-opacity duration-300 font-sans">
|
||||
<div class="w-full max-w-xs bg-white p-6 border border-gray-300 rounded-2xl shadow-sm text-center">
|
||||
<div class="flex items-center justify-center mb-3">
|
||||
<img src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-12 h-12 rounded-2xl object-contain object-center shadow-sm" onerror="handleLogoError(this, 'sage')">
|
||||
<img loading="lazy" decoding="async" src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-12 h-12 rounded-2xl object-contain object-center shadow-sm" onerror="handleLogoError(this, 'sage')">
|
||||
</div>
|
||||
<h1 class="text-sm font-semibold text-gray-900 mb-1">Authentification</h1>
|
||||
<p class="text-xs text-gray-500 mb-4">Veuillez entrer le mot de passe pour continuer.</p>
|
||||
@@ -328,7 +295,7 @@
|
||||
<div class="max-w-7xl mx-auto w-full flex items-center justify-between gap-3 lg:gap-5">
|
||||
<!-- 1. Logo Jobrunner avec 'J' -->
|
||||
<button onclick="navigate('home')" class="flex items-center gap-2.5 group transition-transform active:scale-95 shrink-0" aria-label="Jobrunner Accueil">
|
||||
<img src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-10 h-10 rounded-2xl object-contain object-center shadow-md group-hover:scale-105 transition-transform select-none shrink-0" onerror="handleLogoError(this, 'sage')">
|
||||
<img loading="lazy" decoding="async" src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-10 h-10 rounded-2xl object-contain object-center shadow-md group-hover:scale-105 transition-transform select-none shrink-0" onerror="handleLogoError(this, 'sage')">
|
||||
<span class="font-chillax text-2xl font-black tracking-tight text-job-dark shrink-0">Job<span class="text-job-sage">runner</span></span>
|
||||
</button>
|
||||
|
||||
@@ -590,7 +557,7 @@
|
||||
<span class="text-xs font-bold text-job-dark">Ajouter une photo représentative</span>
|
||||
<span class="text-[10px] text-gray-400">JPG, PNG haute résolution</span>
|
||||
</div>
|
||||
<img id="upload-preview" src="" alt="Aperçu" class="hidden absolute inset-0 w-full h-full object-cover">
|
||||
<img loading="lazy" decoding="async" id="upload-preview" src="" alt="Aperçu" class="hidden absolute inset-0 w-full h-full object-cover">
|
||||
<div id="upload-badge" class="hidden absolute bottom-2 right-2 bg-job-dark/80 text-white text-[10px] px-2.5 py-0.5 rounded-full backdrop-blur-sm">
|
||||
Modifier photo
|
||||
</div>
|
||||
@@ -693,7 +660,7 @@
|
||||
<!-- Top bar du tchat cliquable pour voir le profil -->
|
||||
<div class="p-3.5 px-5 bg-white border-b border-job-gray/80 flex items-center justify-between shrink-0">
|
||||
<div class="flex items-center gap-3 cursor-pointer group" onclick="openProfileFromActiveChat()" title="Cliquer pour voir le profil">
|
||||
<img id="desktop-chat-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray group-hover:scale-105 transition-transform" alt="Avatar">
|
||||
<img loading="lazy" decoding="async" id="desktop-chat-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray group-hover:scale-105 transition-transform" alt="Avatar">
|
||||
<div>
|
||||
<div class="flex items-center gap-2">
|
||||
<h3 id="desktop-chat-name" class="font-bold text-sm text-job-dark group-hover:text-job-sage transition-colors">Nom</h3>
|
||||
@@ -776,7 +743,7 @@
|
||||
<!-- Chat Header -->
|
||||
<div class="bg-white p-4 border-b border-job-gray/80 flex items-center justify-between shrink-0">
|
||||
<div class="flex items-center gap-3">
|
||||
<img id="chat-header-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray" alt="Avatar">
|
||||
<img loading="lazy" decoding="async" id="chat-header-avatar" src="" class="w-10 h-10 rounded-full object-cover border border-job-gray" alt="Avatar">
|
||||
<div>
|
||||
<div class="flex items-center gap-1.5">
|
||||
<h3 id="chat-header-name" class="font-bold text-sm text-job-dark">Nom</h3>
|
||||
@@ -823,7 +790,7 @@
|
||||
</button>
|
||||
|
||||
<div class="relative mb-3">
|
||||
<img id="profile-avatar" src="" class="w-20 h-20 rounded-full object-cover border-4 border-white shadow-md bg-job-bg">
|
||||
<img loading="lazy" decoding="async" id="profile-avatar" src="" class="w-20 h-20 rounded-full object-cover border-4 border-white shadow-md bg-job-bg">
|
||||
<span id="profile-avatar-badge" class="absolute bottom-0 right-0 w-6 h-6 bg-emerald-500 text-white rounded-full flex items-center justify-center border-2 border-white text-xs" title="Compte vérifié">
|
||||
<i class="ph-fill ph-seal-check"></i>
|
||||
</span>
|
||||
@@ -996,7 +963,7 @@
|
||||
|
||||
<div class="max-w-6xl mx-auto md:px-6 md:pb-12">
|
||||
<div class="relative h-72 md:h-96 bg-job-dark md:rounded-3xl overflow-hidden shadow-card">
|
||||
<img id="detail-job-img" src="" alt="Prestation" class="w-full h-full object-cover brightness-95" onerror="this.src='https://placehold.co/600x400/D9E4DD/2B2B2B?text=Service'">
|
||||
<img loading="lazy" decoding="async" id="detail-job-img" src="" alt="Prestation" class="w-full h-full object-cover brightness-95" onerror="this.src='https://placehold.co/600x400/D9E4DD/2B2B2B?text=Service'">
|
||||
<div class="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-black/20 pointer-events-none"></div>
|
||||
|
||||
<button onclick="handleBackFromDetail()" class="md:hidden absolute top-8 left-5 w-10 h-10 bg-white/90 backdrop-blur-md rounded-2xl flex items-center justify-center shadow-lg text-job-dark active:scale-95 transition-transform z-10">
|
||||
@@ -1022,7 +989,7 @@
|
||||
|
||||
<div onclick="openPublicProfile(currentDetailRunnerId)" class="flex items-center gap-3.5 pb-5 border-b border-job-gray/80 mb-5 cursor-pointer hover:bg-job-bg/50 p-2 -mx-2 rounded-2xl transition-colors group">
|
||||
<div class="relative shrink-0">
|
||||
<img id="detail-avatar" src="" class="w-14 h-14 rounded-2xl object-cover bg-job-bg border-2 border-job-gray shadow-sm group-hover:scale-105 transition-transform" alt="Avatar">
|
||||
<img loading="lazy" decoding="async" id="detail-avatar" src="" class="w-14 h-14 rounded-2xl object-cover bg-job-bg border-2 border-job-gray shadow-sm group-hover:scale-105 transition-transform" alt="Avatar">
|
||||
<div id="detail-badge-container"></div>
|
||||
</div>
|
||||
<div class="flex-grow">
|
||||
@@ -1111,7 +1078,7 @@
|
||||
</span>
|
||||
</div>
|
||||
<div id="swipe-reserve-knob" class="w-10 h-10 bg-[#F1EDE1] rounded-xl flex items-center justify-center overflow-hidden shadow-md z-20 cursor-grab active:cursor-grabbing shrink-0 relative" style="touch-action: none;">
|
||||
<img src="./logo.jpg?v=4" class="w-full h-full object-cover object-center pointer-events-none select-none" alt="Jobrunner" onerror="handleLogoError(this, 'beige')">
|
||||
<img loading="lazy" decoding="async" src="./logo.jpg?v=4" class="w-full h-full object-cover object-center pointer-events-none select-none" alt="Jobrunner" onerror="handleLogoError(this, 'beige')">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1143,7 +1110,7 @@
|
||||
|
||||
<div class="px-6 pt-0 pb-36 rounded-t-[2.5rem] bg-white -mt-10 relative z-10 shadow-2xl flex flex-col items-center">
|
||||
<div class="relative -mt-12 mb-3">
|
||||
<img id="public-profile-avatar" src="" class="w-24 h-24 rounded-full object-cover border-4 border-white shadow-md bg-job-bg">
|
||||
<img loading="lazy" decoding="async" id="public-profile-avatar" src="" class="w-24 h-24 rounded-full object-cover border-4 border-white shadow-md bg-job-bg">
|
||||
<span class="absolute bottom-0 right-0 w-7 h-7 bg-emerald-500 text-white rounded-full flex items-center justify-center border-2 border-white text-xs shadow-sm" title="Vérifié">
|
||||
<i class="ph-fill ph-seal-check"></i>
|
||||
</span>
|
||||
@@ -1252,7 +1219,7 @@
|
||||
<div class="bg-job-bg w-full max-w-[480px] md:max-w-lg md:rounded-3xl md:my-auto mx-auto max-h-[92vh] rounded-t-[2.5rem] flex flex-col shadow-2xl p-6 overflow-y-auto">
|
||||
<div class="flex items-center justify-between mb-4">
|
||||
<div class="flex items-center gap-2.5">
|
||||
<img src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-9 h-9 rounded-xl object-contain object-center shadow-sm shrink-0" onerror="handleLogoError(this, 'beige')">
|
||||
<img loading="lazy" decoding="async" src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-9 h-9 rounded-xl object-contain object-center shadow-sm shrink-0" onerror="handleLogoError(this, 'beige')">
|
||||
<h2 class="text-2xl font-bold font-chillax text-job-dark">Connexion</h2>
|
||||
</div>
|
||||
<button onclick="closeAuthModal()" class="w-8 h-8 rounded-full bg-white flex items-center justify-center text-gray-500 hover:text-job-dark">
|
||||
@@ -1275,7 +1242,7 @@
|
||||
<span class="text-[10px] uppercase font-bold text-gray-400 block mb-2">Profil enregistré</span>
|
||||
<div class="flex items-center justify-between">
|
||||
<div class="flex items-center gap-3">
|
||||
<img id="auth-saved-avatar" src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&auto=format&fit=crop&q=80" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="Avatar">
|
||||
<img loading="lazy" decoding="async" id="auth-saved-avatar" src="https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=100&auto=format&fit=crop&q=80" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="Avatar">
|
||||
<div>
|
||||
<span id="auth-saved-name" class="text-sm font-bold text-job-dark block">Christophe Vigneron</span>
|
||||
<span id="auth-saved-email" class="text-xs text-gray-500">christophe.vigneron@email.com</span>
|
||||
@@ -1582,7 +1549,7 @@
|
||||
<form onsubmit="handleSaveProfile(event)" class="space-y-3">
|
||||
<div class="flex flex-col items-center mb-3">
|
||||
<div class="relative w-20 h-20 mb-1.5 cursor-pointer group" onclick="simulateProfileAvatarUpload()">
|
||||
<img id="edit-avatar-preview" src="" class="w-full h-full rounded-full object-cover border border-job-gray shadow-sm group-hover:opacity-70 transition-opacity">
|
||||
<img loading="lazy" decoding="async" id="edit-avatar-preview" src="" class="w-full h-full rounded-full object-cover border border-job-gray shadow-sm group-hover:opacity-70 transition-opacity">
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity">
|
||||
<div class="w-8 h-8 rounded-full bg-black/50 flex items-center justify-center text-white backdrop-blur-sm shadow-md">
|
||||
<i class="ph-bold ph-camera"></i>
|
||||
@@ -1742,7 +1709,7 @@
|
||||
|
||||
<!-- Aperçu du Short -->
|
||||
<div class="flex items-center gap-3 p-3 bg-job-bg/70 rounded-2xl border border-job-gray/60 mb-5">
|
||||
<img id="share-preview-img" src="" class="w-12 h-16 object-cover rounded-xl border border-job-gray shrink-0" alt="Short preview">
|
||||
<img loading="lazy" decoding="async" id="share-preview-img" src="" class="w-12 h-16 object-cover rounded-xl border border-job-gray shrink-0" alt="Short preview">
|
||||
<div class="overflow-hidden">
|
||||
<h4 id="share-preview-title" class="font-bold text-xs text-job-dark truncate">Titre de la prestation</h4>
|
||||
<p id="share-preview-author" class="text-[10px] text-gray-500 truncate">Par le prestataire</p>
|
||||
@@ -2635,14 +2602,14 @@
|
||||
if (container) {
|
||||
container.innerHTML = `
|
||||
<button onclick="navigate('profile')" class="flex items-center justify-center bg-white rounded-full p-0.5 shadow-card border border-job-gray/80 active:scale-95 transition-all" title="Mon Profil">
|
||||
<img src="${currentUser.avatar}" class="w-10 h-10 rounded-full object-cover shadow-sm shrink-0" alt="Profil">
|
||||
<img loading="lazy" decoding="async" src="${currentUser.avatar}" class="w-10 h-10 rounded-full object-cover shadow-sm shrink-0" alt="Profil">
|
||||
</button>
|
||||
`;
|
||||
}
|
||||
if (desktopContainer) {
|
||||
desktopContainer.innerHTML = `
|
||||
<button onclick="navigate('profile')" class="nav-btn flex items-center gap-2 bg-white hover:bg-job-bg px-2.5 py-1.5 rounded-full border border-job-gray/80 shadow-xs transition-all active:scale-95 shrink-0" data-target="profile" title="Profil">
|
||||
<img src="${currentUser.avatar}" class="w-6 h-6 rounded-full object-cover shadow-xs shrink-0" alt="Profil">
|
||||
<img loading="lazy" decoding="async" src="${currentUser.avatar}" class="w-6 h-6 rounded-full object-cover shadow-xs shrink-0" alt="Profil">
|
||||
<span class="text-xs font-bold text-job-dark">Profil</span>
|
||||
</button>
|
||||
`;
|
||||
@@ -2742,7 +2709,7 @@
|
||||
<div class="bg-white rounded-3xl p-3 shadow-card flex gap-3.5 cursor-pointer hover:shadow-elevated transition-all border border-job-gray/70 relative overflow-hidden active:scale-[0.99] ${finalRingClass}" onclick="openProfile(${runner.id})">
|
||||
|
||||
<div class="relative w-28 h-28 shrink-0 rounded-2xl overflow-hidden bg-job-bg">
|
||||
<img src="${runner.jobImage}" alt="${runner.title}" class="w-full h-full object-cover transition-transform duration-500 hover:scale-105" onerror="this.src='https://placehold.co/200x200/E7ECE5/7A8E76?text=Job'">
|
||||
<img loading="lazy" decoding="async" src="${runner.jobImage}" alt="${runner.title}" class="w-full h-full object-cover transition-transform duration-500 hover:scale-105" onerror="this.src='https://placehold.co/200x200/E7ECE5/7A8E76?text=Job'">
|
||||
</div>
|
||||
|
||||
<div class="flex-grow flex flex-col justify-between py-0.5 overflow-hidden">
|
||||
@@ -2762,7 +2729,7 @@
|
||||
<div>
|
||||
<div class="flex items-center gap-2 mb-1.5">
|
||||
<div class="relative">
|
||||
<img src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover border border-job-gray" alt="${runner.name}">
|
||||
<img loading="lazy" decoding="async" src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover border border-job-gray" alt="${runner.name}">
|
||||
${badgeHtml}
|
||||
</div>
|
||||
<span class="text-[11px] text-gray-500 font-medium truncate">${runner.name}</span>
|
||||
@@ -2821,7 +2788,7 @@
|
||||
};
|
||||
item.innerHTML = `
|
||||
<div class="relative w-[116px] h-44 rounded-[1.25rem] overflow-hidden group-hover:scale-[1.02] transition-transform shadow-card bg-job-dark pointer-events-none select-none">
|
||||
<img src="${runner.jobImage}" class="absolute inset-0 w-full h-full object-cover brightness-[0.70]" alt="${runner.title}">
|
||||
<img loading="lazy" decoding="async" src="${runner.jobImage}" class="absolute inset-0 w-full h-full object-cover brightness-[0.70]" alt="${runner.title}">
|
||||
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/10 to-transparent"></div>
|
||||
<div class="absolute top-2.5 left-2.5 bg-black/50 backdrop-blur-md text-white text-[9px] font-bold px-2 py-1 rounded-lg flex items-center gap-1 border border-white/10">
|
||||
<i class="ph-fill ph-play text-rose-500 text-xs"></i> Short
|
||||
@@ -2884,7 +2851,7 @@
|
||||
}
|
||||
|
||||
reel.innerHTML = `
|
||||
<video class="absolute inset-0 w-full h-full object-cover opacity-85 pointer-events-none" loop muted playsinline autoplay src="${runner.shortVideo}" poster="${runner.jobImage}"></video>
|
||||
<video class="absolute inset-0 w-full h-full object-cover opacity-85 pointer-events-none" loop muted playsinline autoplay preload="metadata" src="${runner.shortVideo}" poster="${runner.jobImage}"></video>
|
||||
|
||||
<!-- Gradient positionné plus bas pour mieux voir la vidéo -->
|
||||
<div class="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent pointer-events-none"></div>
|
||||
@@ -2893,7 +2860,7 @@
|
||||
<div class="absolute bottom-20 md:bottom-5 left-4 right-16 z-10 text-white">
|
||||
|
||||
<div class="flex items-center gap-2 mb-2 bg-white/10 backdrop-blur-md w-max px-3 py-1 rounded-full border border-white/20">
|
||||
<img src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover">
|
||||
<img loading="lazy" decoding="async" src="${runner.avatar}" class="w-5 h-5 rounded-full object-cover">
|
||||
<span class="font-bold text-xs">${runner.name}</span>
|
||||
${badgeHtml}
|
||||
</div>
|
||||
@@ -3429,7 +3396,7 @@
|
||||
triggerCustomModal(`Vidéo "${vid.label}" sélectionnée pour le Short`, "check");
|
||||
};
|
||||
btn.innerHTML = `
|
||||
<img src="${vid.poster}" class="w-full h-full object-cover">
|
||||
<img loading="lazy" decoding="async" src="${vid.poster}" class="w-full h-full object-cover">
|
||||
<div class="absolute inset-0 bg-black/40 flex items-center justify-center text-white">
|
||||
<i class="ph-fill ph-play-circle text-xl"></i>
|
||||
</div>
|
||||
@@ -4104,7 +4071,7 @@
|
||||
|
||||
card.innerHTML = `
|
||||
<div class="relative shrink-0">
|
||||
<img src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="${conv.name}">
|
||||
<img loading="lazy" decoding="async" src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray" alt="${conv.name}">
|
||||
<span class="absolute bottom-0 right-0 w-3 h-3 bg-emerald-500 border-2 border-white rounded-full"></span>
|
||||
</div>
|
||||
<div class="flex-grow min-w-0 pr-1">
|
||||
@@ -4572,7 +4539,7 @@
|
||||
|
||||
item.innerHTML = `
|
||||
<div class="relative shrink-0">
|
||||
<img src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray shadow-xs" alt="${conv.name}">
|
||||
<img loading="lazy" decoding="async" src="${conv.avatar}" class="w-11 h-11 rounded-full object-cover border border-job-gray shadow-xs" alt="${conv.name}">
|
||||
<span class="absolute bottom-0 right-0 w-3 h-3 bg-emerald-500 border-2 border-white rounded-full"></span>
|
||||
</div>
|
||||
<div class="flex-grow min-w-0 pr-1">
|
||||
@@ -4646,7 +4613,7 @@
|
||||
</div>
|
||||
<div class="rounded-2xl overflow-hidden border border-job-gray shadow-xs mb-3.5 group cursor-pointer bg-white shrink-0" onclick="openProfile(${runner.id})">
|
||||
<div class="relative aspect-video w-full overflow-hidden bg-job-bg">
|
||||
<img src="${runner.jobImage}" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" alt="${runner.title}">
|
||||
<img loading="lazy" decoding="async" src="${runner.jobImage}" class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-300" alt="${runner.title}">
|
||||
<span class="absolute top-2.5 left-2.5 bg-white/95 backdrop-blur-md text-job-dark text-[10px] font-bold px-2 py-0.5 rounded-full flex items-center gap-1 shadow-xs">
|
||||
<i class="ph-fill ph-tag text-job-sage"></i> ${runner.categoryName}
|
||||
</span>
|
||||
@@ -4715,7 +4682,7 @@
|
||||
if (att.type === 'photo') {
|
||||
return `
|
||||
<div class="${bgClass} rounded-2xl ${isMe ? 'rounded-tr-sm' : 'rounded-tl-sm'} p-2 max-w-[78%] shadow-xs">
|
||||
<img src="${att.url}" class="rounded-xl w-full max-h-48 object-cover mb-1.5 shadow-xs" alt="Photo jointe">
|
||||
<img loading="lazy" decoding="async" src="${att.url}" class="rounded-xl w-full max-h-48 object-cover mb-1.5 shadow-xs" alt="Photo jointe">
|
||||
<p class="text-[11px] font-semibold px-1 ${isMe ? 'text-white/90' : 'text-gray-600'}">${att.caption || 'Photo jointe'}</p>
|
||||
</div>`;
|
||||
} else if (att.type === 'link') {
|
||||
@@ -5852,7 +5819,7 @@
|
||||
<div class="bg-white rounded-3xl p-4 shadow-card border border-job-gray/80 flex flex-col gap-2.5">
|
||||
<div class="flex justify-between items-start">
|
||||
<div class="flex items-center gap-3">
|
||||
<img src="${tx.partyAvatar}" class="w-10 h-10 rounded-full object-cover border border-job-gray">
|
||||
<img loading="lazy" decoding="async" src="${tx.partyAvatar}" class="w-10 h-10 rounded-full object-cover border border-job-gray">
|
||||
<div>
|
||||
<h3 class="font-bold text-xs text-job-dark leading-tight">${tx.title}</h3>
|
||||
<span class="text-[10px] text-gray-500">${isPaid ? 'Prestataire :' : 'Client :'} <strong>${tx.partyName}</strong> • ${tx.date}</span>
|
||||
@@ -6460,7 +6427,7 @@
|
||||
<!-- 1. Colonne : Présentation & Mission -->
|
||||
<div class="space-y-2.5">
|
||||
<div class="flex items-center gap-2">
|
||||
<img src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-8 h-8 rounded-lg object-contain object-center shadow-sm select-none shrink-0" onerror="handleLogoError(this, 'sage')">
|
||||
<img loading="lazy" decoding="async" src="./logo.jpg?v=4" alt="Logo Jobrunner" class="w-8 h-8 rounded-lg object-contain object-center shadow-sm select-none shrink-0" onerror="handleLogoError(this, 'sage')">
|
||||
<span class="font-chillax text-xl font-black tracking-tight text-white">Job<span class="text-job-sage">runner</span></span>
|
||||
</div>
|
||||
<p class="text-[11px] text-gray-400 leading-relaxed">
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur