diff --git a/frontend/src/components/Navbar/Navbar.css b/frontend/src/components/Navbar/Navbar.css index e8c13c5..8ac1829 100644 --- a/frontend/src/components/Navbar/Navbar.css +++ b/frontend/src/components/Navbar/Navbar.css @@ -192,11 +192,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: ''; diff --git a/frontend/src/components/Signup/Signup.js b/frontend/src/components/Signup/Signup.js index 8d2c37c..36936aa 100644 --- a/frontend/src/components/Signup/Signup.js +++ b/frontend/src/components/Signup/Signup.js @@ -1,236 +1,3 @@ -import React, { useEffect, useState } from "react"; -import { useCreateUserWithEmailAndPassword } from "react-firebase-hooks/auth"; -import { useNavigate } from "react-router-dom"; -import { registerValidation } from "../../validations/validation"; -import { auth, signInWithGoogle } from "../Firebase/firebase"; // Import Firebase auth and Google sign-in -import GoogleButton from '../GoogleButton/GoogleButton'; -import toast from "react-hot-toast"; -import Footer from "../Footer/Footer.js"; - -function Signup() { - const trustedDomains = ["gmail.com", "yahoo.com", "outlook.com", "icloud.com", "hotmail.com"]; - const regex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; - const [email, setEmail] = useState(""); - const [password, setPassword] = useState(""); - const [confirmPassword, setConfirmPassword] = useState(""); - const [error, setError] = useState(""); - const [successMessage, setSuccessMessage] = useState(""); - const [showPassword, setShowPassword] = useState(false); - const [showConfirmPassword, setShowConfirmPassword] = useState(false); - const [errors, setErrors] = useState({}); - const [emailError, setEmailError] = useState(""); // State for email validation feedback - const navigate = useNavigate(); - - const [createUserWithEmailAndPassword, user, loading, firebaseError] = - useCreateUserWithEmailAndPassword(auth); - - const handlePasswordVisibility = () => { - setShowPassword(!showPassword); - }; - - const handleConfirmPasswordVisibility = () => { - setShowConfirmPassword(!showConfirmPassword); - }; - - useEffect(() => { - const unsubscribe = auth.onAuthStateChanged((currentUser) => { - if (currentUser) { - navigate("/dashboard", { replace: true }); - } - }); - return () => unsubscribe(); - }, [navigate]); - - const handleSignup = async (e) => { - e.preventDefault(); - - // Check email format - if (!regex.test(email)) { - toast.error("Invalid email"); - return; - } - - // Check email domain - const emailDomain = email.split("@")[1]; - if (!trustedDomains.includes(emailDomain)) { - setEmailError("Please use a trusted email provider (Gmail, Yahoo, Outlook, iCloud, Hotmail)."); - return; - } else { - setEmailError(""); // Clear error if valid - } - - try { - await registerValidation.validate( - { email, password, confirmPassword }, - { abortEarly: false } - ); - setErrors({}); - } catch (error) { - const newErrors = {}; - error.inner.forEach((err) => { - newErrors[err.path] = err.message; - }); - - setErrors(newErrors); - return; - } - - // Firebase signup - try { - await createUserWithEmailAndPassword(email, password); - setSuccessMessage("Signup successful! Redirecting to login..."); - setEmail(""); - setPassword(""); - setConfirmPassword(""); - setTimeout(() => { - navigate("/login"); - }, 2000); // Redirect after 2 seconds - } catch (firebaseError) { - setError(firebaseError?.message || "Error signing up."); - } - }; - - const handleGoogleSignup = async () => { - try { - await signInWithGoogle(); - navigate("/dashboard"); // Redirect after successful Google sign-in - } catch (error) { - setError("Error signing in with Google."); - } - }; - - return ( - <> - -
-
-
-
-
-

Sign Up

