Upload folder using huggingface_hub
Browse files
client/src/pages/WeeklyPractice.tsx
CHANGED
|
@@ -2533,7 +2533,7 @@ const WeeklyPractice: React.FC = () => {
|
|
| 2533 |
|
| 2534 |
{/* Translation Input (always show for logged-in users on weeks 3–6; keep hidden for image-only and portrait-split variants) */}
|
| 2535 |
{localStorage.getItem('token') && selectedWeek !== 2 && practice.content !== 'Image-based practice' && !(selectedWeek >= 4 && practice.imageAlignment === 'portrait-split') && (
|
| 2536 |
-
<div className="relative rounded-xl p-6 border border-
|
| 2537 |
<div className="pointer-events-none absolute inset-0 rounded-xl opacity-50 [background:linear-gradient(to_bottom,rgba(255,255,255,0.3),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.28),rgba(255,255,255,0)_28%)]" />
|
| 2538 |
<div className="pointer-events-none absolute inset-0 rounded-xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-45" />
|
| 2539 |
<div className="relative z-10 flex items-center space-x-2 mb-4">
|
|
@@ -2575,7 +2575,7 @@ const WeeklyPractice: React.FC = () => {
|
|
| 2575 |
<button
|
| 2576 |
onClick={() => handleSubmitTranslation(practice._id)}
|
| 2577 |
disabled={submitting[practice._id]}
|
| 2578 |
-
className="relative overflow-hidden inline-flex items-center justify-center gap-2 px-
|
| 2579 |
>
|
| 2580 |
<div className="pointer-events-none absolute inset-0 rounded-2xl opacity-60 [background:linear-gradient(to_bottom,rgba(255,255,255,0.35),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.35),rgba(255,255,255,0)_28%)]" />
|
| 2581 |
<div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-50" />
|
|
|
|
| 2533 |
|
| 2534 |
{/* Translation Input (always show for logged-in users on weeks 3–6; keep hidden for image-only and portrait-split variants) */}
|
| 2535 |
{localStorage.getItem('token') && selectedWeek !== 2 && practice.content !== 'Image-based practice' && !(selectedWeek >= 4 && practice.imageAlignment === 'portrait-split') && (
|
| 2536 |
+
<div className="relative rounded-xl p-6 border border-ui-border bg-white/10 backdrop-blur-md ring-1 ring-inset ring-white/30 shadow-[inset_0_0.5px_0_rgba(255,255,255,0.5),inset_0_-1px_1.5px_rgba(0,0,0,0.12)]">
|
| 2537 |
<div className="pointer-events-none absolute inset-0 rounded-xl opacity-50 [background:linear-gradient(to_bottom,rgba(255,255,255,0.3),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.28),rgba(255,255,255,0)_28%)]" />
|
| 2538 |
<div className="pointer-events-none absolute inset-0 rounded-xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-45" />
|
| 2539 |
<div className="relative z-10 flex items-center space-x-2 mb-4">
|
|
|
|
| 2575 |
<button
|
| 2576 |
onClick={() => handleSubmitTranslation(practice._id)}
|
| 2577 |
disabled={submitting[practice._id]}
|
| 2578 |
+
className="relative overflow-hidden inline-flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium rounded-2xl text-white ring-1 ring-inset ring-white/50 backdrop-blur-md backdrop-brightness-110 backdrop-saturate-150 bg-pink-600/70 disabled:bg-gray-400 active:translate-y-0.5 active:shadow-[inset_0_0.5px_0_rgba(255,255,255,0.6),inset_0_-1px_0_rgba(0,0,0,0.12)] transition-all duration-200"
|
| 2579 |
>
|
| 2580 |
<div className="pointer-events-none absolute inset-0 rounded-2xl opacity-60 [background:linear-gradient(to_bottom,rgba(255,255,255,0.35),rgba(255,255,255,0)_28%),linear-gradient(to_right,rgba(255,255,255,0.35),rgba(255,255,255,0)_28%)]" />
|
| 2581 |
<div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-50" />
|