linguabot commited on
Commit
9c77521
·
verified ·
1 Parent(s): ed58cbe

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. client/src/components/Refinity.tsx +10 -2
client/src/components/Refinity.tsx CHANGED
@@ -1556,7 +1556,8 @@ const PreviewPane: React.FC<{ version: Version | null; onBack: ()=>void; onEdit:
1556
  };
1557
  return (
1558
  <div>
1559
- <div className="relative rounded-xl ring-1 ring-gray-200 bg-stone-50 shadow-sm">
 
1560
  <div className="relative rounded-xl p-6">
1561
  {!showDiff && (
1562
  <div className="relative whitespace-pre-wrap text-gray-900 min-h-[220px]">{version.content}</div>
@@ -1567,7 +1568,14 @@ const PreviewPane: React.FC<{ version: Version | null; onBack: ()=>void; onEdit:
1567
  </div>
1568
  </div>
1569
  <div className="mt-4 flex gap-3">
1570
- <button onClick={onEdit} 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-indigo-600/70 active:translate-y-0.5 transition-all duration-200">Revise</button>
 
 
 
 
 
 
 
1571
  <button onClick={onBack} className="relative overflow-hidden inline-flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium rounded-2xl text-black ring-1 ring-inset ring-white/50 backdrop-blur-md bg-white/30 active:translate-y-0.5 transition-all duration-200">Back</button>
1572
  {/* Compare removed in revision mode per request */}
1573
  </div>
 
1556
  };
1557
  return (
1558
  <div>
1559
+ <div className="relative rounded-xl ring-1 ring-gray-200 shadow-sm overflow-hidden">
1560
+ <div className="absolute inset-0 rounded-xl bg-gradient-to-br from-orange-50 via-amber-50 to-white" />
1561
  <div className="relative rounded-xl p-6">
1562
  {!showDiff && (
1563
  <div className="relative whitespace-pre-wrap text-gray-900 min-h-[220px]">{version.content}</div>
 
1568
  </div>
1569
  </div>
1570
  <div className="mt-4 flex gap-3">
1571
+ <button
1572
+ onClick={onEdit}
1573
+ 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-orange-600/70 hover:bg-orange-700 active:translate-y-0.5 transition-all duration-200"
1574
+ >
1575
+ <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%)]" />
1576
+ <div className="pointer-events-none absolute inset-0 rounded-2xl bg-gradient-to-tr from-white/30 via-white/10 to-transparent opacity-50" />
1577
+ <span className="relative z-10">Revise</span>
1578
+ </button>
1579
  <button onClick={onBack} className="relative overflow-hidden inline-flex items-center justify-center gap-2 px-4 py-2 text-sm font-medium rounded-2xl text-black ring-1 ring-inset ring-white/50 backdrop-blur-md bg-white/30 active:translate-y-0.5 transition-all duration-200">Back</button>
1580
  {/* Compare removed in revision mode per request */}
1581
  </div>