- {error &&
{error}
} - {successMessage && ( -
{successMessage}
- )} - {emailError &&
{emailError}
} {/* Email error message */} -
-
- - { - setEmail(e.target.value); - setEmailError(""); // Clear email error on change - }} - /> - {errors.email &&
{errors.email}
} -
-
- - setPassword(e.target.value)} - pattern="^(?=.*\d)(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9])\S{8,}$" - title="Password must contain at least one number, one alphabet, one symbol, and be at least 8 characters long" - required - /> - {errors.password &&
{errors.password}
} - - {showPassword ? "visibility_off" : "visibility"} - -
- -
- - setConfirmPassword(e.target.value)} - pattern="^(?=.*\d)(?=.*[a-zA-Z])(?=.*[^a-zA-Z0-9])\S{8,}$" - title="Password must contain at least one number, one alphabet, one symbol, and be at least 8 characters long" - required - /> - {errors.confirmPassword &&
{errors.confirmPassword}
} - - {showConfirmPassword ? "visibility_off" : "visibility"} - -
- -
-
- -
-

- Already have an account?{" "} - navigate("/login")} - > - Login - -

-
-
-
-
-
- - ); -} - -export default Signup; +version https://git-lfs.github.com/spec/v1 +oid sha256:7c0b8b8d06f5718c86683e66c3522cb4d632eac8f164c2a0c89d63748eb063f0 +size 9140 diff --git a/frontend/src/components/profileCard/ProfileCard.js b/frontend/src/components/profileCard/ProfileCard.js index 55cd34f..7bbb457 100644 --- a/frontend/src/components/profileCard/ProfileCard.js +++ b/frontend/src/components/profileCard/ProfileCard.js @@ -1,46 +1,3 @@ -import React from 'react'; -import { useUser } from '../../UserContext'; - -const ProfileCard = () => { - const { user } = useUser(); - const [isEditing, setIsEditing] = useState(false); - - const handleEditToggle = () => { - setIsEditing(!isEditing); - }; - - const handleSave = () => { - setIsEditing(false); - } - - return ( -
-

Profile Information

-

Name: {user.name}

-

Role: {user.role}

