diff --git a/package-lock.json b/package-lock.json index 8681138..4d82933 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,8 @@ "name": "daz", "version": "0.1.0", "dependencies": { + "@fortawesome/free-solid-svg-icons": "^6.6.0", + "@fortawesome/react-fontawesome": "^0.2.2", "@headlessui/react": "^2.1.9", "@heroicons/react": "^2.1.5", "@testing-library/jest-dom": "^5.17.0", @@ -2613,6 +2615,53 @@ "integrity": "sha512-kym7SodPp8/wloecOpcmSnWJsK7M0E5Wg8UcFA+uO4B9s5d0ywXOEro/8HM9x0rW+TljRzul/14UYz3TleT3ig==", "license": "MIT" }, + "node_modules/@fortawesome/fontawesome-common-types": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-6.6.0.tgz", + "integrity": "sha512-xyX0X9mc0kyz9plIyryrRbl7ngsA9jz77mCZJsUkLl+ZKs0KWObgaEBoSgQiYWAsSmjz/yjl0F++Got0Mdp4Rw==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/fontawesome-svg-core": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-6.6.0.tgz", + "integrity": "sha512-KHwPkCk6oRT4HADE7smhfsKudt9N/9lm6EJ5BVg0tD1yPA5hht837fB87F8pn15D8JfTqQOjhKTktwmLMiD7Kg==", + "license": "MIT", + "peer": true, + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/free-solid-svg-icons": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-6.6.0.tgz", + "integrity": "sha512-IYv/2skhEDFc2WGUcqvFJkeK39Q+HyPf5GHUrT/l2pKbtgEIv1al1TKd6qStR5OIwQdN1GZP54ci3y4mroJWjA==", + "license": "(CC-BY-4.0 AND MIT)", + "dependencies": { + "@fortawesome/fontawesome-common-types": "6.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/@fortawesome/react-fontawesome": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.2.2.tgz", + "integrity": "sha512-EnkrprPNqI6SXJl//m29hpaNzOp1bruISWaOiRtkMi/xSvHJlzc2j2JAYS7egxt/EbjSNV/k6Xy0AQI6vB2+1g==", + "license": "MIT", + "dependencies": { + "prop-types": "^15.8.1" + }, + "peerDependencies": { + "@fortawesome/fontawesome-svg-core": "~1 || ~6", + "react": ">=16.3" + } + }, "node_modules/@headlessui/react": { "version": "2.1.9", "resolved": "https://registry.npmjs.org/@headlessui/react/-/react-2.1.9.tgz", diff --git a/package.json b/package.json index 0279ad8..a40e794 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,8 @@ "version": "0.1.0", "private": true, "dependencies": { + "@fortawesome/free-solid-svg-icons": "^6.6.0", + "@fortawesome/react-fontawesome": "^0.2.2", "@headlessui/react": "^2.1.9", "@heroicons/react": "^2.1.5", "@testing-library/jest-dom": "^5.17.0", diff --git a/src/AppLayout/AppLayout.module.css b/src/AppLayout/AppLayout.module.css new file mode 100644 index 0000000..94f64ca --- /dev/null +++ b/src/AppLayout/AppLayout.module.css @@ -0,0 +1,3 @@ +.mainContent { + background-color: #f4f4f9; +} diff --git a/src/components/AccountSettings.jsx b/src/components/AccountSettings.jsx new file mode 100644 index 0000000..7bdb93b --- /dev/null +++ b/src/components/AccountSettings.jsx @@ -0,0 +1,150 @@ +import React, { useState, useEffect } from "react"; +import LogoutModal from "./LogoutModal"; // Adjust the import path as needed + +const Settings = () => { + const [isVisible, setIsVisible] = useState(false); + const [isLogoutModalOpen, setIsLogoutModalOpen] = useState(false); // State for LogoutModal + + useEffect(() => { + setTimeout(() => { + setIsVisible(true); + }, 200); // Add delay for fade-in effect + }, []); + + const handleSubmit = (event) => { + event.preventDefault(); // Prevents page reload + console.log("Form submitted"); + // Add logic for handling the password change here + }; + + return ( +