From 27cbd3bbba5bd7d7538930aed42f8cb3c57c3d3a Mon Sep 17 00:00:00 2001 From: Bigcedar Date: Fri, 11 Oct 2024 15:08:45 +0100 Subject: [PATCH] web production --- package-lock.json | 49 +++++++ package.json | 2 + src/AppLayout/AppLayout.module.css | 3 + src/components/AccountSettings.jsx | 150 +++++++++++++++++++++ src/components/ContentCourse.jsx | 3 +- src/components/CoursePlayer.jsx | 21 ++- src/components/Ecommerce.jsx | 2 +- src/components/InstructorProfiled.jsx | 6 +- src/components/LearningCard.jsx | 4 +- src/components/LogoutModal.jsx | 103 +++++++++++++++ src/components/Navbar.jsx | 84 ++++++++---- src/components/StudentReview.jsx | 4 +- src/components/UserExperienceDesign.jsx | 8 +- src/features/BestSellingCard.jsx | 166 +----------------------- src/features/CourseCard.jsx | 2 +- src/features/PricingCard.jsx | 2 +- src/features/SearchResult.jsx | 2 +- src/features/SubjectCard.jsx | 21 ++- src/features/Topheader.jsx | 2 +- src/index.css | 5 + src/layout/Layout.jsx | 14 +- src/pages/Dashboard.jsx | 17 +-- src/pages/Explore.jsx | 9 +- src/pages/MyLearning.jsx | 8 +- src/pages/Settings.jsx | 8 +- src/ui/Styles.css | 84 ++++++++++++ 26 files changed, 532 insertions(+), 247 deletions(-) create mode 100644 src/AppLayout/AppLayout.module.css create mode 100644 src/components/AccountSettings.jsx create mode 100644 src/components/LogoutModal.jsx create mode 100644 src/ui/Styles.css 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 ( +
+
+

Settings

+ +
+

Account

+

+ Edit your account settings and change your password +

+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ + +
+
+ +
+

Account

+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+ + {/* Logout Modal */} + {isLogoutModalOpen && ( + setIsLogoutModalOpen(false)} // Close modal function + /> + )} +
+ ); +}; + +export default Settings; diff --git a/src/components/ContentCourse.jsx b/src/components/ContentCourse.jsx index 559234c..bc0f2f1 100644 --- a/src/components/ContentCourse.jsx +++ b/src/components/ContentCourse.jsx @@ -22,8 +22,9 @@ const ContentCourse = () => { }; return ( -
+
{/* Card now has a scale effect on hover */} +

Content Course

{/* Color Theory Section */} diff --git a/src/components/CoursePlayer.jsx b/src/components/CoursePlayer.jsx index ce8c259..22aae6a 100644 --- a/src/components/CoursePlayer.jsx +++ b/src/components/CoursePlayer.jsx @@ -38,13 +38,13 @@ const CoursePlayer = ({ course, onBack }) => { return ( -
+
{/* Section with Video Player and ContentCourse */} { > {/* Left section with Video Player */}
-
+
{/* Video Player */} -
+
{/* YouTube Video Embed with Autoplay */}