- -
- ); -}; - -const styles = { - card: { - padding: '20px', - border: '1px solid #ddd', - borderRadius: '5px', - width: '300px', - margin: '10px auto', - textAlign: 'center', - boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)', - }, - button: { - padding: '10px 15px', - backgroundColor: '#6200ea', - color: '#fff', - border: 'none', - borderRadius: '5px', - cursor: 'pointer', - } -}; - -export default ProfileCard; +version https://git-lfs.github.com/spec/v1 +oid sha256:d91a986b1fbd2e533b2980c7dc6aefdd8d1ca2fae0fdb629a04a8ae8b27d4718 +size 985 diff --git a/frontend/src/index.js b/frontend/src/index.js index 63478bf..b0c0e2d 100644 --- a/frontend/src/index.js +++ b/frontend/src/index.js @@ -1,22 +1,3 @@ -import React from 'react'; -import 'bootstrap/dist/css/bootstrap.css'; -import 'bootstrap/dist/css/bootstrap.min.css'; -import ReactDOM from 'react-dom'; -import App from './App'; -import reportWebVitals from './reportWebVitals'; -import { BrowserRouter } from 'react-router-dom'; -import { Toaster } from "react-hot-toast"; - - -const root = document.getElementById('root'); -ReactDOM.render( - - - - - - , - root -); -reportWebVitals(); - +version https://git-lfs.github.com/spec/v1 +oid sha256:2b22625dbec47608e73d98fdccab125f1d08248f8198d04e8661c9abbe778bcd +size 530 diff --git a/frontend/src/pages/About/About.js b/frontend/src/pages/About/About.js index 4f6e452..28244fe 100644 --- a/frontend/src/pages/About/About.js +++ b/frontend/src/pages/About/About.js @@ -1,117 +1,3 @@ -import React from 'react'; -import { Swiper, SwiperSlide } from 'swiper/react'; -import { EffectCoverflow, Pagination, Navigation } from 'swiper/modules'; -import 'swiper/css'; -import 'swiper/css/effect-coverflow'; -import 'swiper/css/pagination'; -import 'swiper/css/navigation'; -import './About.css'; - -const About = () => { - const galleryData = [ - { - title: 'Introduction to Algebra', - subtitle: 'Master the basics of algebraic expressions and equations', - img: './images/1.jpg', - link: 'https://example.com/courses/introduction-to-algebra', - }, - { - title: 'Shakespearean Literature', - subtitle: 'Explore the works of William Shakespeare in depth', - img: './images/2.jpg', - link: 'https://example.com/courses/shakespearean-literature', - }, - { - title: 'World History', - subtitle: 'Understand key events that shaped our modern world', - img: './images/3.jpg', - link: 'https://example.com/courses/world-history', - }, - { - title: 'Introduction to Biology', - subtitle: 'Learn the fundamentals of life sciences', - img: './images/4.jpg', - link: 'https://example.com/courses/introduction-to-biology', - }, - { - title: 'Art History and Appreciation', - subtitle: - 'Explore the evolution of art through various cultures and eras', - img: './images/5.jpg', - link: 'https://example.com/courses/art-history-appreciation', - }, - { - title: 'Financial Literacy', - subtitle: 'Learn how to manage personal finances and investments', - img: './images/8.jpg', - link: 'https://example.com/courses/financial-literacy', - }, - { - title: 'Public Speaking Essentials', - subtitle: 'Develop confidence and skill in delivering speeches', - img: './images/11.jpg', - link: 'https://example.com/courses/public-speaking-essentials', - }, - ]; - - return ( -
-
-
- About Us -
-

About Us

-

- Our platform offers a wide array of courses tailored to develop - your skills across diverse areas. In addition to this, we provide - professional career guidance and valuable insights into loans and - grants, ensuring you have the support needed to thrive in your - educational and career pursuits. -

-
-
-
- -
-

Our Gallery

- - {galleryData.map((item, index) => ( - -
- {item.title} -
-
-

{item.title}

- {item.subtitle} -
-
- ))} -
-
-
- ); -}; - -export default About; +version https://git-lfs.github.com/spec/v1 +oid sha256:adacd84b27c31633b83ab23db33962c565eb1f57f9693a2fcc1cdcbdc9e60703 +size 3435 diff --git a/frontend/src/pages/Contact/Contact.js b/frontend/src/pages/Contact/Contact.js index e26da85..fb6665a 100644 --- a/frontend/src/pages/Contact/Contact.js +++ b/frontend/src/pages/Contact/Contact.js @@ -1,83 +1,3 @@ -import React, { useState } from "react"; -import { BsPerson, BsEnvelope } from "react-icons/bs"; - // Importing Bootstrap Icons for person and envelope icons -import './Contact.css' -function Contact() { - const [isSubmitted, setIsSubmitted] = useState(false); - - const handleSubmit = (event) => { - event.preventDefault(); - // Here you would typically handle the form submission, - // e.g., sending data to a server - setIsSubmitted(true); - }; - - return ( -
-
-
Contact
-
-
-

We'd love to help

-
- - {isSubmitted ? ( -
-

Thank you for your message!

-

We'll get back to you as soon as possible.

-
- ) : ( -
-
- - -
-
- - -
-
- - -
-
-
- )} -
-
-
- - ); -} - -export default Contact; +version https://git-lfs.github.com/spec/v1 +oid sha256:1bdc9711e33e719263e853f736225fba8e557ffcf1d9c7bcd1586a89d466ef91 +size 2939 diff --git a/frontend/src/pages/Contributor/ContributorsPage.jsx b/frontend/src/pages/Contributor/ContributorsPage.jsx index 8ca8267..002194b 100644 --- a/frontend/src/pages/Contributor/ContributorsPage.jsx +++ b/frontend/src/pages/Contributor/ContributorsPage.jsx @@ -1,239 +1,3 @@ -import React, { useEffect, useState } from 'react'; -import { motion, AnimatePresence } from 'framer-motion'; - -const ContributorCard = ({ login, avatar_url, html_url, contributions, type: initialType }) => { - const [type, setType] = useState(initialType); - - useEffect(() => { - if (login === 'skmirajulislam') { - setType('Admin'); - } else { - setType(initialType); - } - }, [login, initialType]); - - return ( - -
- {login} -

{login}

-

{type}

