Spaces:
Running
Running
<html lang="fr"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Mariam M-0 | Solution Mathématique</title> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet"> | |
<script> | |
window.MathJax = { | |
tex: { | |
inlineMath: [['$', '$'], ['\\(', '\\)']], | |
displayMath: [['$$', '$$'], ['\\[', '\\]']], | |
processEscapes: true, | |
packages: ['base', 'ams', 'noerrors', 'noundefined'] | |
}, | |
options: { | |
ignoreHtmlClass: 'tex2jax_ignore', | |
processHtmlClass: 'tex2jax_process' | |
}, | |
svg: { | |
fontCache: 'global' | |
} | |
}; | |
</script> | |
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script> | |
<style> | |
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap'); | |
body { | |
font-family: 'Space Grotesk', sans-serif; | |
background: #ffffff; | |
min-height: 100vh; | |
color: #1e3a8a; | |
} | |
.container { | |
max-width: 90vw ; | |
width: 90vw; | |
margin: 0 auto; | |
} | |
.upload-area { | |
border: 2px dashed #3b82f6; | |
transition: all 0.3s ease; | |
background: #ffffff; | |
} | |
.upload-area:hover { | |
border-color: #2563eb; | |
background: #f8fafc; | |
} | |
.action-button { | |
background: #2563eb; | |
transition: all 0.3s ease; | |
color: white; | |
} | |
.action-button:hover { | |
background: #1d4ed8; | |
transform: translateY(-2px); | |
} | |
.loader { | |
width: 48px; | |
height: 48px; | |
border: 3px solid #3b82f6; | |
border-bottom-color: transparent; | |
border-radius: 50%; | |
display: inline-block; | |
box-sizing: border-box; | |
animation: rotation 1s linear infinite; | |
} | |
@keyframes rotation { | |
0% { transform: rotate(0deg); } | |
100% { transform: rotate(360deg); } | |
} | |
.preview-container { | |
margin-top: 1rem; | |
padding: 0 1rem; | |
} | |
.preview-image { | |
max-width: 100%; | |
max-height: 60vh; | |
object-fit: contain; | |
border-radius: 8px; | |
border: 2px solid #bfdbfe; | |
} | |
#thoughtsContent, #answerContent { | |
max-height: 80vh; | |
overflow-y: auto; | |
padding: 1rem; | |
} | |
.thought-box { | |
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); | |
max-height: 0; | |
overflow: hidden; | |
background: #ffffff; | |
border: 1px solid #e5e7eb; | |
border-radius: 0.5rem; | |
} | |
.thought-box.open { | |
max-height: 1000px; | |
margin-top: 1rem; | |
} | |
.solution-section { | |
border: 1px solid #e5e7eb; | |
border-radius: 0.5rem; | |
background: #ffffff; | |
margin-top: 1rem; | |
width: 100%; | |
} | |
@media (min-width: 1280px) { | |
.container { | |
max-width: 80vw ; | |
} | |
.text-content { | |
font-size: 1.125rem; | |
line-height: 1.75; | |
} | |
} | |
@media (min-width: 1536px) { | |
.container { | |
max-width: 70vw ; | |
} | |
} | |
@media (max-width: 640px) { | |
.container { | |
padding: 0.5rem; | |
} | |
.text-lg { | |
font-size: 1rem; | |
} | |
} | |
</style> | |
</head> | |
<body class="p-2 sm:p-4 md:p-8"> | |
<div class="container"> | |
<div class="text-center mb-6 sm:mb-12"> | |
<h1 class="text-3xl sm:text-4xl md:text-5xl font-bold text-blue-900 mb-2 sm:mb-4">Mariam M-0</h1> | |
<p class="text-blue-600 text-base sm:text-lg">Solution Mathématique Intelligente</p> | |
</div> | |
<form id="problemForm" class="space-y-4 sm:space-y-8" enctype="multipart/form-data"> | |
<div class="relative"> | |
<div class="upload-area rounded-xl p-6 sm:p-12 text-center"> | |
<input type="file" id="imageInput" name="image" accept="image/*" class="absolute inset-0 w-full h-full opacity-0 cursor-pointer"> | |
<div class="space-y-2 sm:space-y-4"> | |
<div class="w-16 h-16 sm:w-20 sm:h-20 mx-auto border-2 border-blue-400 rounded-full flex items-center justify-center"> | |
<svg class="w-8 h-8 sm:w-10 sm:h-10 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z" /> | |
</svg> | |
</div> | |
<div class="text-blue-600 text-base sm:text-lg font-medium">Déposez votre image ici</div> | |
<div class="text-blue-400 text-xs sm:text-sm">ou cliquez pour sélectionner</div> | |
</div> | |
</div> | |
<div id="imagePreview" class="preview-container hidden"> | |
<img id="previewImage" src="#" alt="Prévisualisation de l'image" class="preview-image"> | |
</div> | |
</div> | |
<button type="submit" class="action-button w-full py-3 sm:py-4 rounded-lg sm:rounded-xl font-medium text-base sm:text-lg"> | |
Résoudre le problème | |
</button> | |
</form> | |
<div id="loader" class="hidden mt-8 sm:mt-12"> | |
<div class="flex flex-col items-center justify-center space-y-4"> | |
<span class="loader"></span> | |
<div class="text-blue-600 text-base sm:text-lg">Analyse en cours...</div> | |
</div> | |
</div> | |
<div id="solution" class="hidden mt-8 sm:mt-12 space-y-4 sm:space-y-8"> | |
<div class="solution-section p-4 sm:p-6"> | |
<button id="thoughtsToggle" class="w-full flex justify-between items-center text-left text-base sm:text-lg font-medium text-blue-900 hover:text-blue-600 transition-colors"> | |
<div class="flex items-center"> | |
<span>Processus de Réflexion</span> | |
<span id="timestamp" class="ml-2 text-blue-500 text-sm"></span> | |
</div> | |
<svg class="w-5 h-5 sm:w-6 sm:h-6 transform transition-transform duration-300" fill="none" stroke="currentColor" viewBox="0 0 24 24"> | |
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/> | |
</svg> | |
</button> | |
<div id="thoughtsBox" class="thought-box"> | |
<div id="thoughtsContent" class="prose max-w-none"></div> | |
</div> | |
</div> | |
<div class="solution-section p-4 sm:p-8"> | |
<h3 class="text-xl sm:text-2xl font-bold text-blue-900 mb-4 sm:mb-6">Solution</h3> | |
<div id="answerContent" class="prose max-w-none"></div> | |
</div> | |
</div> | |
</div> | |
<script> | |
</script> | |
</body> | |
</html> |