Upload folder using huggingface_hub
Browse files
client/src/pages/TutorialTasks.tsx
CHANGED
|
@@ -1561,8 +1561,8 @@ const TutorialTasks: React.FC = () => {
|
|
| 1561 |
<div className="mb-6">
|
| 1562 |
<div className="flex items-center justify-between mb-4">
|
| 1563 |
<div className="flex items-center space-x-3">
|
| 1564 |
-
<div className="bg-
|
| 1565 |
-
<DocumentTextIcon className="h-5 w-5 text-
|
| 1566 |
</div>
|
| 1567 |
<div>
|
| 1568 |
<h3 className="text-lg font-semibold text-gray-900 flex items-center">Source Text #{tutorialTasks.indexOf(task) + 1}
|
|
@@ -1747,7 +1747,7 @@ const TutorialTasks: React.FC = () => {
|
|
| 1747 |
}
|
| 1748 |
}
|
| 1749 |
}}
|
| 1750 |
-
className="text-
|
| 1751 |
>{renderFormatted(task.content)}</div>
|
| 1752 |
</div>
|
| 1753 |
{localStorage.getItem('token') && (
|
|
@@ -1826,7 +1826,7 @@ const TutorialTasks: React.FC = () => {
|
|
| 1826 |
)}
|
| 1827 |
</div>
|
| 1828 |
<div className="w-full md:w-1/2">
|
| 1829 |
-
<div className="text-
|
| 1830 |
</div>
|
| 1831 |
</div>
|
| 1832 |
)
|
|
@@ -1977,7 +1977,7 @@ const TutorialTasks: React.FC = () => {
|
|
| 1977 |
<button
|
| 1978 |
onClick={() => handleSubmitTranslation(task._id)}
|
| 1979 |
disabled={submitting[task._id]}
|
| 1980 |
-
className="bg-
|
| 1981 |
>
|
| 1982 |
{submitting[task._id] ? (
|
| 1983 |
<>
|
|
|
|
| 1561 |
<div className="mb-6">
|
| 1562 |
<div className="flex items-center justify-between mb-4">
|
| 1563 |
<div className="flex items-center space-x-3">
|
| 1564 |
+
<div className="bg-blue-100 rounded-full p-2">
|
| 1565 |
+
<DocumentTextIcon className="h-5 w-5 text-ui-neonBlue" />
|
| 1566 |
</div>
|
| 1567 |
<div>
|
| 1568 |
<h3 className="text-lg font-semibold text-gray-900 flex items-center">Source Text #{tutorialTasks.indexOf(task) + 1}
|
|
|
|
| 1747 |
}
|
| 1748 |
}
|
| 1749 |
}}
|
| 1750 |
+
className="text-blue-800 leading-relaxed text-lg font-source-text whitespace-pre-wrap"
|
| 1751 |
>{renderFormatted(task.content)}</div>
|
| 1752 |
</div>
|
| 1753 |
{localStorage.getItem('token') && (
|
|
|
|
| 1826 |
)}
|
| 1827 |
</div>
|
| 1828 |
<div className="w-full md:w-1/2">
|
| 1829 |
+
<div className="text-blue-800 leading-relaxed text-lg font-source-text whitespace-pre-wrap">{renderFormatted(task.content)}</div>
|
| 1830 |
</div>
|
| 1831 |
</div>
|
| 1832 |
)
|
|
|
|
| 1977 |
<button
|
| 1978 |
onClick={() => handleSubmitTranslation(task._id)}
|
| 1979 |
disabled={submitting[task._id]}
|
| 1980 |
+
className="bg-ui-neonBlue hover:bg-blue-600 disabled:bg-gray-400 text-white px-6 py-3 rounded-lg font-medium flex items-center justify-center transition-all duration-200"
|
| 1981 |
>
|
| 1982 |
{submitting[task._id] ? (
|
| 1983 |
<>
|
client/src/pages/WeeklyPractice.tsx
CHANGED
|
@@ -2245,8 +2245,8 @@ const WeeklyPractice: React.FC = () => {
|
|
| 2245 |
<div className="mb-6">
|
| 2246 |
<div className="flex items-center justify-between mb-4">
|
| 2247 |
<div className="flex items-center space-x-3">
|
| 2248 |
-
<div className="bg-
|
| 2249 |
-
<DocumentTextIcon className="h-5 w-5 text-
|
| 2250 |
</div>
|
| 2251 |
<div>
|
| 2252 |
<h3 className="text-lg font-semibold text-gray-900">Source Text #{weeklyPractice.indexOf(practice) + 1}</h3>
|
|
@@ -2367,9 +2367,9 @@ const WeeklyPractice: React.FC = () => {
|
|
| 2367 |
</div>
|
| 2368 |
</div>
|
| 2369 |
<div className="w-full">
|
| 2370 |
-
<div className="bg-
|
| 2371 |
-
<h5 className="text-
|
| 2372 |
-
<div className="text-
|
| 2373 |
</div>
|
| 2374 |
{localStorage.getItem('token') && (
|
| 2375 |
<div className="bg-white rounded-lg p-4 border border-purple-200">
|
|
@@ -2414,7 +2414,7 @@ const WeeklyPractice: React.FC = () => {
|
|
| 2414 |
)}
|
| 2415 |
</div>
|
| 2416 |
<div className="w-full md:w-1/2">
|
| 2417 |
-
<p className="text-
|
| 2418 |
</div>
|
| 2419 |
</div>
|
| 2420 |
)
|
|
|
|
| 2245 |
<div className="mb-6">
|
| 2246 |
<div className="flex items-center justify-between mb-4">
|
| 2247 |
<div className="flex items-center space-x-3">
|
| 2248 |
+
<div className="bg-pink-100 rounded-full p-2">
|
| 2249 |
+
<DocumentTextIcon className="h-5 w-5 text-pink-600" />
|
| 2250 |
</div>
|
| 2251 |
<div>
|
| 2252 |
<h3 className="text-lg font-semibold text-gray-900">Source Text #{weeklyPractice.indexOf(practice) + 1}</h3>
|
|
|
|
| 2367 |
</div>
|
| 2368 |
</div>
|
| 2369 |
<div className="w-full">
|
| 2370 |
+
<div className="bg-pink-50 rounded-lg p-4 mb-4 border border-pink-200">
|
| 2371 |
+
<h5 className="text-pink-900 font-semibold mb-2">Source Text (from image)</h5>
|
| 2372 |
+
<div className="text-pink-800 leading-relaxed text-lg font-source-text whitespace-pre-wrap">{practice.content}</div>
|
| 2373 |
</div>
|
| 2374 |
{localStorage.getItem('token') && (
|
| 2375 |
<div className="bg-white rounded-lg p-4 border border-purple-200">
|
|
|
|
| 2414 |
)}
|
| 2415 |
</div>
|
| 2416 |
<div className="w-full md:w-1/2">
|
| 2417 |
+
<p className="text-pink-800 leading-relaxed text-lg font-source-text whitespace-pre-wrap">{practice.content}</p>
|
| 2418 |
</div>
|
| 2419 |
</div>
|
| 2420 |
)
|