-
- {contributions} contributions -
-
-
- - - - - - View Profile - - - - -
-
- ) -}; - - -const StatCard = ({ label, value, icon }) => ( - -
- {icon} -
-
-

{value}

-

{label}

-
-
-); - -const ContributorsPage = () => { - const [contributors, setContributors] = useState([]); - const [repoStats, setRepoStats] = useState({}); - const [loading, setLoading] = useState(true); - const [email, setEmail] = useState(''); - - useEffect(() => { - const fetchData = async () => { - try { - const contributorsResponse = await fetch('https://api.github.com/repos/Vin205/Enyanjyoti/contributors'); - const contributorsData = await contributorsResponse.json(); - setContributors(contributorsData); - - const repoResponse = await fetch('https://api.github.com/repos/Vin205/Enyanjyoti'); - const repoData = await repoResponse.json(); - setRepoStats({ - stars: repoData.stargazers_count, - forks: repoData.forks_count, - openIssues: repoData.open_issues_count, - }); - } catch (error) { - console.error('Error fetching data:', error); - } finally { - setLoading(false); - } - }; - - fetchData(); - }, []); - - const handleSubmit = (e) => { - e.preventDefault(); - console.log('Submitted email:', email); - setEmail(''); - }; - - return ( - <> -
- {/* Hero Section */} -
-
-
- - Our Amazing Contributors - - - Shaping the future of Enyanjyoti, one commit at a time - - - - Become a Contributor - - -
-
- - {/* Stats Section */} -
-
-

Project Statistics

-
- - - } - /> - sum + contributor.contributions, 0)} - icon={ - - } - /> - - - } - /> - - - } - /> -
-
-
- - {/* Contributors Grid */} -
-
-

Meet Our Contributors

- - {loading ? ( - -
-
- ) : ( - - {contributors.map((contributor) => ( - - ))} - - )} -
-
-
- - {/* Call to Action */} -
-
-

Join Our Contributors

-

- Be a part of something great! Whether you're fixing bugs, adding features, or creating new ideas, your contributions matter. -

-
- setEmail(e.target.value)} - placeholder="Enter your email" - className="w-full max-w-md px-4 py-2 text-gray-800 border border-gray-300 rounded-lg focus:ring focus:ring-blue-500" - required - /> - -
-
-
-
- - ); -} - -export default ContributorsPage; \ No newline at end of file +version https://git-lfs.github.com/spec/v1 +oid sha256:4816026ca73fee7339c01c0bff28d36d566e2fe1aa565101ea5eef5c3aaaad13 +size 10710 diff --git a/frontend/src/pages/Dashboard/Dashboard.js b/frontend/src/pages/Dashboard/Dashboard.js index fdf7647..d5edd92 100644 --- a/frontend/src/pages/Dashboard/Dashboard.js +++ b/frontend/src/pages/Dashboard/Dashboard.js @@ -1,21 +1,3 @@ -import React from 'react'; -import useLogout from '../../components/Firebase/logout'; -import useAuth from '../../components/Firebase/useAuth'; - -const ExampleComponent = () => { - useAuth(); - const logout = useLogout(); - - const handleLogout = () => { - logout(); - }; - - return ( -
-

Welcome to the Example Component

- -
- ); -}; - -export default ExampleComponent; +version https://git-lfs.github.com/spec/v1 +oid sha256:525dcf5ec31dc3991b59a1ec6cb7dcd45ee3b0b360898158f9c244baab0b9a21 +size 484 diff --git a/frontend/src/pages/Error/index.js b/frontend/src/pages/Error/index.js index 3a13856..f1bb139 100644 --- a/frontend/src/pages/Error/index.js +++ b/frontend/src/pages/Error/index.js @@ -1,41 +1,3 @@ -/** @format */ - -import React from "react"; -import { Link } from "react-router-dom"; - -const Error = () => { - return ( -
-
-
-
-
-
-

- Looks like you're lost -

- -

- The page you are looking for is not available! -

