linguabot commited on
Commit
e67efa2
·
verified ·
1 Parent(s): 2430630

Upload folder using huggingface_hub

Browse files
client/src/components/Layout.tsx CHANGED
@@ -168,8 +168,8 @@ const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
168
  {/* Shell: Sidebar + Content */}
169
  <div className="flex">
170
  {/* Sidebar */}
171
- <aside className="hidden md:flex md:flex-col w-60 min-h-[calc(100vh-56px)] border-r border-ui-border bg-ui-panel">
172
- <nav className="p-4 space-y-2 flex-1">
173
  {navigation.map((item) => {
174
  const isActive = location.pathname === item.href;
175
  return (
@@ -177,7 +177,7 @@ const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
177
  key={item.name}
178
  to={item.href}
179
  className={`flex items-center px-3 py-2 rounded-lg text-[0.95rem] font-medium transition-colors ${
180
- isActive ? 'bg-ui-bg text-ui-text shadow-[0_0_6px_rgba(20,163,255,0.35)]' : 'text-ui-text/80 hover:bg-ui-panel/60'
181
  }`}
182
  >
183
  <item.icon className="h-5 w-5 mr-3 text-ui-neonCyan" />
@@ -186,7 +186,7 @@ const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
186
  );
187
  })}
188
  </nav>
189
- <div className="p-3 border-t border-ui-border">
190
  {user ? (
191
  <button onClick={handleLogout} className="w-full flex items-center justify-start px-3 py-2 rounded-md text-sm font-medium text-ui-text/80 hover:bg-ui-panel/60">
192
  <PowerIcon className="h-4 w-4 mr-2" />
@@ -216,7 +216,7 @@ const Layout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
216
  </div>
217
  </div>
218
  )}
219
- <HitokotoBar />
220
  </div>
221
  );
222
  };
 
168
  {/* Shell: Sidebar + Content */}
169
  <div className="flex">
170
  {/* Sidebar */}
171
+ <aside className="hidden md:flex md:flex-col w-60 sticky top-14 h-[calc(100vh-56px)] border-r border-ui-border bg-ui-panel self-start">
172
+ <nav className="p-4 space-y-2 flex-1 overflow-auto">
173
  {navigation.map((item) => {
174
  const isActive = location.pathname === item.href;
175
  return (
 
177
  key={item.name}
178
  to={item.href}
179
  className={`flex items-center px-3 py-2 rounded-lg text-[0.95rem] font-medium transition-colors ${
180
+ isActive ? 'bg-transparent text-ui-text ring-1 ring-ui-neonBlue/35 shadow-[0_0_10px_rgba(14,165,233,0.45)]' : 'text-ui-text/80 hover:ring-1 hover:ring-ui-neonBlue/20'
181
  }`}
182
  >
183
  <item.icon className="h-5 w-5 mr-3 text-ui-neonCyan" />
 
186
  );
187
  })}
188
  </nav>
189
+ <div className="p-3 border-t border-ui-border mt-auto">
190
  {user ? (
191
  <button onClick={handleLogout} className="w-full flex items-center justify-start px-3 py-2 rounded-md text-sm font-medium text-ui-text/80 hover:bg-ui-panel/60">
192
  <PowerIcon className="h-4 w-4 mr-2" />
 
216
  </div>
217
  </div>
218
  )}
219
+ {/* <HitokotoBar /> */}
220
  </div>
221
  );
222
  };
client/src/pages/Dashboard.tsx CHANGED
@@ -167,7 +167,7 @@ const Dashboard: React.FC = () => {
167
  </p>
168
  <Link
169
  to="/manage"
170
- className="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700"
171
  >
172
  Go to Manage
173
  </Link>
 
167
  </p>
168
  <Link
169
  to="/manage"
170
+ className="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md text-white bg-ui-neonBlue hover:bg-ui-neonBlue/90"
171
  >
172
  Go to Manage
173
  </Link>
client/src/pages/TutorialTasks.tsx CHANGED
@@ -1522,7 +1522,7 @@ const TutorialTasks: React.FC = () => {
1522
  <div className="flex space-x-3">
1523
  <button
1524
  onClick={startAddingTask}
1525
- className="bg-indigo-600 hover:bg-indigo-700 text-white px-6 py-3 rounded-lg font-medium flex items-center space-x-2 shadow-sm"
1526
  >
1527
  <PlusIcon className="h-5 w-5" />
1528
  <span className="font-medium">Add Task</span>
@@ -1530,7 +1530,7 @@ const TutorialTasks: React.FC = () => {
1530
  {selectedWeek >= 3 && (
1531
  <button
1532
  onClick={startAddingImage}
1533
- className="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium flex items-center space-x-2 shadow-sm"
1534
  >
1535
  <PlusIcon className="h-5 w-5" />
1536
  <span className="font-medium">Add Image</span>
@@ -1780,7 +1780,7 @@ const TutorialTasks: React.FC = () => {
1780
  placeholder="Enter your group's translation here..."
1781
  />
1782
  <div className="flex justify-end mt-2">
1783
- <button onClick={() => handleSubmitTranslation(task._id)} disabled={submitting[task._id]} className="bg-indigo-500 hover:bg-indigo-600 disabled:bg-gray-400 text-white px-4 py-2 rounded-lg text-sm">{submitting[task._id] ? 'Submitting...' : 'Submit Translation'}</button>
1784
  </div>
1785
  </div>
1786
  )}
 
1522
  <div className="flex space-x-3">
1523
  <button
1524
  onClick={startAddingTask}
1525
+ className="btn-primary px-6 py-3 flex items-center space-x-2 shadow-sm"
1526
  >
1527
  <PlusIcon className="h-5 w-5" />
1528
  <span className="font-medium">Add Task</span>
 
1530
  {selectedWeek >= 3 && (
1531
  <button
1532
  onClick={startAddingImage}
1533
+ className="btn-primary px-6 py-3 flex items-center space-x-2 shadow-sm"
1534
  >
1535
  <PlusIcon className="h-5 w-5" />
1536
  <span className="font-medium">Add Image</span>
 
1780
  placeholder="Enter your group's translation here..."
1781
  />
1782
  <div className="flex justify-end mt-2">
1783
+ <button onClick={() => handleSubmitTranslation(task._id)} disabled={submitting[task._id]} className="btn-primary disabled:bg-gray-400 text-white px-4 py-2 rounded-lg text-sm">{submitting[task._id] ? 'Submitting...' : 'Submit Translation'}</button>
1784
  </div>
1785
  </div>
1786
  )}