-
Notifications
You must be signed in to change notification settings - Fork 7
Footer and Events Page #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
890c501
3792fc2
e721528
5522cd6
8dba7ef
9bd7f44
9b90578
5a69074
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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/ |
| 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. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i think you meant to do this : currently this is only returning the outlet |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ const Playground = () => { | |
| <> | ||
| <Navbar /> | ||
| <Outlet /> | ||
| <Footer /> | ||
| </> | ||
| ); | ||
| }; | ||
|
|
||
| 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; |
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. map everything from config files, for example, instead of doing this: you can do this instead: |
| 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; |
Anwesha28S marked this conversation as resolved.
Show resolved
Hide resolved
|
| 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; |
Uh oh!
There was an error while loading. Please reload this page.