diff --git a/frontend/public/index.html b/frontend/public/index.html index aa069f2..4db419b 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -3,6 +3,8 @@
+ + { return ( diff --git a/frontend/src/Pages/About.module.css b/frontend/src/Pages/About.module.css index 1bee168..f6a494e 100644 --- a/frontend/src/Pages/About.module.css +++ b/frontend/src/Pages/About.module.css @@ -1,20 +1,47 @@ -/* styles.css */ -/* Navbar Styles */ -/* About Page Styles */ + .about-container { - margin-top: 65px; /* To account for the fixed navbar */ + margin-top: 65px; padding: 20px; text-align: center; background: linear-gradient(to bottom right, #001F3F, #0d41c4); color:#def2f9; min-height: calc(100vh - 65px); } +.about-container::before { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + opacity: 0.9; + background:url('Images/4.jpg'); + background-size: cover; + background-position: center; + background-repeat: no-repeat; + z-index: -1; +} + +.about-container { + margin-top: 65px; + padding: 20px; + text-align: center; + color: black; + min-height: calc(100vh - 65px); + position: relative; + z-index: -1; + border-radius: 15px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); + background-color: rgba(0, 0, 0, 0.5); + backdrop-filter: blur(10px); +} .about-container h1 { margin-top: 305px; font-size: 2.5em; margin-bottom: 20px; + color: #f9f9f9; } .about-container h2 { margin-top: 25px; @@ -31,11 +58,11 @@ .team-grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid columns */ + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; max-width: 1200px; - margin: auto; /* Center the grid and adjust margin */ - /* padding: 20px; */ + margin: auto; + border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); @@ -60,7 +87,7 @@ color: #666; } -/* Responsive Styles */ + @media (max-width: 768px) { .team-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); @@ -98,4 +125,4 @@ .about-container p { font-size: 0.9em; } -} +} diff --git a/frontend/src/Pages/AdminLoginPage.js b/frontend/src/Pages/AdminLoginPage.js index 2a4920b..9decd98 100644 --- a/frontend/src/Pages/AdminLoginPage.js +++ b/frontend/src/Pages/AdminLoginPage.js @@ -1,74 +1,83 @@ + +import drdo from "./Images/user.jpg"; import React, { useState } from 'react'; import { useHistory } from 'react-router-dom'; import axios from 'axios'; import styles from './AdminLoginPage.module.css'; const AdminLoginPage = () => { - const [username, setUsername] = useState(''); - const [password, setPassword] = useState(''); - const history = useHistory(); - - const handleLogin = async () => { - try { - const response = await axios.post('http://localhost:5000/api/admin/login', { - username, - password, - }); - - if (response.data.token) { - localStorage.setItem('adminToken', response.data.token); - alert('login successful'); - history.push('/admin/dashboard'); - } - } catch (error) { - if (error.response) { - // Server responded with a status other than 2 - console.error('Login failed:', error.response.data.message); - alert('Invalid username or password'); - } else if (error.request) { - // Request was made but no response was received - console.error('No response received:', error.request); - alert('No response from the server. Please try again later.'); - } else { - // Something else happened - console.error('Error:', error.message); - alert('An error occurred. Please try again.'); - } - } - }; + const [username, setUsername] = useState(''); + const [password, setPassword] = useState(''); + const history = useHistory(); - const handleSignupClick = () => { - history.push('/signup'); - }; + const handleLogin = async () => { + try { + const response = await axios.post('http://localhost:5000/api/admin/login', { + username, + password, + }); + + if (response.data.token) { + localStorage.setItem('adminToken', response.data.token); + alert('login successful'); + history.push('/admin/dashboard'); + } + } catch (error) { + if (error.response) { + // Server responded with a status other than 2 + console.error('Login failed:', error.response.data.message); + alert('Invalid username or password'); + } else if (error.request) { + // Request was made but no response was received + console.error('No response received:', error.request); + alert('No response from the server. Please try again later.'); + } else { + // Something else happened + console.error('Error:', error.message); + alert('An error occurred. Please try again.'); + } + } + }; + + const handleSignupClick = () => { + history.push('/signup'); + }; - return ( -