Spaces:
Running
Running
Download index.html from Sapedor/smartmessage: direct link, hf CLI and curl.
- Browser
- Download file 28.9 kB
-
https://huggingface.co/spaces/Sapedor/smartmessage/resolve/main/index.html
- Command line
-
hf download hf://spaces/Sapedor/smartmessage/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Sapedor/smartmessage/resolve/main/index.html
28.9 kB
| <html lang="fr"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>SmartMessage.pro - Messages pros générés par IA</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%); | |
| } | |
| .message-output { | |
| min-height: 200px; | |
| white-space: pre-wrap; | |
| } | |
| .loading-dots:after { | |
| content: '.'; | |
| animation: dots 1.5s steps(5, end) infinite; | |
| } | |
| @keyframes dots { | |
| 0%, 20% { content: '.'; } | |
| 40% { content: '..'; } | |
| 60% { content: '...'; } | |
| 80%, 100% { content: ''; } | |
| } | |
| </style> | |
| </head> | |
| <body class="font-sans bg-gray-50"> | |
| <!-- Header --> | |
| <header class="gradient-bg text-white"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center"> | |
| <i class="fas fa-comment-dots text-2xl mr-3"></i> | |
| <h1 class="text-2xl font-bold">SmartMessage<span class="text-blue-200">.pro</span></h1> | |
| </div> | |
| <nav class="hidden md:block"> | |
| <a href="#features" class="px-3 py-2 hover:text-blue-200">Fonctionnalités</a> | |
| <a href="#pricing" class="px-3 py-2 hover:text-blue-200">Tarifs</a> | |
| <a href="#testimonials" class="px-3 py-2 hover:text-blue-200">Témoignages</a> | |
| </nav> | |
| <button class="md:hidden text-xl" id="mobile-menu-btn"> | |
| <i class="fas fa-bars"></i> | |
| </button> | |
| </div> | |
| <div class="mt-16 text-center"> | |
| <h2 class="text-4xl font-bold mb-4">Messages pros générés par IA</h2> | |
| <p class="text-xl text-blue-100 max-w-2xl mx-auto"> | |
| Gagnez du temps et des clients avec des messages parfaits pour vos emails, LinkedIn et relances. | |
| </p> | |
| <a href="#generator" class="mt-8 inline-block bg-white text-blue-600 font-bold px-8 py-3 rounded-full hover:bg-blue-50 transition"> | |
| Essayer gratuitement | |
| </a> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Mobile Menu --> | |
| <div id="mobile-menu" class="hidden bg-white shadow-lg absolute w-full z-10"> | |
| <div class="container mx-auto px-4 py-3"> | |
| <a href="#features" class="block px-3 py-2 hover:bg-gray-100">Fonctionnalités</a> | |
| <a href="#pricing" class="block px-3 py-2 hover:bg-gray-100">Tarifs</a> | |
| <a href="#testimonials" class="block px-3 py-2 hover:bg-gray-100">Témoignages</a> | |
| </div> | |
| </div> | |
| <!-- Main Generator --> | |
| <section id="generator" class="container mx-auto px-4 py-16 -mt-10"> | |
| <div class="bg-white rounded-xl shadow-lg overflow-hidden max-w-4xl mx-auto"> | |
| <div class="p-6 border-b"> | |
| <h3 class="text-2xl font-bold text-gray-800">Générateur de messages</h3> | |
| <p class="text-gray-600">Remplissez les champs et obtenez un message professionnel en 1 clic</p> | |
| </div> | |
| <div class="p-6 md:p-8"> | |
| <div class="grid md:grid-cols-2 gap-6"> | |
| <!-- Left Column - Form --> | |
| <div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-medium mb-2">Type de message</label> | |
| <select id="message-type" class="w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> | |
| <option value="email">Email professionnel</option> | |
| <option value="linkedin">Message LinkedIn</option> | |
| <option value="followup">Email de relance</option> | |
| <option value="pitch">Pitch commercial</option> | |
| <option value="proposal">Proposition de service</option> | |
| </select> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-medium mb-2">Style du message</label> | |
| <select id="message-style" class="w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> | |
| <option value="professional">Professionnel</option> | |
| <option value="friendly">Amical/détendu</option> | |
| <option value="persuasive">Persuasif</option> | |
| <option value="concise">Concis/direct</option> | |
| </select> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-medium mb-2">Cible du message</label> | |
| <select id="message-target" class="w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500"> | |
| <option value="recruiter">Recruteur</option> | |
| <option value="prospect">Client potentiel</option> | |
| <option value="partner">Partenaire commercial</option> | |
| <option value="client">Client existant</option> | |
| <option value="influencer">Influenceur</option> | |
| </select> | |
| </div> | |
| <div class="mb-6"> | |
| <label class="block text-gray-700 font-medium mb-2">Détails supplémentaires (optionnel)</label> | |
| <textarea id="additional-info" class="w-full px-4 py-3 border rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500" placeholder="Ex: Je veux proposer mes services de design à une startup tech..."></textarea> | |
| </div> | |
| <button id="generate-btn" class="w-full gradient-bg text-white font-bold py-3 px-6 rounded-lg hover:opacity-90 transition flex items-center justify-center"> | |
| <i class="fas fa-magic mr-2"></i> Générer mon message | |
| </button> | |
| </div> | |
| <!-- Right Column - Output --> | |
| <div> | |
| <label class="block text-gray-700 font-medium mb-2">Votre message généré</label> | |
| <div id="message-output" class="message-output bg-gray-50 p-4 rounded-lg border mb-4 text-gray-700"> | |
| <p class="text-gray-400 italic">Votre message apparaîtra ici...</p> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button id="copy-btn" class="flex-1 bg-gray-200 text-gray-700 font-medium py-2 px-4 rounded-lg hover:bg-gray-300 transition flex items-center justify-center" disabled> | |
| <i class="fas fa-copy mr-2"></i> Copier | |
| </button> | |
| <button id="regenerate-btn" class="flex-1 bg-gray-200 text-gray-700 font-medium py-2 px-4 rounded-lg hover:bg-gray-300 transition flex items-center justify-center" disabled> | |
| <i class="fas fa-sync-alt mr-2"></i> Régénérer | |
| </button> | |
| </div> | |
| <div class="mt-8 bg-blue-50 p-4 rounded-lg border border-blue-100"> | |
| <h4 class="font-medium text-blue-800 mb-2">Essayez la version premium</h4> | |
| <p class="text-blue-700 text-sm mb-3">Débloquez plus d'options, de styles et enregistrez vos messages préférés.</p> | |
| <a href="#pricing" class="inline-block bg-blue-600 text-white text-sm font-medium py-2 px-4 rounded hover:bg-blue-700 transition"> | |
| Voir les offres | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Features --> | |
| <section id="features" class="bg-white py-16"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center mb-12">Comment SmartMessage.pro vous aide</h2> | |
| <div class="grid md:grid-cols-3 gap-8"> | |
| <div class="bg-gray-50 p-6 rounded-xl"> | |
| <div class="w-12 h-12 gradient-bg rounded-full flex items-center justify-center text-white mb-4"> | |
| <i class="fas fa-bolt text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold mb-2">Gain de temps</h3> | |
| <p class="text-gray-600">Générez des messages professionnels en quelques secondes au lieu de passer des heures à réfléchir à la formulation.</p> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-xl"> | |
| <div class="w-12 h-12 gradient-bg rounded-full flex items-center justify-center text-white mb-4"> | |
| <i class="fas fa-chart-line text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold mb-2">Meilleurs résultats</h3> | |
| <p class="text-gray-600">Des messages optimisés pour obtenir plus de réponses et convertir plus de prospects en clients.</p> | |
| </div> | |
| <div class="bg-gray-50 p-6 rounded-xl"> | |
| <div class="w-12 h-12 gradient-bg rounded-full flex items-center justify-center text-white mb-4"> | |
| <i class="fas fa-brain text-xl"></i> | |
| </div> | |
| <h3 class="text-xl font-bold mb-2">IA intelligente</h3> | |
| <p class="text-gray-600">Notre algorithme s'adapte à votre secteur et à votre style pour des messages ultra-personnalisés.</p> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Testimonials --> | |
| <section id="testimonials" class="bg-gray-50 py-16"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center mb-12">Ce qu'en disent nos utilisateurs</h2> | |
| <div class="grid md:grid-cols-2 gap-8 max-w-4xl mx-auto"> | |
| <div class="bg-white p-6 rounded-xl shadow-sm"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-full bg-purple-500 flex items-center justify-center text-white font-bold mr-3">M</div> | |
| <div> | |
| <h4 class="font-bold">Marie D.</h4> | |
| <p class="text-gray-500 text-sm">Coach en développement personnel</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-700">"J'ai doublé mes réponses sur LinkedIn depuis que j'utilise SmartMessage. Les prospects me disent que mes messages sont clairs et donnent envie d'en savoir plus."</p> | |
| <div class="mt-3 text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-sm"> | |
| <div class="flex items-center mb-4"> | |
| <div class="w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white font-bold mr-3">T</div> | |
| <div> | |
| <h4 class="font-bold">Thomas L.</h4> | |
| <p class="text-gray-500 text-sm">Freelance développeur</p> | |
| </div> | |
| </div> | |
| <p class="text-gray-700">"En tant que dev, écrire des emails pros n'était pas mon fort. SmartMessage m'aide à faire des propositions claires et percutantes. J'ai décroché 3 nouveaux clients ce mois-ci."</p> | |
| <div class="mt-3 text-yellow-400"> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| <i class="fas fa-star"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Pricing --> | |
| <section id="pricing" class="py-16 bg-white"> | |
| <div class="container mx-auto px-4"> | |
| <h2 class="text-3xl font-bold text-center mb-4">Choisissez votre formule</h2> | |
| <p class="text-center text-gray-600 max-w-2xl mx-auto mb-12">Essayez gratuitement, puis passez à la version premium pour débloquer tout le potentiel de SmartMessage</p> | |
| <div class="grid md:grid-cols-2 gap-8 max-w-4xl mx-auto"> | |
| <div class="border rounded-xl p-6 hover:border-blue-500 transition"> | |
| <h3 class="text-xl font-bold mb-4">Essentiel</h3> | |
| <p class="text-3xl font-bold mb-4">Gratuit</p> | |
| <ul class="space-y-3 mb-6"> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> 5 messages/mois</li> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> Styles de base</li> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> Types de messages standards</li> | |
| <li class="flex items-center text-gray-400"><i class="fas fa-times text-red-400 mr-2"></i> Pas d'historique</li> | |
| <li class="flex items-center text-gray-400"><i class="fas fa-times text-red-400 mr-2"></i> Pas de personnalisation avancée</li> | |
| </ul> | |
| <button class="w-full border-2 border-blue-500 text-blue-500 font-medium py-2 px-4 rounded-lg hover:bg-blue-50 transition"> | |
| Utiliser gratuitement | |
| </button> | |
| </div> | |
| <div class="border-2 border-blue-500 rounded-xl p-6 bg-blue-50 relative"> | |
| <div class="absolute top-0 right-0 bg-blue-500 text-white text-xs font-bold px-3 py-1 rounded-bl-lg rounded-tr-lg">POPULAIRE</div> | |
| <h3 class="text-xl font-bold mb-4">Premium</h3> | |
| <p class="text-3xl font-bold mb-4">15€<span class="text-lg font-normal text-gray-600">/mois</span></p> | |
| <p class="text-sm text-gray-600 mb-4">ou 49€ à vie (offre limitée)</p> | |
| <ul class="space-y-3 mb-6"> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> Messages illimités</li> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> Tous les styles et cibles</li> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> Personnalisation avancée</li> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> Historique et favoris</li> | |
| <li class="flex items-center"><i class="fas fa-check text-green-500 mr-2"></i> Templates personnalisables</li> | |
| </ul> | |
| <button class="w-full gradient-bg text-white font-medium py-2 px-4 rounded-lg hover:opacity-90 transition"> | |
| S'abonner maintenant | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Email Capture --> | |
| <section class="gradient-bg text-white py-16"> | |
| <div class="container mx-auto px-4 text-center"> | |
| <h2 class="text-3xl font-bold mb-4">Prêt à booster votre communication ?</h2> | |
| <p class="text-xl text-blue-100 max-w-2xl mx-auto mb-8"> | |
| Inscrivez-vous pour être informé des nouvelles fonctionnalités et recevoir des conseils exclusifs. | |
| </p> | |
| <div class="max-w-md mx-auto flex"> | |
| <input type="email" placeholder="Votre email professionnel" class="flex-1 px-4 py-3 rounded-l-lg focus:outline-none text-gray-800"> | |
| <button class="bg-blue-800 px-6 py-3 rounded-r-lg font-medium hover:bg-blue-900 transition"> | |
| <i class="fas fa-paper-plane mr-2"></i> Envoyer | |
| </button> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- Footer --> | |
| <footer class="bg-gray-900 text-gray-400 py-12"> | |
| <div class="container mx-auto px-4"> | |
| <div class="grid md:grid-cols-4 gap-8"> | |
| <div> | |
| <div class="flex items-center mb-4"> | |
| <i class="fas fa-comment-dots text-xl mr-3 text-blue-400"></i> | |
| <h3 class="text-xl font-bold text-white">SmartMessage.pro</h3> | |
| </div> | |
| <p class="mb-4">L'outil ultime pour les freelances et entrepreneurs qui veulent communiquer comme des pros.</p> | |
| <div class="flex space-x-4"> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-linkedin"></i></a> | |
| <a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-product-hunt"></i></a> | |
| </div> | |
| </div> | |
| <div> | |
| <h4 class="text-white font-medium mb-4">Produit</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="hover:text-white">Fonctionnalités</a></li> | |
| <li><a href="#" class="hover:text-white">Tarifs</a></li> | |
| <li><a href="#" class="hover:text-white">FAQ</a></li> | |
| <li><a href="#" class="hover:text-white">Statut</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-white font-medium mb-4">Ressources</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="hover:text-white">Blog</a></li> | |
| <li><a href="#" class="hover:text-white">Modèles gratuits</a></li> | |
| <li><a href="#" class="hover:text-white">Guide de communication</a></li> | |
| <li><a href="#" class="hover:text-white">Support</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-white font-medium mb-4">Légal</h4> | |
| <ul class="space-y-2"> | |
| <li><a href="#" class="hover:text-white">Mentions légales</a></li> | |
| <li><a href="#" class="hover:text-white">CGV</a></li> | |
| <li><a href="#" class="hover:text-white">Politique de confidentialité</a></li> | |
| <li><a href="#" class="hover:text-white">Conditions d'utilisation</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-800 mt-8 pt-8 text-sm text-center"> | |
| <p>© 2023 SmartMessage.pro - Tous droits réservés</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Mobile menu toggle | |
| document.getElementById('mobile-menu-btn').addEventListener('click', function() { | |
| const menu = document.getElementById('mobile-menu'); | |
| menu.classList.toggle('hidden'); | |
| }); | |
| // Sample messages for demo purposes | |
| const sampleMessages = { | |
| email: { | |
| professional: { | |
| recruiter: "Objet : Candidature pour le poste de [Poste]\n\nMadame, Monsieur,\n\nAprès avoir pris connaissance de votre offre pour le poste de [Poste], je me permets de vous soumettre ma candidature. Mon expérience de [X années] dans le domaine du [Secteur] et mes compétences en [Compétence clé] correspondent parfaitement aux exigences du poste.\n\nActuellement [Situation actuelle], j'ai notamment [Réalisation significative]. Je serais ravi(e) d'échanger avec vous pour vous présenter plus en détail mon parcours et ma motivation.\n\nDans l'attente de votre retour, je reste à votre disposition pour toute information complémentaire.\n\nCordialement,\n[Votre nom]", | |
| prospect: "Objet : Proposition de collaboration\n\nBonjour [Prénom],\n\nJe me permets de vous contacter car je pense que mes services de [Votre métier] pourraient vous être utiles pour [Problème/Enjeu du client]. J'ai déjà accompagné des entreprises similaires à la vôtre pour [Résultat concret].\n\nSeriez-vous disponible pour un échange téléphonique de 15 minutes [Proposer des créaux] afin d'évaluer ensemble comment je pourrais vous aider ?\n\nDans cette attente, je reste à votre disposition pour toute information complémentaire.\n\nBien cordialement,\n[Votre nom]" | |
| }, | |
| friendly: { | |
| recruiter: "Objet : Poste de [Poste] - On en parle ?\n\nBonjour [Prénom],\n\nJe viens de tomber sur votre offre pour le poste de [Poste] et je dois dire qu'elle a immédiatement attiré mon attention ! Ça correspond exactement à ce que je recherche et à ce que je sais faire de mieux : [Compétences clés].\n\nActuellement [Situation actuelle], j'ai notamment [Réalisation sympa]. Ça vous dit qu'on en discute autour d'un café (virtuel ou réel) ? Je suis disponible [Proposer des créneaux].\n\nAu plaisir d'échanger avec vous,\n[Votre prénom]" | |
| } | |
| }, | |
| linkedin: { | |
| professional: { | |
| prospect: "Bonjour [Prénom],\n\nJe me permets de vous contacter après avoir vu votre profil LinkedIn. Votre expérience dans [Domaine] est particulièrement intéressante, surtout votre travail sur [Détail spécifique].\n\nJe travaille actuellement avec des professionnels comme vous pour [Solution que vous proposez]. Pensez-vous qu'il pourrait y avoir des synergies entre nos activités ?\n\nJe serais ravi d'échanger avec vous à ce sujet si cela vous intéresse.\n\nBien à vous,\n[Votre prénom]" | |
| }, | |
| friendly: { | |
| prospect: "Salut [Prénom],\n\nJe tombe sur ton profil et je me dis que le monde est petit ! J'adore ce que tu fais sur [Détail spécifique]. Ça tombe bien, j'accompagne justement des pros comme toi pour [Solution en 1 phrase].\n\nTu serais chaud pour qu'on échange vite fait par téléphone ? Promis, je ne te ferai pas perdre ton temps et si ça match pas, je te le dirai cash ;)\n\nDis-moi ce que tu en penses !\n[Votre prénom]" | |
| } | |
| } | |
| }; | |
| // Generate message function | |
| document.getElementById('generate-btn').addEventListener('click', function() { | |
| const type = document.getElementById('message-type').value; | |
| const style = document.getElementById('message-style').value; | |
| const target = document.getElementById('message-target').value; | |
| const additionalInfo = document.getElementById('additional-info').value; | |
| const output = document.getElementById('message-output'); | |
| const copyBtn = document.getElementById('copy-btn'); | |
| const regenerateBtn = document.getElementById('regenerate-btn'); | |
| // Show loading state | |
| output.innerHTML = '<p class="loading-dots">Génération en cours</p>'; | |
| this.disabled = true; | |
| this.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Génération...'; | |
| // Simulate API call with timeout | |
| setTimeout(function() { | |
| // For demo, we'll use sample messages | |
| let generatedMessage; | |
| try { | |
| generatedMessage = sampleMessages[type][style][target]; | |
| if (!generatedMessage) throw new Error(); | |
| if (additionalInfo) { | |
| generatedMessage += "\n\n---\n\nInformations supplémentaires fournies :\n" + additionalInfo; | |
| } | |
| } catch (e) { | |
| generatedMessage = `**Exemple de message ${type} (${style}) pour ${target}**\n\nBonjour [Nom/Prénom],\n\nJe me permets de vous contacter concernant [Sujet]. [Personnalisation selon votre activité et leur besoin].\n\n[Corps du message adapté à votre objectif].\n\nSeriez-vous disponible pour en discuter [Proposer un moment] ?\n\nCordialement,\n[Votre nom]\n\n---\n\nEn version premium : Ce message serait entièrement personnalisé avec vos informations et optimisé pour maximiser les réponses.`; | |
| } | |
| output.textContent = generatedMessage; | |
| copyBtn.disabled = false; | |
| regenerateBtn.disabled = false; | |
| document.getElementById('generate-btn').disabled = false; | |
| document.getElementById('generate-btn').innerHTML = '<i class="fas fa-magic mr-2"></i> Générer mon message'; | |
| }, 1500); | |
| }); | |
| // Copy message function | |
| document.getElementById('copy-btn').addEventListener('click', function() { | |
| const output = document.getElementById('message-output'); | |
| const range = document.createRange(); | |
| range.selectNode(output); | |
| window.getSelection().removeAllRanges(); | |
| window.getSelection().addRange(range); | |
| document.execCommand('copy'); | |
| window.getSelection().removeAllRanges(); | |
| // Show feedback | |
| const originalText = this.innerHTML; | |
| this.innerHTML = '<i class="fas fa-check mr-2"></i> Copié !'; | |
| setTimeout(() => { | |
| this.innerHTML = originalText; | |
| }, 2000); | |
| }); | |
| // Regenerate message function | |
| document.getElementById('regenerate-btn').addEventListener('click', function() { | |
| document.getElementById('generate-btn').click(); | |
| }); | |
| // Smooth scrolling for anchor links | |
| document.querySelectorAll('a[href^="#"]').forEach(anchor => { | |
| anchor.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| document.querySelector(this.getAttribute('href')).scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); | |
| }); | |
| // Fake payment button (would be replaced with real payment processor in production) | |
| document.querySelectorAll('button:contains("S\'abonner maintenant"), button:contains("Utiliser gratuitement")').forEach(btn => { | |
| btn.addEventListener('click', function(e) { | |
| if (!this.textContent.includes("Utiliser")) { | |
| e.preventDefault(); | |
| alert("Fonctionnalité premium - En production, cela redirigerait vers un système de paiement comme Stripe. Pour cette démo, vous pouvez tester gratuitement le générateur de messages."); | |
| } | |
| }); | |
| }); | |
| </script> | |
| <p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Sapedor/smartmessage" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |