diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js
index 1081735..6fa632c 100644
--- a/frontend/src/components/Header.js
+++ b/frontend/src/components/Header.js
@@ -1,17 +1,24 @@
-import React from 'react';
+import React, { useState } from 'react';
import { Page, Text, User, Button, Spacer } from '@geist-ui/core';
-import { Settings } from '@geist-ui/icons';
+import { Settings as SettingsIcon } from '@geist-ui/icons';
+import Settings from './Settings';
const Header = () => {
+ const [settingsVisible, setSettingsVisible] = useState(false);
+
+ const openSettings = () => setSettingsVisible(true);
+ const closeSettings = () => setSettingsVisible(false);
+
return (
NovaMD
- } />
+ } onClick={openSettings} />
+
);
};
-export default Header;
+export default Header;
\ No newline at end of file
diff --git a/frontend/src/components/Settings.js b/frontend/src/components/Settings.js
new file mode 100644
index 0000000..0d3da66
--- /dev/null
+++ b/frontend/src/components/Settings.js
@@ -0,0 +1,52 @@
+import React, { useState } from 'react';
+import { Modal, Input, Toggle, Select, Spacer, Button } from '@geist-ui/core';
+
+const Settings = ({ visible, onClose }) => {
+ const [theme, setTheme] = useState('light');
+ const [fontSize, setFontSize] = useState('14');
+ const [autoSave, setAutoSave] = useState(false);
+
+ const handleSubmit = () => {
+ const settings = {
+ theme,
+ fontSize,
+ autoSave,
+ };
+ console.log('Settings to be sent to backend:', settings);
+ // TODO: Implement API call to send settings to backend
+ onClose();
+ };
+
+ return (
+
+ Settings
+
+
+
+ setFontSize(e.target.value)}
+ />
+
+ setAutoSave(e.target.checked)}
+ >
+ Auto Save
+
+
+ Cancel
+ Submit
+
+ );
+};
+
+export default Settings;
\ No newline at end of file