Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
amanver45 authored Oct 28, 2024
2 parents 7b02d8d + c8aba34 commit b9ba27e
Show file tree
Hide file tree
Showing 86 changed files with 829 additions and 867 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
*.js filter=lfs diff=lfs merge=lfs -text
*.yml filter=lfs diff=lfs merge=lfs -text
*.jsx filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/Greetings.yml
Git LFS file not shown
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
<a href="https://github.com/Vin205/Enyanjyoti/graphs/contributors"><img src="https://custom-icon-badges.demolab.com/github/contributors/Vin205/Enyanjyoti?label=Contributors&labelColor=302d41&color=c9cbff&logoColor=d9e0ee&logo=people&style=for-the-badge"/></a>
<p>
<img src="http://forthebadge.com/images/badges/license-mit.svg"/>
<!-- <img src="https://raw.githubusercontent.com/devSouvik/devSouvik/master/gif3.gif" alt=Aryanshukla/> -->
<p>
<p>
<a href="https://github.com/Symbiote07">
<img src="https://raw.githubusercontent.com/devSouvik/devSouvik/master/gif3.gif" alt=Aryanshukla/>

<p>
<img height=40 src="https://skillicons.dev/icons?i=html,css,js,react,firebase,nodejs,bootstrap">
</div>
Expand Down Expand Up @@ -51,7 +57,7 @@ We aim to bridge the gap between education and employment while providing essent

<div align="center">
<a href="https://github.com/Vin205/Enyanjyoti/graphs/contributors">
<img src="https://contrib.rocks/image?repo=Vin205/Enyanjyoti&max=57&cachebust=3" />
<img src="https://contrib.rocks/image?repo=Vin205/Enyanjyoti&max=60&cachebust=3" />
</a>
</div>

Expand Down
Binary file modified frontend/public/favicons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/favicons/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/favicons/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/50.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/51.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/52.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/aboutimage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/b8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/contact.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/images/d.jpg
Binary file modified frontend/public/images/e.jpg
Binary file modified frontend/public/images/e1.png
Binary file modified frontend/public/images/e11.jpg
Binary file modified frontend/public/images/e13.jpg
Binary file modified frontend/public/images/e14.jpg
Binary file modified frontend/public/images/e15.png
Binary file modified frontend/public/images/e16.png
Binary file modified frontend/public/images/e17.jpg
Binary file modified frontend/public/images/e18pg.jpg
Binary file modified frontend/public/images/e2.png
Binary file modified frontend/public/images/e20.jpg
Binary file modified frontend/public/images/e21.jpg
Binary file modified frontend/public/images/e22.jpg
Binary file modified frontend/public/images/e23.jpg
Binary file modified frontend/public/images/e23jpg.jpg
Binary file modified frontend/public/images/e3.png
Binary file modified frontend/public/images/e4.png
Binary file modified frontend/public/images/e5.png
Binary file modified frontend/public/images/e6.png
Binary file modified frontend/public/images/e7.png
Binary file modified frontend/public/images/e8.png
Binary file modified frontend/public/images/e9.png
Binary file modified frontend/public/images/f1.png
Binary file modified frontend/public/images/f2.png
Binary file modified frontend/public/images/f3.png
Binary file modified frontend/public/images/g1.png
Binary file modified frontend/public/images/g2.png
Binary file modified frontend/public/images/g3.png
Binary file modified frontend/public/images/l.jpg
Binary file modified frontend/public/images/l.png
Binary file modified frontend/public/images/log.jpg
Binary file modified frontend/public/images/login.jpg
3 changes: 3 additions & 0 deletions frontend/public/images/logon.png
Binary file modified frontend/public/images/m.png
Binary file modified frontend/public/images/moon.png
Binary file modified frontend/public/images/r.jpg
Binary file modified frontend/public/images/r.png
Binary file modified frontend/public/images/sun.png
Binary file modified frontend/public/images/w.jpg
Binary file modified frontend/public/images/y.png
11 changes: 6 additions & 5 deletions frontend/src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from "react";
import "./footer.css";
import { FaInstagram, FaLinkedin, FaGithub } from "react-icons/fa";
import { FaXTwitter } from "react-icons/fa6";
import { Link } from 'react-router-dom';

