From 879031508bedfcad842c4aafb9eeb4f0d6ce4c58 Mon Sep 17 00:00:00 2001 From: PEDZEO Date: Wed, 21 Jan 2026 01:53:31 +0300 Subject: [PATCH] Enhance ColorPicker and AdminSettings components with improved styling and theme presets - Updated ColorPicker component styles for better visual consistency and usability. - Adjusted button sizes and input fields for a more cohesive design. - Introduced theme presets in AdminSettings for quick color scheme selection, enhancing user experience. - Added new color schemes with predefined colors for easier theme management. --- src/components/ColorPicker.tsx | 14 +-- src/pages/AdminSettings.tsx | 184 ++++++++++++++++++++++++++++++++- 2 files changed, 190 insertions(+), 8 deletions(-) diff --git a/src/components/ColorPicker.tsx b/src/components/ColorPicker.tsx index 2f015ea..585bc7f 100644 --- a/src/components/ColorPicker.tsx +++ b/src/components/ColorPicker.tsx @@ -341,18 +341,18 @@ export function ColorPicker({ value, onChange, label, description, disabled }: C ) : null return ( -
- - {description &&

{description}

} +
+ + {description &&

{description}

} -
+
{/* Color preview button */}
+ + {/* Quick Presets */} +
+ +
+ {THEME_PRESETS.map((preset) => ( + + ))} +
+

+ Выберите готовую цветовую схему. Изменения сохраняются автоматически. +

+
+ {/* Accent Color */}