Skip to content

Commit f89f984

Browse files
authored
Merge pull request #39 from Anwesha28S/Footer_Events
Events Page and Footer Fix
2 parents 1487ba5 + 72a1569 commit f89f984

4 files changed

Lines changed: 43 additions & 72 deletions

File tree

src/components/EventCard.jsx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
import React from "react";
22

3-
const EventCard = () => {
3+
const EventCard = ({ title, description, image }) => {
44
return (
55
<div className="bg-gray-50 rounded-xl shadow-md overflow-hidden flex flex-col md:flex-row border-2 border-[#0B2044]">
66
<img
7-
src="https://res.cloudinary.com/dswk9scro/image/upload/v1752313324/image_urekzp.png"
8-
alt="Event"
9-
className="w-full md:w-2/5 object-cover"
7+
src={image}
8+
alt={title}
9+
className="w-full md:w-2/5 object-cover aspect-[4/3]"
1010
/>
1111
<div className="p-4 flex flex-col justify-center">
12-
<h3 className="text-xl font-semibold text-[#0B2044]">Sample Event</h3>
13-
<p className="text-sm text-gray-600 mt-1">
14-
Placeholder description for the event.
15-
</p>
16-
<p className="text-sm text-gray-400 mt-2">Date: 25 Aug 2025</p>
12+
<h3 className="text-2xl font-semibold text-[#0B2044]">{title}</h3>
13+
<p className="text-base text-gray-600 mt-2">{description}</p>
1714
</div>
1815
</div>
1916
);
2017
};
18+
2119
export default EventCard;

src/components/Footer.jsx

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ const Footer = ({
1212
description = "The American Society of Mechanical Engineers Student Chapter at NIT Rourkela, fostering a culture of innovation and technical learning through innovation, collaboration, and hands-on learning.",
1313

1414
social = {
15-
facebook: "#",
16-
twitter: "#",
17-
instagram: "#",
18-
linkedin: "#",
15+
instagram: "https://www.instagram.com/asme.nitrkl/",
16+
linkedin: "https://www.linkedin.com/company/asme-nit-rourkela",
1917
},
2018
year = new Date().getFullYear(),
2119
}) => {
@@ -35,22 +33,6 @@ const Footer = ({
3533

3634
<p className="text-sm">{description}</p>
3735
<div className="flex gap-4 mt-4 text-lg">
38-
<a
39-
href={social.facebook}
40-
aria-label="Facebook"
41-
target="_blank"
42-
rel="noopener noreferrer"
43-
>
44-
<FaFacebookF className="hover:text-gray-300 transition" />
45-
</a>
46-
<a
47-
href={social.twitter}
48-
aria-label="Twitter"
49-
target="_blank"
50-
rel="noopener noreferrer"
51-
>
52-
<FaTwitter className="hover:text-gray-300 transition" />
53-
</a>
5436
<a
5537
href={social.instagram}
5638
aria-label="Instagram"
@@ -72,13 +54,8 @@ const Footer = ({
7254

7355
{/* Middle Section */}
7456
<div>
75-
<h3 className="text-lg font-semibold">Quick Links</h3>
57+
<h3 className="text-xl font-semibold">Quick Links</h3>
7658
<ul className="mt-2 space-y-1 text-sm">
77-
<li>
78-
<Link to="/about" className="hover:underline">
79-
About us
80-
</Link>
81-
</li>
8259
<li>
8360
<Link to="/team" className="hover:underline">
8461
Team
@@ -104,15 +81,15 @@ const Footer = ({
10481

10582
{/* Right Section */}
10683
<div>
107-
<h3 className="text-lg font-semibold">Contact Info</h3>
84+
<h3 className="text-xl font-semibold">Contact Info</h3>
10885
<div className="text-sm mt-4 text-white space-y-4">
10986
<div className="flex items-center gap-4">
11087
<FiMail className=" text-[#51B8F2] text-xl hover:text-white transition" />
111-
<span>contact@asmenitrkl.ac.in</span> {/* To be added */}
88+
<span>asme.nitrkl@gmail.com</span>
11289
</div>
11390
<div className="flex items-center gap-4">
11491
<FiPhone className="text-[#51B8F2] text-xl hover:text-white transition" />
115-
<span>+91-1234567890</span> {/* To be added */}
92+
<span>+91-1234567890</span>
11693
</div>
11794
<div className="flex items-start gap-4">
11895
<GoLocation className=" text-[#51B8F2] text-xl mt-1 hover:text-white transition" />

src/config/events.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
const events = [
2+
{
3+
title: "Dart-a-Thon",
4+
description:
5+
"Dart-a-Thon was an exciting hands-on challenge where participants were provided with simple DIY materials—such as stretchable rubber bands, ice cream sticks, and more—to design their own dart-launching mechanism. Using their creations, they aimed at a target board to score points. The participant with the highest score emerged as the champion, combining creativity, engineering, and precision in one thrilling competition.",
6+
image:
7+
"https://res.cloudinary.com/dswk9scro/image/upload/v1754816191/Dart-a-thon_z29oj0.jpg",
8+
type: "past",
9+
},
10+
{
11+
title: "Turbogen X",
12+
description:
13+
"Turbogen-X put participants' ingenuity to the test as they crafted custom wind blades from simple DIY materials. With limited resources and unlimited imagination, they raced to create designs capable of capturing the wind most efficiently, turning a simple build into a battle of innovation and aerodynamics.",
14+
image:
15+
"https://res.cloudinary.com/dswk9scro/image/upload/v1754816173/Turbogen_x_ozbic4.jpg",
16+
type: "past",
17+
},
18+
{
19+
title: "3D Printing Workshop",
20+
description:
21+
"An interactive 3D Printing Workshop was hosted, showcasing real-world applications and hands-on training with industry-standard software. Professionals and teachers from nearby schools attended to promote awareness of the technology. A live highlight was the 3D-printing of a chess pawn in just 30 minutes, captivating the audience.",
22+
image:
23+
"https://res.cloudinary.com/dswk9scro/image/upload/v1754816159/3D_printing_workshop_nrxkho.jpg",
24+
type: "past",
25+
},
26+
];
27+
28+
export default events;

src/pages/events/Events.jsx

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
11
import { useState } from "react";
22
import EventCard from "../../components/EventCard";
3-
3+
import events from "../../config/events";
44
const Events = () => {
55
const [filter, setFilter] = useState("all");
66

7-
const events = [
8-
{
9-
title: "AI Workshop",
10-
date: "2025-07-10",
11-
description: "Intro to AI, ML, and real-world applications.",
12-
image: "/images/ai.jpg",
13-
type: "past",
14-
},
15-
{
16-
title: "Autonomous Bot Hackathon",
17-
date: "2025-08-01",
18-
description: "Build bots and compete in challenges.",
19-
image: "/images/bot.jpg",
20-
type: "upcoming",
21-
},
22-
{
23-
title: "CAD Design Contest",
24-
date: "2025-06-20",
25-
description: "Show off your SolidWorks skills.",
26-
image: "/images/cad.jpg",
27-
type: "past",
28-
},
29-
];
30-
317
const renderCards = () => {
328
const filteredEvents =
339
filter === "all" ? events : events.filter((e) => e.type === filter);
@@ -49,18 +25,10 @@ const Events = () => {
4925

5026
return (
5127
<div className="px-4 md:px-12 py-8">
52-
<img
53-
src="https://res.cloudinary.com/dswk9scro/image/upload/v1752312233/image_1_nydvj8.png"
54-
alt="events"
55-
className="mx-auto my-12 w-full max-w-xl rounded-xl shadow-md object-cover"
56-
/>
5728
<div className="text-center">
5829
<h2 className="text-3xl font-bold text-[#0B2044]">
5930
Our Organised Events
6031
</h2>
61-
<p className="text-gray-500 mt-2">
62-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis ornare.
63-
</p>
6432

6533
{/* Filter Buttons */}
6634
<div className="flex flex-wrap justify-center gap-4 mt-6">
@@ -70,7 +38,7 @@ const Events = () => {
7038
onClick={() => setFilter(type)}
7139
className={`px-4 py-2 rounded transition ${
7240
filter === type
73-
? "bg-[#51B8F2] text-white"
41+
? "bg-[#0B2044] text-white"
7442
: "border border-[#0B2044] text-[#0B2044]"
7543
}`}
7644
>

0 commit comments

Comments
 (0)