page.tsx 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import SettingsCrud from "../components/SettingsCrud";
  2. import SettingsList from "../components/SettingsList";
  3. import WatcherControls from "../components/WatcherControls";
  4. export default function SettingsPage() {
  5. return (
  6. <div className="max-w-7xl mx-auto px-6 py-8 lg:px-8">
  7. <div className="sticky top-16 z-10 bg-white/80 dark:bg-gray-950/80 backdrop-blur-md border-b border-gray-200/50 dark:border-gray-800/50 pb-6 mb-8 flex items-center justify-between rounded-t-xl">
  8. <div className="flex items-center gap-3">
  9. <div className="flex-shrink-0">
  10. <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-gradient-to-br from-indigo-500 to-purple-600 shadow-sm">
  11. <svg
  12. className="h-6 w-6 text-white"
  13. fill="none"
  14. viewBox="0 0 24 24"
  15. stroke="currentColor"
  16. >
  17. <path
  18. strokeLinecap="round"
  19. strokeLinejoin="round"
  20. strokeWidth={2}
  21. d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"
  22. />
  23. <path
  24. strokeLinecap="round"
  25. strokeLinejoin="round"
  26. strokeWidth={2}
  27. d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"
  28. />
  29. </svg>
  30. </div>
  31. </div>
  32. <div>
  33. <h2 className="text-lg font-semibold text-gray-900 dark:text-white">
  34. Application Settings
  35. </h2>
  36. <p className="text-sm text-gray-600 dark:text-gray-400">
  37. Configure watchers, queues, and dataset settings for the
  38. application
  39. </p>
  40. </div>
  41. </div>
  42. <div className="flex items-center gap-3">
  43. <WatcherControls />
  44. <SettingsCrud />
  45. </div>
  46. </div>
  47. <div className="bg-white dark:bg-gray-900 rounded-xl shadow-sm ring-1 ring-gray-200 dark:ring-gray-800 overflow-hidden">
  48. <SettingsList />
  49. </div>
  50. </div>
  51. );
  52. }