Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 29 additions & 28 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.eslintcache

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

#Environment Variables
.env
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
.eslintcache

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

#Environment Variables
.env
dist/
42 changes: 21 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
MIT License

Copyright (c) 2025 OpenCodeNITR

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
MIT License
Copyright (c) 2025 OpenCodeNITR
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ASME</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
integrity="sha512-pap6a2xqMML/7KZ8mUg4e8lVrW9Rp4kdqWphUVi1z9trFtQlfZo5x3fXU8AX3r6UeHeB+uS3vhwKkD6tw+OzTg=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
</head>
<body>
<div id="root"></div>
Expand Down
35 changes: 31 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not install any library, all the necessary libraries are provided, if you need specific library, ask in the group first

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"@tailwindcss/vite": "^4.1.11",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-icons": "^5.5.0",
"react-router": "^7.6.3",
"react-router-dom": "^7.6.3",
"tailwindcss": "^4.1.11"
},
"devDependencies": {
Expand All @@ -29,7 +31,7 @@
"husky": "^9.1.7",
"lint-staged": "^16.1.2",
"prettier": "^3.6.2",
"vite": "^7.0.3"
"vite": "^7.0.4"
},
"lint-staged": {
"**/*": "prettier --write --ignore-unknown",
Expand Down
1 change: 1 addition & 0 deletions src/Playground.jsx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you meant to do this :


import { Outlet } from "react-router";

const Playground = () => {
  return
  <>
    <div className="min-h-screen">
      <Outlet />
    </div>
    <Footer />
  </>;
};

export default Playground;

currently this is only returning the outlet

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const Playground = () => {
<>
<Navbar />
<Outlet />
<Footer />
</>
);
};
Expand Down
21 changes: 21 additions & 0 deletions src/components/playground/EventCard.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";

const EventCard = () => {
return (
<div className="bg-gray-50 rounded-xl shadow-md overflow-hidden flex flex-col md:flex-row border-2 border-[#0B2044]">
<img
src="https://res.cloudinary.com/dswk9scro/image/upload/v1752313324/image_urekzp.png"
alt="Event"
className="w-full md:w-2/5 object-cover"
/>
<div className="p-4 flex flex-col justify-center">
<h3 className="text-xl font-semibold text-[#0B2044]">Sample Event</h3>
<p className="text-sm text-gray-600 mt-1">
Placeholder description for the event.
</p>
<p className="text-sm text-gray-400 mt-2">Date: 25 Aug 2025</p>
</div>
</div>
);
};
export default EventCard;
137 changes: 137 additions & 0 deletions src/components/playground/Footer.jsx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

map everything from config files,

for example, instead of doing this:

              <li>
              <Link to="/about" className="hover:underline">
                About us
              </Link>
            </li>
            <li>
              <Link to="/team" className="hover:underline">
                Team
              </Link>
            </li>
            <li>
              <Link to="/events" className="hover:underline">
                Events
              </Link>
            </li>
            <li>
              <Link to="/achievements" className="hover:underline">
                Achievements
              </Link>
            </li>
            <li>
              <Link to="/gallery" className="hover:underline">
                Gallery
              </Link>
            </li>

you can do this instead:

//  make a file in config folder for this
const footerLinks = [
    {
        to : "/facebook"
        text : "facebook"
    }, ..... //make objects for each link
]

// and in this Footer.jsx file,
footerLinks.map((item,idx)=>{
        <li>
          <Link to={item.to} className="hover:underline">
                {item.text}
          </Link>
       </li>
})

Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// src/components/Footer.jsx
import { Link } from "react-router-dom";
import React from "react";
import {
FaFacebookF,
FaTwitter,
FaInstagram,
FaLinkedinIn,
} from "react-icons/fa";
import { FiMail, FiPhone } from "react-icons/fi"; // Feather Icons
import { GoLocation } from "react-icons/go"; //location icons
const Footer = ({
title = "ASME NIT Rourkela Chapter",
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.",

social = {
facebook: "#",
twitter: "#",
instagram: "#",
linkedin: "#",
},
year = new Date().getFullYear(),
}) => {
return (
<footer className="bg-[#0B2044] text-white px-10 py-8">
<div className="max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-3 gap-8">
{/* Left Section */}
<div>
<div className="flex gap-4 mb-4 flex-wrap">
<img
src="https://res.cloudinary.com/dswk9scro/image/upload/v1752377324/Group_cropped_qgqzw9.png"
alt="ASME Logo"
className="w-8 h-8 object-contain"
/>
<h2 className="text-xl font-bold">{title}</h2>
</div>

<p className="text-sm">{description}</p>
<div className="flex gap-4 mt-4 text-lg">
<a
href={social.facebook}
aria-label="Facebook"
target="_blank"
rel="noopener noreferrer"
>
<FaFacebookF className="hover:text-gray-300 transition" />
</a>
<a
href={social.twitter}
aria-label="Twitter"
target="_blank"
rel="noopener noreferrer"
>
<FaTwitter className="hover:text-gray-300 transition" />
</a>
<a
href={social.instagram}
aria-label="Instagram"
target="_blank"
rel="noopener noreferrer"
>
<FaInstagram className="hover:text-gray-300 transition" />
</a>
<a
href={social.linkedin}
aria-label="LinkedIn"
target="_blank"
rel="noopener noreferrer"
>
<FaLinkedinIn className="hover:text-gray-300 transition" />
</a>
</div>
</div>

{/* Middle Section */}
<div>
<h3 className="text-lg font-semibold">Quick Links</h3>
<ul className="mt-2 space-y-1 text-sm">
<li>
<Link to="/playground/about" className="hover:underline">
About us
</Link>
</li>
<li>
<Link to="/playground/team" className="hover:underline">
Team
</Link>
</li>
<li>
<Link to="/playground/events" className="hover:underline">
Events
</Link>
</li>
<li>
<Link to="/playground/achievements" className="hover:underline">
Achievements
</Link>
</li>
<li>
<Link to="/playground/gallery" className="hover:underline">
Gallery
</Link>
</li>
</ul>
</div>

{/* Right Section */}
<div>
<h3 className="text-lg font-semibold">Contact Info</h3>
<div className="text-sm mt-4 text-white space-y-4">
<div className="flex items-center gap-4">
<FiMail className=" text-[#51B8F2] text-xl hover:text-white transition" />
<span>contact@asmenitrkl.ac.in</span> {/* To be added */}
</div>
<div className="flex items-center gap-4">
<FiPhone className="text-[#51B8F2] text-xl hover:text-white transition" />
<span>+91-1234567890</span> {/* To be added */}
</div>
<div className="flex items-start gap-4">
<GoLocation className=" text-[#51B8F2] text-xl mt-1 hover:text-white transition" />
<span>
National Institute of Technology Rourkela, <br /> Odisha -
769008
</span>
</div>
</div>
</div>
</div>

<div className="text-center text-sm mt-8 border-t border-white/20 pt-4">
© {year} {title}. All rights reserved.
</div>
</footer>
);
};

export default Footer;
15 changes: 15 additions & 0 deletions src/components/shared/MainLayout.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Outlet } from "react-router-dom";
import Footer from "../playground/Footer";

const MainLayout = () => {
return (
<div className="min-h-screen flex flex-col">
<main className="flex-grow">
<Outlet />
</main>
<Footer />
</div>
);
};

export default MainLayout;
Loading