-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7fb24e3
commit e44e5d2
Showing
29 changed files
with
17,237 additions
and
10,780 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Empty file.
Empty file.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import React from 'react'; | ||
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; | ||
import Home from '../../Pages/Home/Home'; | ||
import Dashboard from '../../Pages/DashboardPage/Dashboard'; | ||
import Statistics from '../../Pages/Statistics/Statistics'; | ||
import PrivateRoutes from '../../routes/PrivateRoutes'; | ||
import PublicRoutes from '../../routes/PublicRoutes'; | ||
|
||
const App = () => { | ||
return ( | ||
<Router> | ||
<Routes> | ||
<Route element={<PublicRoutes />}> | ||
<Route path="/" element={<Home />} /> | ||
</Route> | ||
<Route element={<PrivateRoutes />}> | ||
<Route path="/dashboard" element={<Dashboard />} /> | ||
<Route path="/statistics" element={<Statistics />} /> | ||
</Route> | ||
</Routes> | ||
</Router> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.container { | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
font-size: 40px; | ||
color: #010101; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import React, { useState } from 'react'; | ||
import styles from './LoginFormModal.module.css'; | ||
import icon from '../../assets/icon.png'; | ||
|
||
const LoginFormModal = ({ onClose }) => { | ||
const [isPasswordVisible, setIsPasswordVisible] = useState(false); | ||
const [loginData, setLoginData] = useState({ | ||
email: '', | ||
password: '', | ||
}); | ||
|
||
const togglePasswordVisibility = () => { | ||
setIsPasswordVisible((prev) => !prev); | ||
}; | ||
|
||
const handleChange = (e) => { | ||
const { name, value } = e.target; | ||
setLoginData((prevData) => ({ | ||
...prevData, | ||
[name]: value, | ||
})); | ||
}; | ||
|
||
const handleSubmit = (e) => { | ||
e.preventDefault(); | ||
console.log('Login Data:', loginData); | ||
|
||
}; | ||
|
||
return ( | ||
<div className={styles.modalOverlay} onClick={onClose}> | ||
<div className={styles.modalContent} onClick={(e) => e.stopPropagation()}> | ||
<img src={icon} alt="Money Guard Icon" className={styles.icon} /> | ||
<h1 className={styles.title}>Money Guard</h1> | ||
|
||
<form className={styles.form} onSubmit={handleSubmit}> | ||
<div className={styles.inputField}> | ||
<i className="fas fa-envelope"></i> | ||
<input | ||
type="email" | ||
name="email" | ||
placeholder="E-mail" | ||
value={loginData.email} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className={styles.inputField}> | ||
<i className="fas fa-lock"></i> | ||
<input | ||
type={isPasswordVisible ? 'text' : 'password'} | ||
name="password" | ||
placeholder="Password" | ||
value={loginData.password} | ||
onChange={handleChange} | ||
required | ||
/> | ||
<i | ||
className={`fas ${isPasswordVisible ? 'fa-eye-slash' : 'fa-eye'}`} | ||
onClick={togglePasswordVisibility} | ||
style={{ cursor: 'pointer', marginLeft: '8px' }} | ||
></i> | ||
</div> | ||
<button type="submit" className={styles.btn}>Log In</button> | ||
<button type="button" className={styles.btn} onClick={() => console.log("Register clicked")}>Register</button> | ||
</form> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LoginFormModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.modalOverlay { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
width: 100vw; | ||
height: 100vh; | ||
background: rgba(0, 0, 0, 0.6); | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
z-index: 1000; | ||
} | ||
|
||
.modalContent { | ||
background: rgba(255, 255, 255, 0.9); | ||
padding: 20px; | ||
border-radius: 8px; | ||
width: 300px; | ||
max-width: 90%; | ||
text-align: center; | ||
position: relative; | ||
background-image: url('./assets/loginBackground.png'); | ||
background-size: cover; | ||
background-position: center; | ||
} | ||
|
||
.icon { | ||
width: 50px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.title { | ||
font-size: 24px; | ||
color: #333; | ||
margin-bottom: 20px; | ||
} | ||
|
||
.form { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 15px; | ||
} | ||
|
||
.inputField { | ||
display: flex; | ||
align-items: center; | ||
background-color: rgba(255, 255, 255, 0.8); | ||
padding: 10px; | ||
border-radius: 4px; | ||
} | ||
|
||
.inputField i { | ||
margin-right: 8px; | ||
color: #666; | ||
} | ||
|
||
.inputField input { | ||
flex: 1; | ||
border: none; | ||
outline: none; | ||
background: transparent; | ||
} | ||
|
||
.btn { | ||
padding: 10px 15px; | ||
border: none; | ||
color: #fff; | ||
background-color: #4caf50; | ||
border-radius: 4px; | ||
cursor: pointer; | ||
font-size: 16px; | ||
margin-top: 10px; | ||
} | ||
|
||
.btn:hover { | ||
background-color: #45a049; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
import React, { useState } from 'react'; | ||
import styles from './RegisterFormModal.module.css'; | ||
import icon from '../../assets/icon.png'; | ||
const RegisterFormModal = ({ onClose }) => { | ||
const [isPasswordVisible, setIsPasswordVisible] = useState(false); | ||
const [registerData, setRegisterData] = useState({ | ||
name: '', | ||
email: '', | ||
password: '', | ||
confirmPassword: '', | ||
}); | ||
|
||
const togglePasswordVisibility = () => { | ||
setIsPasswordVisible((prev) => !prev); | ||
}; | ||
|
||
const handleChange = (e) => { | ||
const { name, value } = e.target; | ||
setRegisterData((prevData) => ({ | ||
...prevData, | ||
[name]: value, | ||
})); | ||
}; | ||
|
||
const handleSubmit = (e) => { | ||
e.preventDefault(); | ||
console.log('Register Data:', registerData); | ||
|
||
}; | ||
|
||
return ( | ||
<div className={styles.modalOverlay} onClick={onClose}> | ||
<div className={styles.modalContent} onClick={(e) => e.stopPropagation()}> | ||
<img src={icon} alt="Money Guard Icon" className={styles.icon} /> | ||
<h1 className={styles.title}>Money Guard</h1> | ||
|
||
<form className={styles.form} onSubmit={handleSubmit}> | ||
<div className={styles.inputField}> | ||
<i className="fas fa-user"></i> | ||
<input | ||
type="text" | ||
name="name" | ||
placeholder="Name" | ||
value={registerData.name} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className={styles.inputField}> | ||
<i className="fas fa-envelope"></i> | ||
<input | ||
type="email" | ||
name="email" | ||
placeholder="E-mail" | ||
value={registerData.email} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<div className={styles.inputField}> | ||
<i className="fas fa-lock"></i> | ||
<input | ||
type={isPasswordVisible ? 'text' : 'password'} | ||
name="password" | ||
placeholder="Password" | ||
value={registerData.password} | ||
onChange={handleChange} | ||
required | ||
/> | ||
<i | ||
className={`fas ${isPasswordVisible ? 'fa-eye-slash' : 'fa-eye'}`} | ||
onClick={togglePasswordVisibility} | ||
style={{ cursor: 'pointer', marginLeft: '8px' }} | ||
></i> | ||
</div> | ||
<div className={styles.inputField}> | ||
<i className="fas fa-lock"></i> | ||
<input | ||
type={isPasswordVisible ? 'text' : 'password'} | ||
name="confirmPassword" | ||
placeholder="Confirm Password" | ||
value={registerData.confirmPassword} | ||
onChange={handleChange} | ||
required | ||
/> | ||
</div> | ||
<button type="submit" className={styles.btn}>Register</button> | ||
<button type="button" className={styles.btnAlt} onClick={() => console.log("Log In clicked")}>Log In</button> | ||
</form> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default RegisterFormModal; |
Oops, something went wrong.