From e2d7c456c147f48781ce1806b62a6ac3e35954af Mon Sep 17 00:00:00 2001 From: danielq65 <113571661+danielq65@users.noreply.github.com> Date: Mon, 17 Apr 2023 14:17:54 -0400 Subject: [PATCH] Added Settings and About Us page functionality --- src/pages/About-Us.jsx | 53 +++++++++++++++++- src/pages/Settings.jsx | 124 ++++++++++++++++++++++++++++++++++++++++- 2 files changed, 175 insertions(+), 2 deletions(-) diff --git a/src/pages/About-Us.jsx b/src/pages/About-Us.jsx index 0e7c65c..4bd798e 100644 --- a/src/pages/About-Us.jsx +++ b/src/pages/About-Us.jsx @@ -1,3 +1,54 @@ +import umass_lowell from './images/umass_lowell.jpeg' +import river_hawk from './images/river_hawk.png' +import budget_hero from './images/budgethero1.png' + export default function AboutUs() { - return

About Us

+ return ( + <> +
+
+
+
+
+

About Us

+

Budget Buddy

+
+
+
+
+ +
+
+
+ uml campus +
+
+
+ +

We're four computer science students from UMass Lowell. Our names are Daniel Quinonez, Jacob Veber, Gabe Herrera, and Chris Olaf.

+ +

+ Using Budget Buddy, we are hoping to help young people learn how to better take control of their finances. We know that it can be extremely + difficult to balance bills and other expenses at the same time as being a full-time student, so we want to make it as + easy as possible for students to quickly understand what their budget looks like. In addition, we want to help young people + make plans to pay off any loans they have needed to take out if, for example, they are a college student. This way, we hope that the + daunting task of managing debt while being a young adult with little or unstable income can be made easier. +

+ +

+ By helping the young demographic manage their way through debt, we are aiming to help them gain financial independence as soon as + possible, so that they can live their lives post-graduation with the most opportunities. Also, and possibly most + importantly, we hope that by using Budget Buddy, people gain an idea of how to effectively balance their budget. + This way, they will be able to manage their money in a more effective way after they graduate and move into the professional + world. We want young people to have an idea of how budgeting can work for them when they begin to make more money in their + careers and begin to take on more debt in order to do things like buy a house. +

+ +
+ uml logo + budget hero +
+
+ + ); } \ No newline at end of file diff --git a/src/pages/Settings.jsx b/src/pages/Settings.jsx index a368753..67df90c 100644 --- a/src/pages/Settings.jsx +++ b/src/pages/Settings.jsx @@ -1,3 +1,125 @@ export default function Settings() { - return

Settings

+ // javascript for the updated username and password alerts + const handleNameClick = () => { + const alert = ''; + document.getElementById('nameAlert').innerHTML = alert; + } + + const handlePasswordClick = () => { + const alert = ''; + document.getElementById('passwordAlert').innerHTML = alert; + } + + (() => { + // Fetch all the forms we want to apply custom Bootstrap validation styles to + const forms = document.querySelectorAll('.needs-validation') + + // Loop over them and prevent submission + Array.from(forms).forEach(form => { + form.addEventListener('click', event => { + if (!form.checkValidity()) { + event.preventDefault() + event.stopPropagation() + } + + form.classList.add('was-validated') + }, false) + }) + })() + + // toggle between light mode and dark mode + const toggleDarkMode = () => { + if (document.documentElement.getAttribute('data-bs-theme') === 'dark') { + document.documentElement.setAttribute('data-bs-theme','light') + } + else { + document.documentElement.setAttribute('data-bs-theme','dark') + } + } + + // JSX: Javascript XML + return ( + <> +
+

Profile Settings

+ +
Email and Name
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ Please enter a new name +
+
+
+ +
+
+ +
+
+ +
Password
+
+
+ +
+ +
+ Please enter your current password +
+
+
+
+ +
+ +
+ Please enter a new password +
+ Your new password must be at least 8 characters long +
+
+
+ +
+
+ +
+
+ +

Dark Mode

+ +
+ + +
+ +

Account Settings

+ +
+ +
+
+ CAUTION: This will delete your account. All account and profile data + will be completely erased. +
+
+
+ + ); } \ No newline at end of file