function Footer() {
return (
Expand All @@ -18,19 +19,19 @@ function Footer() {
<h3>Quick Links</h3>
<ul>
<li>
<a href="#education">Education</a>
<Link to="/educ">Education</Link>
</li>
<li>
<a href="#career">Career</a>
<Link to="/career">Career</Link>
</li>
<li>
<a href="#grants">Grants & Loans</a>
<Link to="/loan">Grants & Loans</Link>
</li>
<li>
<a href="#contact">Contact Us</a>
<Link to="/contact">Contact Us</Link>
</li>
</ul>
</div>
</div>
<div className="footer-section">
<h3>Contact Us</h3>
<form className="contact-form">
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/Footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
position: relative;
z-index: 1;
margin-top: 30px;
width: 99.5vw
}

.footer-content {
Expand Down
118 changes: 68 additions & 50 deletions frontend/src/components/ForgotPassword/ForgotPassword.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React, { useState, useEffect } from "react";
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import { auth } from "../Firebase/firebase";
import { sendPasswordResetEmail } from "firebase/auth";
import Footer from "../Footer/Footer";

function Login() {
function ForgotPassword() {
const [email, setEmail] = useState("");
const [loading, setLoading] = useState(false);
const [message, setMessage] = useState("");
Expand All @@ -25,58 +26,75 @@ function Login() {
};

return (
<div
className="container mt-5 justify-content-center"
style={{ height: "auto" }}
>
<div className="row justify-content-center" style={{ width: "100%" }}>
<div className="col-md-6">
<div className="card shadow">
<div className="card-body">
<h2 className="text-center mb-4">Forgot Password</h2>
{error && <div className="alert alert-danger">{error}</div>}
{message && (
<div className="alert alert-success">{message}</div>
)}
<form onSubmit={handleResetPassword}>
<div className="mb-3">
<label htmlFor="email" className="form-label">
Email:
</label>
<input
type="email"
id="email"
className="form-control"
placeholder="Enter your email"
value={email}
onChange={(e) => setEmail(e.target.value)}
required
/>
</div>
<button
type="submit"
className="btn btn-primary w-100"
disabled={loading}
>
{loading ? "Requesting..." : "Request password link"}
</button>
</form>
<p className="mt-3 text-center">
Remember you password {" "}
<span
className="text-primary"
style={{ cursor: "pointer" }}
onClick={() => navigate("/login")}
>
Login
</span>
</p>
<>
<style>
{`.forgot-password-card {
background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
border-radius: 20px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
padding: 2rem;
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.forgot-password-card:hover {
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
transform: translateY(-5px);
}
.forgot-password-title {
font-size: 1.8rem;
font-weight: bold;
color: #333;
text-align: center;
margin-bottom: 1.5rem;
}
`}
</style>
<div className="container mx-auto mt-5 flex flex-col justify-center bg-cyan-500" style={{ height: "auto" }}>
<div className="row justify-content-center" style={{ width: "100%" }}>
<div className="col-md-6">
<div className="card shadow forgot-password-card">
<div className="card-body">
<h2 className="forgot-password-title">Forgot Password</h2>
{error && <div className="alert alert-danger">{error}</div>}
{message && <div className="alert alert-success">{message}</div>}
<form onSubmit={handleResetPassword}>
<div className="mb-3">
<label htmlFor="email" className="form-label">Email:</label>
<input
type="email"
id="email"
className="form-control"
placeholder="Enter your email"
value={email}
onChange={(e) => setEmail(e.target.value)}
required
/>
</div>
<button
type="submit"
className="btn btn-primary w-100"
disabled={loading}
>
{loading ? "Requesting..." : "Request password link"}
</button>
</form>
<p className="mt-3 text-center">
Remember your password?{" "}
<span
className="text-primary"
style={{ cursor: "pointer" }}
onClick={() => navigate("/login")}
>
Login
</span>
</p>
</div>
</div>
</div>
</div>
<Footer />
</div>
</div>
</>
);
}

export default Login;
export default ForgotPassword;
2 changes: 2 additions & 0 deletions frontend/src/components/GoogleButton/GoogleButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const GoogleButton = () => {
borderRadius: '8px',
padding: '8px 16px',
fontSize: '14px',
width: '100%',
height: '50px'
}}
>
<FaGoogle className="me-2" />
Expand Down
52 changes: 38 additions & 14 deletions frontend/src/components/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import React, { useEffect, useState } from "react";
import { useSignInWithEmailAndPassword } from "react-firebase-hooks/auth";
import { Link, useNavigate } from "react-router-dom";
import { auth } from "../Firebase/firebase";

import GoogleButton from '../GoogleButton/GoogleButton'; // Import the GoogleButton

import toast from "react-hot-toast";
import Footer from "../Footer/Footer";

Expand Down Expand Up @@ -33,6 +31,7 @@ const LoginForm = ({ email, setEmail, password, setPassword, showPassword, setSh
</div>
<div className="mb-3">
<label htmlFor="password" className="form-label">Password:</label>

<input
type={showPassword ? "text" : "password"}
id="password"
Expand All @@ -41,22 +40,28 @@ const LoginForm = ({ email, setEmail, password, setPassword, showPassword, setSh
value={password}
onChange={(e) => setPassword(e.target.value)}
required

/>
<span
style={{ color: "black", position: "absolute", top: "49%", right: "25px", border: "none", cursor: "pointer" }}
style={{ color: "black", position: "absolute", top: "40.5%", right: "60px", border: "none", cursor: "pointer" }}
className="material-symbols-outlined"
onClick={() => setShowPassword(!showPassword)}
>
{showPassword ? "visibility_off" : "visibility"}
</span>

</div>
<button
type="submit"
className="btn btn-primary w-100"
style={{ fontSize: '0.8rem', padding: '0.5rem' }} // Smaller button size
<button
type="submit"
className="btn btn-primary w-100 mb-3"
style={{ fontSize: '1.1rem', padding: '0.5rem', height: '50px' }}
disabled={loading}>
{loading ? "Logging in..." : "Login"}
{loading ? "Logging in..." : "Login"}
</button>
<div className="text-center">
<p>Or</p>
<GoogleButton />
</div>
</form>
);

Expand Down Expand Up @@ -102,10 +107,32 @@ function Login() {
}, [navigate]);

return (
<div className="container mt-5 justify-content-center" style={{ height: "auto" }}>
<>
<style>
{`.signin-card {
background: linear-gradient(135deg, #74ebd5 0%, #ACB6E5 100%);
border-radius: 20px;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
padding: 2rem;
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.signin-card:hover {
box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
transform: translateY(-5px);
}
.signin-title {
font-size: 1.8rem;
font-weight: bold;
color: #333;
text-align: center;
margin-bottom: 1.5rem;
}
`}
</style>
<div className="container mx-auto mt-5 flex flex-col justify-center bg-cyan-500" style={{ height: "auto" }}>
<div className="row justify-content-center" style={{ width: "100%" }}>
<div className="col-md-6">
<div className="card shadow">
<div className="card shadow signin-card">
<div className="card-body">
<LoginHeader />
<LoginForm
Expand All @@ -119,17 +146,14 @@ function Login() {
loading={loading}
error={error}
/>
{/* Add the GoogleButton component here */}
<div className="text-center mt-4">
<GoogleButton />
</div>
<LoginFooter navigate={navigate} />
</div>
</div>
</div>
</div>
<Footer />
</div>
</>
);
}

Expand Down
15 changes: 14 additions & 1 deletion frontend/src/components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@
height: 60px;
width: 100%;
padding: 0;
/* for responsiveness */
flex-wrap: nowrap;
}

.logo {
height: 30px;
height: 90px;
margin-top: -10px;

}

.nav-list {
Expand Down Expand Up @@ -192,11 +196,20 @@
}
}
.nav-link {
border-radius: 10px;
padding: 6px 9px;
border: 2px solid #6a6060;
display: inline-block;
text-decoration: none;
position: relative;
vertical-align: bottom;
}
.nav-link:hover{
background-color: #039aff;
color: black;
border: 2px solid black;
}


.nav-link::after {
content: '';
Expand Down
Loading

0 comments on commit b9ba27e

Please sign in to comment.