Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +7 -14
templates/index.html
CHANGED
@@ -31,12 +31,6 @@
|
|
31 |
background-color: white;
|
32 |
}
|
33 |
|
34 |
-
.card {
|
35 |
-
background: white;
|
36 |
-
border: 1px solid #e5e7eb;
|
37 |
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
38 |
-
}
|
39 |
-
|
40 |
.uploadArea {
|
41 |
background: #f3f4f6;
|
42 |
border: 2px dashed #d1d5db;
|
@@ -94,7 +88,6 @@
|
|
94 |
max-width: 300px;
|
95 |
max-height: 300px;
|
96 |
border-radius: 8px;
|
97 |
-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
98 |
}
|
99 |
|
100 |
#thoughtsContent, #answerContent {
|
@@ -110,8 +103,8 @@
|
|
110 |
</style>
|
111 |
</head>
|
112 |
<body class="p-4">
|
113 |
-
<div class="
|
114 |
-
<div class="
|
115 |
<div class="text-center mb-12">
|
116 |
<h1 class="text-4xl font-bold text-blue-600 mb-4">Mariam M-0</h1>
|
117 |
<p class="text-gray-600 text-lg">Solution Mathématique Intelligente</p>
|
@@ -119,7 +112,7 @@
|
|
119 |
|
120 |
<form id="problemForm" class="space-y-8" enctype="multipart/form-data">
|
121 |
<div class="relative">
|
122 |
-
<div class="uploadArea
|
123 |
<input type="file" id="imageInput" name="image" accept="image/*" class="absolute inset-0 w-full h-full opacity-0 cursor-pointer">
|
124 |
<div class="space-y-4">
|
125 |
<div class="w-20 h-20 mx-auto border-2 border-blue-400 rounded-full flex items-center justify-center">
|
@@ -136,7 +129,7 @@
|
|
136 |
</div>
|
137 |
</div>
|
138 |
|
139 |
-
<button type="submit" class="blue-button w-full py-4
|
140 |
Résoudre le problème
|
141 |
</button>
|
142 |
</form>
|
@@ -149,7 +142,7 @@
|
|
149 |
</div>
|
150 |
|
151 |
<div id="solution" class="hidden mt-12 space-y-8">
|
152 |
-
<div class="
|
153 |
<button id="thoughtsToggle" class="w-full flex justify-between items-center text-left text-lg font-medium text-gray-700 hover:text-blue-600 transition-colors">
|
154 |
<div class="flex items-center">
|
155 |
<span>Processus de Réflexion</span>
|
@@ -164,7 +157,7 @@
|
|
164 |
</div>
|
165 |
</div>
|
166 |
|
167 |
-
<div class="
|
168 |
<h3 class="text-2xl font-bold text-gray-800 mb-6">Solution</h3>
|
169 |
<div id="answerContent" class="prose max-w-none text-gray-700"></div>
|
170 |
</div>
|
@@ -172,7 +165,7 @@
|
|
172 |
</div>
|
173 |
</div>
|
174 |
|
175 |
-
|
176 |
document.addEventListener('DOMContentLoaded', () => {
|
177 |
const form = document.getElementById('problemForm');
|
178 |
const imageInput = document.getElementById('imageInput');
|
|
|
31 |
background-color: white;
|
32 |
}
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
.uploadArea {
|
35 |
background: #f3f4f6;
|
36 |
border: 2px dashed #d1d5db;
|
|
|
88 |
max-width: 300px;
|
89 |
max-height: 300px;
|
90 |
border-radius: 8px;
|
|
|
91 |
}
|
92 |
|
93 |
#thoughtsContent, #answerContent {
|
|
|
103 |
</style>
|
104 |
</head>
|
105 |
<body class="p-4">
|
106 |
+
<div class="w-full">
|
107 |
+
<div class="p-8">
|
108 |
<div class="text-center mb-12">
|
109 |
<h1 class="text-4xl font-bold text-blue-600 mb-4">Mariam M-0</h1>
|
110 |
<p class="text-gray-600 text-lg">Solution Mathématique Intelligente</p>
|
|
|
112 |
|
113 |
<form id="problemForm" class="space-y-8" enctype="multipart/form-data">
|
114 |
<div class="relative">
|
115 |
+
<div class="uploadArea p-12 text-center transition-all duration-300 cursor-pointer">
|
116 |
<input type="file" id="imageInput" name="image" accept="image/*" class="absolute inset-0 w-full h-full opacity-0 cursor-pointer">
|
117 |
<div class="space-y-4">
|
118 |
<div class="w-20 h-20 mx-auto border-2 border-blue-400 rounded-full flex items-center justify-center">
|
|
|
129 |
</div>
|
130 |
</div>
|
131 |
|
132 |
+
<button type="submit" class="blue-button w-full py-4 text-white font-medium text-lg transition-all duration-300">
|
133 |
Résoudre le problème
|
134 |
</button>
|
135 |
</form>
|
|
|
142 |
</div>
|
143 |
|
144 |
<div id="solution" class="hidden mt-12 space-y-8">
|
145 |
+
<div class="border-t pt-6">
|
146 |
<button id="thoughtsToggle" class="w-full flex justify-between items-center text-left text-lg font-medium text-gray-700 hover:text-blue-600 transition-colors">
|
147 |
<div class="flex items-center">
|
148 |
<span>Processus de Réflexion</span>
|
|
|
157 |
</div>
|
158 |
</div>
|
159 |
|
160 |
+
<div class="border-t pt-8">
|
161 |
<h3 class="text-2xl font-bold text-gray-800 mb-6">Solution</h3>
|
162 |
<div id="answerContent" class="prose max-w-none text-gray-700"></div>
|
163 |
</div>
|
|
|
165 |
</div>
|
166 |
</div>
|
167 |
|
168 |
+
<script>
|
169 |
document.addEventListener('DOMContentLoaded', () => {
|
170 |
const form = document.getElementById('problemForm');
|
171 |
const imageInput = document.getElementById('imageInput');
|