diff --git a/frontend/app/App.jsx b/frontend/app/App.jsx index 8d4a3da..b0f1a4d 100644 --- a/frontend/app/App.jsx +++ b/frontend/app/App.jsx @@ -34,14 +34,21 @@ export const App = (props) => { return ( - -
- {colorPicker && } - {props.children} -
+
+ + {colorPicker && ( + + )} +
+
{props.children}
); }; diff --git a/frontend/app/components/ColorPicker/ColorPicker.jsx b/frontend/app/components/ColorPicker/ColorPicker.jsx index d8827d8..ffd64a6 100644 --- a/frontend/app/components/ColorPicker/ColorPicker.jsx +++ b/frontend/app/components/ColorPicker/ColorPicker.jsx @@ -1,7 +1,7 @@ "use client"; import { useState } from "react"; -import Styles from "./ColorPicker.module.css" +import Styles from "./ColorPicker.module.css"; export const ColorPicker = (props) => { const colors = [ @@ -13,15 +13,15 @@ export const ColorPicker = (props) => { { hex: "#9c27b0", color: "purple" }, { hex: "#673ab7", color: "deep-purple" }, { hex: "#ffeb3b", color: "yellow" }, - { hex: "#ffc8ff", color: Styles["radiquum-pink"]}, - { hex: "#0087c7", color: Styles["fuxigen-blue"]}, - { hex: "#e54040", color: Styles["anixart-red"]}, + { hex: "#ffc8ff", color: Styles["radiquum-pink"] }, + { hex: "#0087c7", color: Styles["fuxigen-blue"] }, + { hex: "#e54040", color: Styles["anixart-red"] }, ]; const [mode, setMode] = useState(ui("mode")); return ( -
Theme Select
+
Выбор темы
{colors.map((item) => { return ( @@ -34,15 +34,24 @@ export const ColorPicker = (props) => { })}
- +
); };