Spaces:
Running
Running
Add 1 files
Browse files122345667891011121314101112161718192021222324252627281314151630313233343536371718193940412021224344454623242526272829303148493233343552535455363758593839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596976162636465666768697071727398991001011021031041057576777879801061071081091101118485868788899091112113114115116117118119120121122123124125126127128129130131132133134939495969798135136101102103137138139140141142143144145146147105106107108109110111148149150151152153154155156157113114158116117118119120159160161162163164165166167168122123169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234126127128129130235236237238239240241242243244245246247248249250251252253254255132133134256257258259260261262136137138263264265266267268269270271272273274275276277278279142143144145146280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371148149150151152372373374375376377378379380381154155156157158382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418161162163164165166167168169170171419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505173174506176177178179507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562181182563184185186187564565566567568569570571572573574575576577578579580581582583584585586587588589590591592189190593594595596597598599600601602603604605193194195196197198606607608609203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233610611612613614615616617618619620621622623624625626235627237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279628629630281282283284631632633634635636286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375637638639640641377642643644645646647648649650651652653654<!DOCTYPE html><html lang="en"><html lang="fr"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>French to English Document Translator</title> <title>IA Enterprise Hub - Centre de ressources pour l'intégration de l'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> @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); body { font-family: 'Inter', sans-serif; background-color: #f8fafc; .gradient-bg { background: linear-gradient(135deg, #6b73ff 0%, #000dff 100%); } .dropzone { border: 2px dashed #cbd5e1; transition: all 0.3s ease; } .dropzone.active { border-color: #3b82f6; background-color: #eff6ff; } .progress-bar { transition: width 0.3s ease; .card-hover:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); } .language-flag { width: 32px; height: 32px; object-fit: cover; border-radius: 50%; border: 2px solid white; box-shadow: 0 2px 4px rgba(0,0,0,0.1); .transition-all { transition: all 0.3s ease; } .arrow-animate { animation: bounce 2s infinite; .sidebar { transition: transform 0.3s ease; } @keyframes bounce { 0%, 100% { transform: translateX(0); @media (max-width: 768px) { .sidebar { transform: translateX(-100%); position: fixed; top: 0; left: 0; height: 100vh; z-index: 50; } 50% { transform: translateX(10px); .sidebar-open { transform: translateX(0); } } .glow { box-shadow: 0 0 15px rgba(59, 130, 246, 0.5); } </style></head><body class="min-h-screen bg-gray-50"> <div class="container mx-auto px-4 py-8 max-w-4xl"><body class="bg-gray-50 font-sans"> <!-- Mobile Menu Button --> <div class="md:hidden fixed top-4 left-4 z-50"> <button id="menuBtn" class="p-2 rounded-md bg-white shadow-md"> <i class="fas fa-bars text-blue-600"></i> </button> </div>
<!-- Sidebar --> <div id="sidebar" class="sidebar w-64 bg-white shadow-lg md:shadow-none md:transform-none md:relative"> <div class="p-4 gradient-bg text-white flex items-center justify-between md:justify-center"> <h1 class="text-xl font-bold">IA Enterprise Hub</h1> <button id="closeMenuBtn" class="md:hidden"> <i class="fas fa-times"></i> </button> </div> <nav class="p-4"> <ul class="space-y-2"> <li> <a href="#dashboard" class="flex items-center p-2 rounded-md hover:bg-blue-50 text-blue-600"> <i class="fas fa-home mr-3"></i> Tableau de bord </a> </li> <li> <a href="#formations" class="flex items-center p-2 rounded-md hover:bg-blue-50 text-gray-700"> <i class="fas fa-graduation-cap mr-3"></i> Formations </a> </li> <li> <a href="#ressources" class="flex items-center p-2 rounded-md hover:bg-blue-50 text-gray-700"> <i class="fas fa-book mr-3"></i> Base documentaire </a> </li> <li> <a href="#articles" class="flex items-center p-2 rounded-md hover:bg-blue-50 text-gray-700"> <i class="fas fa-link mr-3"></i> Articles </a> </li> <li> <a href="#communaute" class="flex items-center p-2 rounded-md hover:bg-blue-50 text-gray-700"> <i class="fas fa-users mr-3"></i> Communauté </a> </li> <li> <a href="#actualites" class="flex items-center p-2 rounded-md hover:bg-blue-50 text-gray-700"> <i class="fas fa-newspaper mr-3"></i> Actualités </a> </li> <li> <a href="#parametres" class="flex items-center p-2 rounded-md hover:bg-blue-50 text-gray-700"> <i class="fas fa-cog mr-3"></i> Paramètres </a> </li> </ul> </nav> </div>
<!-- Main Content --> <div class="md:ml-64 min-h-screen"> <!-- Header --> <header class="text-center mb-12"> <h1 class="text-4xl font-bold text-gray-800 mb-2">Document Translator</h1> <p class="text-lg text-gray-600">Convert your French Word documents to English effortlessly</p> </header> <!-- Main Card --> <div class="bg-white rounded-xl shadow-lg overflow-hidden transition-all duration-300 hover:shadow-xl"> <!-- Language Display --> <div class="flex items-center justify-center py-6 bg-gradient-to-r from-blue-50 to-indigo-50"> <div class="flex items-center bg-white px-4 py-2 rounded-full shadow"> <div class="flex items-center"> <img src="https://flagcdn.com/w40/fr.png" class="language-flag" alt="French flag"> <span class="ml-2 font-medium text-gray-700">French</span> <header class="gradient-bg text-white p-4 shadow-md"> <div class="container mx-auto flex justify-between items-center"> <h1 class="text-2xl font-bold hidden md:block">IA Enterprise Hub</h1> <div class="flex items-center space-x-4"> <div class="relative"> <input type="text" placeholder="Rechercher..." class="pl-10 pr-4 py-2 rounded-full text-gray-800 focus:outline-none focus:ring-2 focus:ring-blue-300"> <i class="fas fa-search absolute left-3 top-3 text-gray-500"></i> </div> <div class="mx-4 text-blue-500 arrow-animate"> <i class="fas fa-arrow-right"></i> </div> <div class="flex items-center"> <img src="https://flagcdn.com/w40/gb.png" class="language-flag" alt="English flag"> <span class="ml-2 font-medium text-gray-700">English</span> <div class="flex items-center space-x-2"> <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-8 h-8 rounded-full"> <span class="hidden md:inline">Sarah Dupont</span> </div> </div> </div> <!-- Upload Section --> <div class="p-8"> <div id="upload-section"> <div class="dropzone rounded-lg p-12 text-center cursor-pointer mb-6" id="dropzone"> <div class="flex flex-col items-center justify-center"> <div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4"> <i class="fas fa-file-word text-blue-500 text-2xl"></i> </header>
<!-- Dashboard --> <main class="container mx-auto p-4"> <section id="dashboard" class="mb-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Tableau de bord</h2> <button class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition-all"> <i class="fas fa-plus mr-2"></i> Ajouter une ressource </button> </div>
<!-- Stats Cards --> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8"> <div class="bg-white p-6 rounded-lg shadow-md card-hover transition-all"> <div class="flex items-center"> <div class="p-3 rounded-full bg-blue-100 text-blue-600 mr-4"> <i class="fas fa-graduation-cap text-xl"></i> </div> <div> <p class="text-gray-500">Formations</p> <h3 class="text-2xl font-bold">24</h3> </div> <h3 class="text-lg font-medium text-gray-700 mb-2">Drag & drop your Word document here</h3> <p class="text-gray-500 mb-4">or click to browse files</p> <input type="file" id="file-input" class="hidden" accept=".doc,.docx,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document"> <button id="browse-btn" class="px-6 py-2 bg-blue-500 text-white rounded-lg hover:bg-blue-600 transition-colors"> Select File </button> </div> </div> <div class="text-center text-sm text-gray-500"> <p>Supported formats: .doc, .docx (Max 10MB)</p> <div class="bg-white p-6 rounded-lg shadow-md card-hover transition-all"> <div class="flex items-center"> <div class="p-3 rounded-full bg-green-100 text-green-600 mr-4"> <i class="fas fa-book text-xl"></i> </div> <div> <p class="text-gray-500">Ressources</p> <h3 class="text-2xl font-bold">156</h3> </div> </div> </div> </div> <!-- Processing Section (Hidden by default) --> <div id="processing-section" class="hidden"> <div class="text-center mb-8"> <div class="w-20 h-20 bg-blue-100 rounded-full flex items-center justify-center mx-auto mb-4"> <i class="fas fa-cog text-blue-500 text-2xl animate-spin"></i> <div class="bg-white p-6 rounded-lg shadow-md card-hover transition-all"> <div class="flex items-center"> <div class="p-3 rounded-full bg-purple-100 text-purple-600 mr-4"> <i class="fas fa-users text-xl"></i> </div> <div> <p class="text-gray-500">Membres</p> <h3 class="text-2xl font-bold">42</h3> </div> </div> <h3 class="text-lg font-medium text-gray-700 mb-2">Translating your document</h3> <p class="text-gray-500" id="status-text">Extracting text from document...</p> </div> <div class="mb-6"> <div class="flex justify-between text-sm text-gray-600 mb-1"> <span>Progress</span> <span id="progress-percent">0%</span> <div class="bg-white p-6 rounded-lg shadow-md card-hover transition-all"> <div class="flex items-center"> <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mr-4"> <i class="fas fa-newspaper text-xl"></i> </div> <div> <p class="text-gray-500">Actualités</p> <h3 class="text-2xl font-bold">17</h3> </div> </div> <div class="w-full bg-gray-200 rounded-full h-2.5"> <div id="progress-bar" class="progress-bar bg-blue-500 h-2.5 rounded-full" style="width: 0%"></div> </div> </div>
<!-- Quick Actions --> <div class="mb-8"> <h3 class="text-xl font-semibold mb-4 text-gray-700">Actions rapides</h3> <div class="grid grid-cols-2 md:grid-cols-4 gap-4"> <a href="#formations" class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center justify-center text-center card-hover transition-all"> <div class="p-3 rounded-full bg-blue-100 text-blue-600 mb-2"> <i class="fas fa-play-circle text-xl"></i> </div> <span>Démarrer une formation</span> </a> <a href="#articles" class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center justify-center text-center card-hover transition-all"> <div class="p-3 rounded-full bg-green-100 text-green-600 mb-2"> <i class="fas fa-link text-xl"></i> </div> <span>Ajouter un article</span> </a> <a href="#communaute" class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center justify-center text-center card-hover transition-all"> <div class="p-3 rounded-full bg-purple-100 text-purple-600 mb-2"> <i class="fas fa-comment-dots text-xl"></i> </div> <span>Discuter</span> </a> <a href="#ressources" class="bg-white p-4 rounded-lg shadow-sm flex flex-col items-center justify-center text-center card-hover transition-all"> <div class="p-3 rounded-full bg-yellow-100 text-yellow-600 mb-2"> <i class="fas fa-upload text-xl"></i> </div> <span>Partager un document</span> </a> </div> </div> </section>
<!-- Formations Section --> <section id="formations" class="mb-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Formations</h2> <button class="text-blue-600 hover:text-blue-800"> Voir toutes <i class="fas fa-arrow-right ml-1"></i> </button> </div>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <!-- Formation Card 1 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="h-40 bg-blue-100 flex items-center justify-center"> <i class="fas fa-robot text-6xl text-blue-600"></i> </div> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">Introduction à l'IA</h3> <span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full">Niveau 1</span> </div> <p class="text-gray-600 mb-4">Découvrez les concepts fondamentaux de l'intelligence artificielle.</p> <div class="flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-clock mr-1"></i> 2h30 </div> <button class="bg-blue-600 text-white px-3 py-1 rounded-md text-sm hover:bg-blue-700"> Commencer </button> </div> </div> </div> <div class="grid grid-cols-3 gap-4 text-center text-sm mb-6"> <div class="bg-blue-50 p-3 rounded-lg"> <div class="text-blue-500 font-medium mb-1">Pages</div> <div id="page-count" class="text-gray-700">-</div>
<!-- Formation Card 2 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="h-40 bg-purple-100 flex items-center justify-center"> <i class="fas fa-brain text-6xl text-purple-600"></i> </div> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">Machine Learning</h3> <span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full">Niveau 2</span> </div> <p class="text-gray-600 mb-4">Apprenez les bases du machine learning et ses applications métiers.</p> <div class="flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-clock mr-1"></i> 4h15 </div> <button class="bg-purple-600 text-white px-3 py-1 rounded-md text-sm hover:bg-purple-700"> Commencer </button> </div> </div> <div class="bg-blue-50 p-3 rounded-lg"> <div class="text-blue-500 font-medium mb-1">Words</div> <div id="word-count" class="text-gray-700">-</div> </div>
<!-- Formation Card 3 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="h-40 bg-green-100 flex items-center justify-center"> <i class="fas fa-chart-line text-6xl text-green-600"></i> </div> <div class="bg-blue-50 p-3 rounded-lg"> <div class="text-blue-500 font-medium mb-1">Time Left</div> <div id="time-left" class="text-gray-700">-</div> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">IA et Analyse de données</h3> <span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">Niveau 3</span> </div> <p class="text-gray-600 mb-4">Utilisez l'IA pour transformer vos données en insights actionnables.</p> <div class="flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-clock mr-1"></i> 3h00 </div> <button class="bg-green-600 text-white px-3 py-1 rounded-md text-sm hover:bg-green-700"> Commencer </button> </div> </div> </div> </div> <!-- Download Section (Hidden by default) --> <div id="download-section" class="hidden text-center"> <div class="w-20 h-20 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-4 glow"> <i class="fas fa-check text-green-500 text-2xl"></i> </section>
<!-- Base Documentaire Section --> <section id="ressources" class="mb-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Base documentaire</h2> <button class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition-all"> <i class="fas fa-plus mr-2"></i> Ajouter un document </button> </div>
<div class="bg-white rounded-lg shadow-md overflow-hidden"> <div class="overflow-x-auto"> <table class="min-w-full divide-y divide-gray-200"> <thead class="bg-gray-50"> <tr> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Titre</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Type</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Date</th> <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th> </tr> </thead> <tbody class="bg-white divide-y divide-gray-200"> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <i class="fas fa-file-pdf text-red-500 mr-3"></i> <div> <div class="font-medium">Guide d'implémentation IA</div> <div class="text-sm text-gray-500">Par Jean Martin</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800">Guide</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 15/06/2023 </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></a> <a href="#" class="text-green-600 hover:text-green-900 mr-3"><i class="fas fa-download"></i></a> <a href="#" class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></a> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <i class="fas fa-file-word text-blue-500 mr-3"></i> <div> <div class="font-medium">Cas d'usage - Service client</div> <div class="text-sm text-gray-500">Par Sophie Leroy</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-purple-100 text-purple-800">Cas d'usage</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 02/07/2023 </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></a> <a href="#" class="text-green-600 hover:text-green-900 mr-3"><i class="fas fa-download"></i></a> <a href="#" class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></a> </td> </tr> <tr> <td class="px-6 py-4 whitespace-nowrap"> <div class="flex items-center"> <i class="fas fa-file-excel text-green-500 mr-3"></i> <div> <div class="font-medium">Modèle ROI IA</div> <div class="text-sm text-gray-500">Par Finance Team</div> </div> </div> </td> <td class="px-6 py-4 whitespace-nowrap"> <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Modèle</span> </td> <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500"> 22/05/2023 </td> <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> <a href="#" class="text-blue-600 hover:text-blue-900 mr-3"><i class="fas fa-eye"></i></a> <a href="#" class="text-green-600 hover:text-green-900 mr-3"><i class="fas fa-download"></i></a> <a href="#" class="text-red-600 hover:text-red-900"><i class="fas fa-trash"></i></a> </td> </tr> </tbody> </table> </div> <h3 class="text-lg font-medium text-gray-700 mb-2">Translation Complete!</h3> <p class="text-gray-500 mb-6">Your document has been successfully translated to English.</p> <button id="download-btn" class="px-6 py-3 bg-green-500 text-white rounded-lg hover:bg-green-600 transition-colors mb-4"> <i class="fas fa-download mr-2"></i> Download English Document </div> </section>
<!-- Articles Section --> <section id="articles" class="mb-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Articles partagés</h2> <button class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition-all"> <i class="fas fa-plus mr-2"></i> Ajouter un article </button> <div class="text-sm text-gray-500"> <button id="new-translation-btn" class="text-blue-500 hover:text-blue-700"> <i class="fas fa-redo mr-1"></i> Start New Translation </button> </div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6"> <!-- Article Card 1 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">Comment l'IA transforme la relation client</h3> <span class="text-xs text-gray-500">2 jours</span> </div> <p class="text-gray-600 mb-4">Un article approfondi sur les chatbots avancés et l'analyse des sentiments pour améliorer l'expérience client.</p> <div class="flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-user mr-1"></i> Marie Lambert </div> <a href="#" class="text-blue-600 text-sm hover:underline">Lire l'article <i class="fas fa-external-link-alt ml-1"></i></a> </div> </div> </div>
<!-- Article Card 2 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">Les 10 tendances IA à surveiller en 2023</h3> <span class="text-xs text-gray-500">1 semaine</span> </div> <p class="text-gray-600 mb-4">Un panorama complet des innovations en intelligence artificielle qui vont impacter les entreprises cette année.</p> <div class="flex justify-between items-center"> <div class="flex items-center text-sm text-gray-500"> <i class="fas fa-user mr-1"></i> Tech Insights </div> <a href="#" class="text-blue-600 text-sm hover:underline">Lire l'article <i class="fas fa-external-link-alt ml-1"></i></a> </div> </div> </div> </div> </div> </div> <!-- Features Section --> <div class="mt-16"> <h2 class="text-2xl font-bold text-center text-gray-800 mb-8">Why Choose Our Translator</h2> <div class="grid md:grid-cols-3 gap-6"> <div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-shadow"> <div class="w-12 h-12 bg-blue-100 rounded-full flex items-center justify-center mb-4"> <i class="fas fa-bolt text-blue-500"></i> </section>
<!-- Communauté Section --> <section id="communaute" class="mb-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Communauté</h2> <button class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition-all"> <i class="fas fa-plus mr-2"></i> Nouvelle discussion </button> </div>
<div class="bg-white rounded-lg shadow-md overflow-hidden"> <!-- Discussion en cours --> <div class="p-6 border-b"> <h3 class="font-bold text-lg mb-4">Discussions récentes</h3> <!-- Discussion 1 --> <div class="flex mb-4 pb-4 border-b border-gray-100"> <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Profile" class="w-10 h-10 rounded-full mr-3"> <div class="flex-1"> <div class="flex justify-between items-start"> <h4 class="font-semibold">Comment intégrer l'IA dans notre CRM?</h4> <span class="text-xs text-gray-500">2h</span> </div> <p class="text-sm text-gray-600 mb-2">Nous envisageons d'améliorer notre CRM avec des fonctionnalités IA. Des retours d'expérience?</p> <div class="flex text-sm"> <span class="text-gray-500 mr-3"><i class="far fa-comment mr-1"></i> 5 réponses</span> <span class="text-gray-500"><i class="far fa-eye mr-1"></i> 12 vues</span> </div> </div> </div> <!-- Discussion 2 --> <div class="flex mb-4 pb-4 border-b border-gray-100"> <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full mr-3"> <div class="flex-1"> <div class="flex justify-between items-start"> <h4 class="font-semibold">Retour sur la formation Machine Learning</h4> <span class="text-xs text-gray-500">1j</span> </div> <p class="text-sm text-gray-600 mb-2">Je viens de terminer la formation, très enrichissant! Qui veut échanger sur les cas pratiques?</p> <div class="flex text-sm"> <span class="text-gray-500 mr-3"><i class="far fa-comment mr-1"></i> 3 réponses</span> <span class="text-gray-500"><i class="far fa-eye mr-1"></i> 8 vues</span> </div> </div> </div> <!-- Discussion 3 --> <div class="flex"> <img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Profile" class="w-10 h-10 rounded-full mr-3"> <div class="flex-1"> <div class="flex justify-between items-start"> <h4 class="font-semibold">Outils de NLP pour analyse de feedback</h4> <span class="text-xs text-gray-500">3j</span> </div> <p class="text-sm text-gray-600 mb-2">Je recherche des outils pour analyser automatiquement les retours clients. Des suggestions?</p> <div class="flex text-sm"> <span class="text-gray-500 mr-3"><i class="far fa-comment mr-1"></i> 7 réponses</span> <span class="text-gray-500"><i class="far fa-eye mr-1"></i> 15 vues</span> </div> </div> </div> </div> <!-- Nouveau message --> <div class="p-4 bg-gray-50"> <div class="flex"> <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Profile" class="w-10 h-10 rounded-full mr-3"> <div class="flex-1"> <textarea class="w-full p-3 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-300" rows="2" placeholder="Partagez vos questions ou expériences..."></textarea> <div class="flex justify-between items-center mt-2"> <div class="flex space-x-2"> <button class="text-gray-500 hover:text-gray-700"> <i class="fas fa-paperclip"></i> </button> <button class="text-gray-500 hover:text-gray-700"> <i class="fas fa-image"></i> </button> </div> <button class="bg-blue-600 text-white px-4 py-1 rounded-md text-sm hover:bg-blue-700"> Publier </button> </div> </div> </div> </div> <h3 class="font-medium text-lg mb-2 text-gray-800">Fast Translation</h3> <p class="text-gray-600">Our advanced algorithms translate documents in minutes while preserving the original formatting.</p> </div> <div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-shadow"> <div class="w-12 h-12 bg-indigo-100 rounded-full flex items-center justify-center mb-4"> <i class="fas fa-lock text-indigo-500"></i> </section>
<!-- Actualités Section --> <section id="actualites" class="mb-8"> <div class="flex justify-between items-center mb-6"> <h2 class="text-2xl font-bold text-gray-800">Actualités IA</h2> <button class="text-blue-600 hover:text-blue-800"> Voir toutes <i class="fas fa-arrow-right ml-1"></i> </button> </div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6"> <!-- News Card 1 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="h-40 bg-gray-800 flex items-center justify-center"> <i class="fas fa-newspaper text-5xl text-white"></i> </div> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">Nouvelle réglementation IA en Europe</h3> <span class="text-xs text-gray-500">15/06</span> </div> <p class="text-gray-600 mb-4">Le parlement européen a adopté de nouvelles règles encadrant l'utilisation de l'IA...</p> <a href="#" class="text-blue-600 text-sm hover:underline">Lire la suite <i class="fas fa-arrow-right ml-1"></i></a> </div> </div>
<!-- News Card 2 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="h-40 bg-gray-800 flex items-center justify-center"> <i class="fas fa-chart-bar text-5xl text-white"></i> </div> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">Croissance du marché IA en 2023</h3> <span class="text-xs text-gray-500">10/06</span> </div> <p class="text-gray-600 mb-4">Les investissements dans les solutions IA ont augmenté de 35% au premier trimestre...</p> <a href="#" class="text-blue-600 text-sm hover:underline">Lire la suite <i class="fas fa-arrow-right ml-1"></i></a> </div> </div>
<!-- News Card 3 --> <div class="bg-white rounded-lg shadow-md overflow-hidden card-hover transition-all"> <div class="h-40 bg-gray-800 flex items-center justify-center"> <i class="fas fa-lightbulb text-5xl text-white"></i> </div> <div class="p-6"> <div class="flex justify-between items-start mb-2"> <h3 class="font-bold text-lg">Innovation: GPT-4 en entreprise</h3> <span class="text-xs text-gray-500">05/06</span> </div> <p class="text-gray-600 mb-4">Comment les grandes entreprises exploitent les nouveaux modèles de langage...</p> <a href="#" class="text-blue-600 text-sm hover:underline">Lire la suite <i class="fas fa-arrow-right ml-1"></i></a> </div> </div> <h3 class="font-medium text-lg mb-2 text-gray-800">Secure Processing</h3> <p class="text-gray-600">Your documents are processed securely and never stored permanently on our servers.</p> </div> <div class="bg-white p-6 rounded-lg shadow-md hover:shadow-lg transition-shadow"> <div class="w-12 h-12 bg-green-100 rounded-full flex items-center justify-center mb-4"> <i class="fas fa-file-alt text-green-500"></i> </section> </main>
<!-- Footer --> <footer class="bg-gray-800 text-white p-6"> <div class="container mx-auto"> <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> <div> <h3 class="font-bold text-lg mb-4">IA Enterprise Hub</h3> <p class="text-gray-400">Votre centre de ressources pour l'intégration de l'intelligence artificielle en entreprise.</p> </div> <div> <h4 class="font-semibold mb-4">Ressources</h4> <ul class="space-y-2"> <li><a href="#" class="text-gray-400 hover:text-white">Formations</a></li> <li><a href="#" class="text-gray-400 hover:text-white">Documentation</a></li> <li><a href="#" class="text-gray-400 hover:text-white">Articles</a></li> <li><a href="#" class="text-gray-400 hover:text-white">Outils</a></li> </ul> </div> <div> <h4 class="font-semibold mb-4">Communauté</h4> <ul class="space-y-2"> <li><a href="#" class="text-gray-400 hover:text-white">Discussions</a></li> <li><a href="#" class="text-gray-400 hover:text-white">Cas d'usage</a></li> <li><a href="#" class="text-gray-400 hover:text-white">Événements</a></li> <li><a href="#" class="text-gray-400 hover:text-white">FAQ</a></li> </ul> </div> <h3 class="font-medium text-lg mb-2 text-gray-800">Format Preservation</h3> <p class="text-gray-600">Maintains original document structure, fonts, tables, and layout in the translated version.</p> <div> <h4 class="font-semibold mb-4">Contact</h4> <ul class="space-y-2"> <li class="flex items-center"><i class="fas fa-envelope mr-2 text-gray-400"></i> <a href="mailto:contact@ia-hub.com" class="text-gray-400 hover:text-white">contact@ia-hub.com</a></li> <li class="flex items-center"><i class="fas fa-phone mr-2 text-gray-400"></i> <span class="text-gray-400">01 23 45 67 89</span></li> <li class="flex items-center"><i class="fas fa-map-marker-alt mr-2 text-gray-400"></i> <span class="text-gray-400">Paris, France</span></li> </ul> </div> </div> <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400"> <p>© 2023 IA Enterprise Hub. Tous droits réservés.</p> </div> </div> </div> <!-- Footer --> <footer class="mt-16 text-center text-gray-500 text-sm pb-8"> <p>© 2023 Document Translator. All rights reserved.</p> <p class="mt-2">Support: support@document-translator.com</p> </footer> </div>
<script> document.addEventListener('DOMContentLoaded', function() { // DOM Elements const dropzone = document.getElementById('dropzone'); const fileInput = document.getElementById('file-input'); const browseBtn = document.getElementById('browse-btn'); const uploadSection = document.getElementById('upload-section'); const processingSection = document.getElementById('processing-section'); const downloadSection = document.getElementById('download-section'); const progressBar = document.getElementById('progress-bar'); const progressPercent = document.getElementById('progress-percent'); const statusText = document.getElementById('status-text'); const pageCount = document.getElementById('page-count'); const wordCount = document.getElementById('word-count'); const timeLeft = document.getElementById('time-left'); const downloadBtn = document.getElementById('download-btn'); const newTranslationBtn = document.getElementById('new-translation-btn'); // Event Listeners browseBtn.addEventListener('click', () => fileInput.click()); fileInput.addEventListener('change', handleFileSelect); dropzone.addEventListener('dragover', (e) => { e.preventDefault(); dropzone.classList.add('active'); }); dropzone.addEventListener('dragleave', () => { dropzone.classList.remove('active'); }); dropzone.addEventListener('drop', (e) => { // Mobile menu toggle const menuBtn = document.getElementById('menuBtn'); const closeMenuBtn = document.getElementById('closeMenuBtn'); const sidebar = document.getElementById('sidebar');
menuBtn.addEventListener('click', () => { sidebar.classList.add('sidebar-open'); });
closeMenuBtn.addEventListener('click', () => { sidebar.classList.remove('sidebar-open'); });
// Smooth scrolling for anchor links document.querySelectorAll('a[href^="#"]').forEach(anchor => { anchor.addEventListener('click', function (e) { e.preventDefault(); dropzone.classList.remove('active'); if (e.dataTransfer.files.length) { fileInput.files = e.dataTransfer.files; handleFileSelect({ target: fileInput }); } }); downloadBtn.addEventListener('click', downloadTranslatedFile); newTranslationBtn.addEventListener('click', resetForm); // Variables to store file data let selectedFile = null; let translatedFileUrl = null; // Functions function handleFileSelect(event) { const file = event.target.files[0]; // Validate file if (!file) return; const validTypes = [ 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' ]; if (!validTypes.includes(file.type) && !file.name.match(/\.(doc|docx)$/)) { alert('Please select a valid Word document (.doc or .docx)'); return; } if (file.size > 10 * 1024 * 1024) { // 10MB limit alert('File size exceeds 10MB limit'); return; } selectedFile = file; startTranslationProcess(); } function startTranslationProcess() { // Show processing section uploadSection.classList.add('hidden'); processingSection.classList.remove('hidden'); const targetId = this.getAttribute('href'); const targetElement = document.querySelector(targetId); // Simulate document analysis setTimeout(() => { statusText.textContent = 'Analyzing document structure...'; updateProgress(15); if (targetElement) { targetElement.scrollIntoView({ behavior: 'smooth', block: 'start' }); setTimeout(() => { // Simulate finding document stats const pages = Math.floor(Math.random() * 20) + 1; const words = Math.floor(Math.random() * 5000) + 500; pageCount.textContent = pages; wordCount.textContent = words.toLocaleString(); timeLeft.textContent = '~1 minute'; statusText.textContent = 'Translating content...'; updateProgress(35); // Simulate translation progress const translationInterval = setInterval(() => { const currentProgress = parseInt(progressBar.style.width) || 35; const newProgress = currentProgress + 2; if (newProgress >= 90) { clearInterval(translationInterval); finishTranslation(); } else { updateProgress(newProgress); // Update time left const secondsLeft = Math.floor((100 - newProgress) * 0.6); timeLeft.textContent = `~${secondsLeft} seconds`; } }, 800); }, 1500); }, 1000); } function finishTranslation() { statusText.textContent = 'Finalizing document...'; updateProgress(95); setTimeout(() => { updateProgress(100); setTimeout(() => { // Create a dummy download URL (in a real app, this would come from your backend) translatedFileUrl = URL.createObjectURL( new Blob(['This would be your translated document content'], { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' }) ); // Show download section processingSection.classList.add('hidden'); downloadSection.classList.remove('hidden'); }, 500); }, 1000); } function updateProgress(percent) { progressBar.style.width = `${percent}%`; progressPercent.textContent = `${percent}%`; } function downloadTranslatedFile() { if (!translatedFileUrl) return; const a = document.createElement('a'); a.href = translatedFileUrl; a.download = selectedFile.name.replace(/\.[^/.]+$/, '') + '_translated.docx'; document.body.appendChild(a); a.click(); document.body.removeChild(a); } function resetForm() { // Reset UI uploadSection.classList.remove('hidden'); processingSection.classList.add('hidden'); downloadSection.classList.add('hidden'); // Reset progress updateProgress(0); statusText.textContent = 'Extracting text from document...'; pageCount.textContent = '-'; wordCount.textContent = '-'; timeLeft.textContent = '-'; // Reset file input fileInput.value = ''; selectedFile = null; // Clean up URL if it exists if (translatedFileUrl) { URL.revokeObjectURL(translatedFileUrl); translatedFileUrl = null; // Close mobile menu if open if (window.innerWidth < 768) { sidebar.classList.remove('sidebar-open'); } } } }); });
// Simulate loading for demo purposes document.addEventListener('DOMContentLoaded', () => { setTimeout(() => { document.querySelectorAll('.card-hover').forEach(card => { card.style.transition = 'all 0.3s ease'; }); }, 500); }); </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=Mgeslin49/document-translate" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>index.html+596-322