- - - Home - -
-
-
-
- ); -}; - -export default Error; +version https://git-lfs.github.com/spec/v1 +oid sha256:f29129c31994dfc156e064b68d291d0c5d63bb943eb90d1b326709861a8cff62 +size 968 diff --git a/frontend/src/pages/Home/Faqs.jsx b/frontend/src/pages/Home/Faqs.jsx index 0eb6483..fa7fb78 100644 --- a/frontend/src/pages/Home/Faqs.jsx +++ b/frontend/src/pages/Home/Faqs.jsx @@ -1,82 +1,3 @@ -import React, { useState } from "react"; -import "./Faqs.css"; -import { Link } from "react-router-dom"; - -export default function Faqs() { - const [activeIndex, setActiveIndex] = useState(null); - - const faqs = [ - { - question: "What is the platform all about?", - answer: ( - - Our platform offers a wide range of courses, career advice, and - information about loans and grants to help you succeed. For more - details, visit our{" "} - - About Us - {" "} - page. - - ), - }, - { - question: "How can I sign up for a course?", - answer: ( - - To sign up, click on the{" "} - - Sign Up - {" "} - button at the top of the page, create an account, and explore - available courses. - - ), - }, - { - question: "What are the benefits of enrolling?", - answer: - "By enrolling, you gain access to exclusive learning materials, career guidance, and personalized support.", - }, - { - question: "How do I apply for loans and grants?", - answer: ( - - Visit the{" "} - - Loans and Grants - {" "} - section of our platform for a detailed guide on how to apply easily. - - ), - }, - ]; - - const toggleAnswer = (index) => { - setActiveIndex(activeIndex === index ? null : index); - }; - - return ( -
-

FAQs

-
- {faqs.map((faq, index) => ( -
setActiveIndex(index)} - onMouseLeave={() => setActiveIndex(null)} - > -
toggleAnswer(index)}> -

{faq.question}

- {activeIndex === index ? "-" : "+"} -
- {activeIndex === index && ( -

{faq.answer}

- )} -
- ))} -
-
- ); -} +version https://git-lfs.github.com/spec/v1 +oid sha256:986bea77dcc842e1d2e4c3491637d478262823c7e4207695d52e9fda05581f1d +size 2339 diff --git a/frontend/src/pages/Home/Hom.js b/frontend/src/pages/Home/Hom.js index 053ff78..ea4c6f6 100644 --- a/frontend/src/pages/Home/Hom.js +++ b/frontend/src/pages/Home/Hom.js @@ -1,122 +1,3 @@ -import React, { useEffect, useState } from "react"; -import { Link } from "react-router-dom"; -import "./Hom.css"; -import Faqs from "./Faqs"; - -export default function Hom() { - useEffect(() => { - const script = document.createElement("script"); - script.src = - "https://unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.mjs"; - script.type = "module"; - document.body.appendChild(script); - - return () => { - document.body.removeChild(script); - }; - }, []); - - const [showScrollTop, setShowScrollTop] = useState(false); - - useEffect(() => { - const handleScroll = () => { - setShowScrollTop(window.scrollY > 120); - }; - - window.addEventListener("scroll", handleScroll); - return () => { - window.removeEventListener("scroll", handleScroll); - }; - }, []); - - const cardDetails = [ - { - title: "Education", - description: - "Get complete understanding of concepts. Adapt life skills. Gain general knowledge and enjoy activity-based learning.", - image: "./images/e3.png", - action: "Learn Now", - link: "https://wikiedu.org/" - }, - { - title: "Career", - description: - "Explore career opportunities and make yourself ready for employment in various fields. Learn how to build your own startup and become a successful entrepreneur.", - image: "./images/e4.png", - action: "Explore Now", - link: "https://en.wikipedia.org/wiki/Career" - }, - { - title: "Loans and Grants", - description: - "Complete information about loans, grants, and scholarships. Simple procedure and steps to apply easily.", - image: "./images/e5.png", - action: "Check Now", - link: "https://enyanjyoti.vercel.app/loan" - }, - ]; - - return ( -
-
- {showScrollTop && ( - - )} - -
-
- -
-
-

- Dive into the World of Knowledge, Skills and Wisdom -

-

- Empower yourself with our comprehensive learning platform -

