Skip to content

Commit eb3b013

Browse files
committed
"Removed 'dev' flag from package-lock.json, refactored App.jsx, and updated components (Contact, Header, OurAlumni) with minor changes."
1 parent 7bdcfb5 commit eb3b013

File tree

6 files changed

+58
-67
lines changed

6 files changed

+58
-67
lines changed

client/package-lock.json

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/App.jsx

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,31 @@
11
import React from "react";
22
import {BrowserRouter, Route, Routes} from 'react-router-dom'
33
import './index.css';
4-
import UserCard from "./components/UserCards";
54
import Footer from "./components/Footer";
6-
import SignUp from "./components/SignUp";
75
import Login from "./components/Login";
86
import Header from "./components/Header";
97
import Register from "./components/Register";
10-
11-
import ScrollTop from "./components/ScrollTop";
128
import About from "./components/About";
139
import OurAlumni from "./components/OurAlumni";
1410
import Contact from "./components/Contact";
15-
16-
import Contact from "./components/Contact"
11+
import Home from "./components/Home";
1712

1813
// import Profile from "./components/Profile";
1914

2015
export default function App() {
21-
const user = {
22-
name: "AbhiShek Rao",
23-
email: "johndoe@example.com",
24-
avatar: "https://i.postimg.cc/q7HVzS6f/Abhi.jpg",
25-
city: "Gorakhpur",
26-
role: "Web Developer",
27-
passOut: "MCA 2025",
28-
};
2916
return (
3017
<BrowserRouter>
31-
{/* <div style={{
32-
height: '100vh',
33-
overflowY: 'scroll',
34-
scrollbarWidth: 'thin',
35-
scrollbarColor: '#d3d3d3 #f1f1f1',
36-
}}> */}
37-
38-
39-
<Header />
40-
<ScrollTop/>
18+
<Header />
4119
<Routes>
42-
<Route path="/" element={<Register/>}/>
20+
<Route path="/" element={<Home />}/>
4321
<Route path="/register" element={<Register />} />
44-
<Route path="/signup" element={<SignUp />} />
4522
<Route path="/login" element={<Login />} />
4623
<Route path="/about" element={<About />} />
47-
<Route path="/our-alumni" element={<OurAlumni />} />
24+
<Route path="/alumni" element={<OurAlumni />} />
4825
<Route path="/contact" element={<Contact />} />
4926
{/* <Route path="/profile" element={<UserProfile />} /> */}
5027
</Routes>
51-
52-
<Register />
53-
{/* <SignUp/> */}
54-
{/* <Login /> */}
55-
{/* <Profile/> */}
56-
<Contact />
57-
5828
<Footer />
59-
{/* </div> */}
6029
</BrowserRouter>
6130
);
6231
}

client/src/components/Contact.jsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
2-
import React from 'react'
3-
4-
const Contact = () => {
5-
return (
6-
<div>
7-
Contact Page Component
8-
</div>
9-
)
10-
}
11-
12-
export default Contact
13-
141
import React, { useRef } from "react";
152
import emailjs from "@emailjs/browser";
163
import wave from "../assets/wave.png";

client/src/components/Header.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ const Header = () => {
2323
<Link to="/about" className="hover:text-gray-300">
2424
About
2525
</Link>
26-
<Link to="/our-alumni" className="hover:text-gray-300">
26+
<Link to="/alumni" className="hover:text-gray-300">
2727
Our Alumni
2828
</Link>
2929
<Link to="/contact" className="hover:text-gray-300">
3030
Contact
3131
</Link>
32-
<Link to="/signup" className="hover:text-gray-300">
33-
Sign Up
32+
<Link to="/register" className="hover:text-gray-300">
33+
Register as Alumni
3434
</Link>
3535
<Link to="/login" className="hover:text-gray-300">
3636
Log In
@@ -72,14 +72,14 @@ const Header = () => {
7272
<Link to="/about" className="block text-sm font-semibold hover:text-gray-300">
7373
About
7474
</Link>
75-
<Link to="/our-alumni" className="block text-sm font-semibold hover:text-gray-300">
76-
Our Alumni
75+
<Link to="/alumni" className="block text-sm font-semibold hover:text-gray-300">
76+
Alumni
7777
</Link>
7878
<Link to="/contact" className="block text-sm font-semibold hover:text-gray-300">
7979
Contact
8080
</Link>
81-
<Link to="/signup" className="block text-sm font-semibold hover:text-gray-300">
82-
Sign Up
81+
<Link to="/register" className="block text-sm font-semibold hover:text-gray-300">
82+
Register as Alumni
8383
</Link>
8484
<Link to="/login" className="block text-sm font-semibold hover:text-gray-300">
8585
Log In

client/src/components/Home.jsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from "react";
2+
const Home = () => {
3+
return (
4+
<div>
5+
<div className="flex items-center justify-center h-screen bg-gray-800 text-white">
6+
<h1 className="text-4xl font-semibold">Home</h1>
7+
</div>
8+
</div>
9+
);
10+
}
11+
12+
export default Home;
Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,38 @@
1-
import React from 'react'
1+
import React from "react";
2+
import UserCards from "./UserCards";
23

34
const OurAlumni = () => {
5+
6+
const user = {
7+
name: "AbhiShek Rao",
8+
email: "johndoe@example.com",
9+
avatar: "https://i.postimg.cc/q7HVzS6f/Abhi.jpg",
10+
city: "Gorakhpur",
11+
role: "Web Developer",
12+
passOut: "MCA 2025",
13+
};
14+
415
return (
5-
<div>
6-
Our Alumni page Component
16+
<>
17+
<div className="container mx-auto px-4">
18+
<div className="flex flex-wrap -mx-4">
19+
<div className="w-full md:w-1/2 xl:w-1/3 p
20+
x-4 mb-8">
21+
<UserCards user={user} />
22+
</div>
23+
<div className="w-full md:w-1/2 xl:w-1/3 px-4 mb-8">
24+
<UserCards user={user} />
25+
</div>
26+
<div className="w-full md:w-1/2 xl:w-1/3 px-4 mb-8">
27+
<UserCards user={user} />
28+
29+
</div>
30+
</div>
31+
732
</div>
8-
)
9-
}
33+
</>
34+
35+
);
36+
};
1037

11-
export default OurAlumni
38+
export default OurAlumni;

0 commit comments

Comments
 (0)