-
- - Sign Up - - - Login - -
-
-
- -
- {cardDetails.map((item, index) => ( -
-
-

{item.title}

-
-
- {item.title} -

{item.description}

- - - -
-
- ))} -
- -
- -
-
-
- ); -} +version https://git-lfs.github.com/spec/v1 +oid sha256:15c06f319606630ba61e9a0978056288bc7d04d0695c6733c59373505487fd2d +size 4020 diff --git a/frontend/src/pages/Loan/Loan.js b/frontend/src/pages/Loan/Loan.js index 72caffe..8f34d4b 100644 --- a/frontend/src/pages/Loan/Loan.js +++ b/frontend/src/pages/Loan/Loan.js @@ -1,163 +1,3 @@ -import React, { useState } from 'react'; -import './Loan.css'; // Import your custom CSS file - -const Loan = () => { - const [loanAmount, setLoanAmount] = useState(''); - const [interestRate, setInterestRate] = useState(''); - const [loanTerm, setLoanTerm] = useState(''); - const [paymentFrequency, setPaymentFrequency] = useState('monthly'); - const [calculationResult, setCalculationResult] = useState(null); - - const calculateLoan = () => { - const principal = parseFloat(loanAmount); - const annualRate = parseFloat(interestRate) / 100; - const termInYears = parseFloat(loanTerm); - - if (isNaN(principal) || isNaN(annualRate) || isNaN(termInYears)) { - alert('Please enter valid numbers for all fields.'); - return; - } - - // Determine the number of payments per year and the interest rate per payment based on frequency - let paymentsPerYear; - if (paymentFrequency === 'monthly') { - paymentsPerYear = 12; - } else if (paymentFrequency === 'biweekly') { - paymentsPerYear = 26; - } else { - paymentsPerYear = 52; - } - - const ratePerPeriod = annualRate / paymentsPerYear; - const totalPayments = termInYears * paymentsPerYear; - - // Calculate the payment per period using the amortization formula - const paymentPerPeriod = (principal * ratePerPeriod * Math.pow(1 + ratePerPeriod, totalPayments)) / - (Math.pow(1 + ratePerPeriod, totalPayments) - 1); - - const totalPayment = paymentPerPeriod * totalPayments; - const totalInterest = totalPayment - principal; - - setCalculationResult({ - paymentPerPeriod: paymentPerPeriod.toFixed(2), - totalPayment: totalPayment.toFixed(2), - totalInterest: totalInterest.toFixed(2), - frequency: paymentFrequency.charAt(0).toUpperCase() + paymentFrequency.slice(1) - }); - }; - - return ( -
-

Understanding Loans and Grants

- -
-
-

What is a Loan?

-

- A loan is a sum of money that is borrowed and is expected to be paid back with interest. - Loans can be secured (backed by collateral) or unsecured (not backed by collateral). -

- - - -
- -
-

What is a Grant?

-

- A grant is a financial award given by a government agency, organization, or individual for a specific purpose, - and it does not need to be paid back. -

- - - -
- -
-

Types of Loans

-
    -
  • Personal Loans
  • -
  • Student Loans
  • -
  • Mortgage Loans
  • -
  • Auto Loans
  • -
- - - -
-
- -
-

Tips for Applying for Loans and Grants

- -
- -
-

Loan Calculator

-
e.preventDefault()}> - - - - - -
- {calculationResult && ( -
-

Loan Summary:

-

{calculationResult.frequency} Payment: ${calculationResult.paymentPerPeriod}

-

Total Payment: ${calculationResult.totalPayment}

-

Total Interest: ${calculationResult.totalInterest}

-
- )} -
-
- ); -}; - -export default Loan; +version https://git-lfs.github.com/spec/v1 +oid sha256:bf5322c2ecfbc917f57fe7ce3a5fa72907bbe7ad020f7498061e7e7c5a90efcc +size 7404 diff --git a/frontend/src/pages/Preloader/Preloader.jsx b/frontend/src/pages/Preloader/Preloader.jsx index a2966d4..7b78499 100644 --- a/frontend/src/pages/Preloader/Preloader.jsx +++ b/frontend/src/pages/Preloader/Preloader.jsx @@ -1,22 +1,3 @@ -import "./Preloader.css"; - -const Preloader = () => { - return ( -
- - - E-NYANJYOTI - - -
- ); -}; - -export default Preloader; +version https://git-lfs.github.com/spec/v1 +oid sha256:310959c16bc85e9f772d7b3e1ad31edd23e1398244592a186658fe41a7185948 +size 417 diff --git a/frontend/src/pages/career/career.js b/frontend/src/pages/career/career.js index e53e4ff..d370328 100644 --- a/frontend/src/pages/career/career.js +++ b/frontend/src/pages/career/career.js @@ -1,84 +1,3 @@ -import React, { useState } from "react"; -import "./Career.css"; // Add this line to import the CSS - -const Career = () => { - const [activeTab, setActiveTab] = useState("explore"); - - const careerSections = [ - { - id: "explore", - title: "Explore Careers", - content: - "Discover a wide range of career paths across various industries. Our comprehensive guides provide insights into job roles, required skills, and growth opportunities.", - }, - { - id: "prepare", - title: "Career Preparation", - content: - "Get ready for your dream job with our career preparation resources. Learn about resume writing, interview techniques, and professional development strategies.", - }, - { - id: "entrepreneurship", - title: "Entrepreneurship", - content: - "Interested in starting your own business? Explore our entrepreneurship resources to learn about business planning, funding options, and startup strategies.", - }, - ]; - - const careerTips = [ - "Network actively in your industry", - "Continuously update your skills", - "Seek mentorship opportunities", - "Build a strong online presence", - "Stay informed about industry trends", - ]; - - return ( -
-

Shape Your Future Career

- -
- {careerSections.map((section) => ( - - ))} -
- -
- {careerSections.map((section) => ( -
-

{section.title}

-

{section.content}

-
- ))} -
- -
-

Career Success Tips

- -
- -
-

Ready to Take the Next Step?

-

Explore our resources and start building your dream career today!

- -
-
- ); -}; - -export default Career; +version https://git-lfs.github.com/spec/v1 +oid sha256:a2ab8a2d8c631c368810b82a5d2c1cb01ed22bb68acfcd9d968d90354342f878 +size 2527 diff --git a/frontend/src/reportWebVitals.js b/frontend/src/reportWebVitals.js index 5253d3a..4cbfd61 100644 --- a/frontend/src/reportWebVitals.js +++ b/frontend/src/reportWebVitals.js @@ -1,13 +1,3 @@ -const reportWebVitals = onPerfEntry => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals; +version https://git-lfs.github.com/spec/v1 +oid sha256:714851669856152806c289f9aac6240b414bbac50c60ee4f7e6247f31eac0c1c +size 362 diff --git a/frontend/src/setupTests.js b/frontend/src/setupTests.js index 8f2609b..7caaab3 100644 --- a/frontend/src/setupTests.js +++ b/frontend/src/setupTests.js @@ -1,5 +1,3 @@ -// jest-dom adds custom jest matchers for asserting on DOM nodes. -// allows you to do things like: -// expect(element).toHaveTextContent(/react/i) -// learn more: https://github.com/testing-library/jest-dom -import '@testing-library/jest-dom'; +version https://git-lfs.github.com/spec/v1 +oid sha256:22583759d0045fdf8d62c9db0aacba9fd8bddde79c671aa08c97dcfd4e930cc6 +size 241 diff --git a/frontend/src/validations/validation.js b/frontend/src/validations/validation.js index df45b27..bcd9796 100644 --- a/frontend/src/validations/validation.js +++ b/frontend/src/validations/validation.js @@ -1,24 +1,3 @@ -import * as yup from "yup"; - -export const loginValidation = yup.object().shape({ - email: yup - .string() - .email("Email format invalid") - .required("Email is required"), - password: yup.string().required("Password is required"), -}); - -export const registerValidation = yup.object().shape({ - email: yup - .string() - .email("Invalid email format") - .required("Email is required"), - password: yup - .string() - .min(6, "Password should be at least 6 characters") - .required("Password is required"), - confirmPassword: yup - .string() - .oneOf([yup.ref("password"), null], "Passwords must match") - .required("Confirm password is required"), -}); +version https://git-lfs.github.com/spec/v1 +oid sha256:8b8535bd6b3f069f04df38d2fa2f2d75ab32c8416df828bb9fe5e51b439ebc26 +size 673