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
26 changes: 12 additions & 14 deletions components/Shared/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const Navbar = () => {
{ id: 3, text: "Our Story", path: "/about" },
{ id: 4, text: "Events", path: "/events" },
{ id: 5, text: "Contact Us", path: "/contact" },

{ id: 6, text: "OSSome OD", path: "/ODPage" },

// { id: 6, text: "Submission", path: "/submission" }
];

Expand All @@ -48,9 +49,8 @@ const Navbar = () => {
{navItems.map((item) => (
<li
key={item.id}
className={`p-4 font-medium hover:text-green-500 m-2 cursor-pointer duration-300 ${
currentPath === item.path ? "text-bright_green" : ""
}`}
className={`p-4 font-medium hover:text-green-500 m-2 cursor-pointer duration-300 ${currentPath === item.path ? "text-bright_green" : ""
}`}
onClick={() => handleNavigation(item.path)}
>
{item.text}
Expand All @@ -65,20 +65,18 @@ const Navbar = () => {
)}
</div>
<ul
className={`fixed md:hidden top-20 right-0 w-full h-[calc(100%-5rem)] font-semibold text-md flex flex-col justify-start items-center space-y-6 bg-black transition-transform duration-500 z-50 ${
nav
? "transform translate-x-0"
: "transform translate-x-full"
}`}
className={`fixed md:hidden top-20 right-0 w-full h-[calc(100%-5rem)] font-semibold text-md flex flex-col justify-start items-center space-y-6 bg-black transition-transform duration-500 z-50 ${nav
? "transform translate-x-0"
: "transform translate-x-full"
}`}
>
{navItems.map((item) => (
<li
key={item.id}
className={`p-4 w-[80%] rounded-lg duration-300 hover:text-bright_green cursor-pointer font-poppins text-center first:mt-10 ${
currentPath === item.path
? "text-black bg-bright_green"
: "text-white bg-zinc-900"
}`}
className={`p-4 w-[80%] rounded-lg duration-300 hover:text-bright_green cursor-pointer font-poppins text-center first:mt-10 ${currentPath === item.path
? "text-black bg-bright_green"
: "text-white bg-zinc-900"
}`}
onClick={() => handleNavigation(item.path)}
>
{item.text}
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"@nextui-org/navbar": "^2.0.32",
"@nextui-org/react": "^2.4.1",
"@nextui-org/system": "^2.2.1",
"@react-pdf/renderer": "^4.3.0",
"@vercel/analytics": "^1.3.1",
"axios": "^1.7.3",
"dotenv": "^16.4.5",
Expand All @@ -32,12 +33,14 @@
"react": "^18",
"react-confetti": "^6.1.0",
"react-dom": "^18",
"react-icons": "^5.3.0",
"react-icons": "^5.5.0",
"react-pdf": "^9.2.1",
"react-router-dom": "^6.22.3",
"react-toastify": "^10.0.5",
"react-transition-group": "^4.4.5",
"sharp": "^0.33.5",
"swiper": "^11.1.12"
"swiper": "^11.1.12",
"tesseract.js": "^6.0.0"
},
"devDependencies": {
"autoprefixer": "^10.0.1",
Expand Down
56 changes: 56 additions & 0 deletions pages/ODPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import React from 'react';
import { FiDownload, FiExternalLink } from 'react-icons/fi';

const ODPage = () => {
const pdfUrl = "/OD_OH2.pdf";

return (
<div className="min-h-screen flex flex-col bg-bg_black text-white pb-40">
<header className="py-6 px-4 sm:px-8 border-b border-gray-800">
<div className="max-w-7xl mx-auto flex flex-col sm:flex-row justify-between items-start sm:items-center gap-4 sm:gap-0">
<h1 className="text-2xl sm:text-3xl font-bold text-white">On Duty (OD) List</h1>
<div className="flex flex-col sm:flex-row space-y-2 sm:space-y-0 sm:space-x-4 w-full sm:w-auto">
<a
href={pdfUrl}
download
className="flex items-center justify-center gap-2 px-4 py-2 bg-green-600 text-white rounded-md hover:bg-green-700 transition-all duration-300 shadow-lg"
>
<FiDownload className="text-white" />
<span>Download PDF</span>
</a>
<a
href={pdfUrl}
target="_blank"
rel="noopener noreferrer"
className="flex items-center justify-center gap-2 px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 transition-all duration-300 shadow-lg"
>
<FiExternalLink className="text-white" />
<span>Open in New Tab</span>
</a>
</div>
</div>
</header>

<main className="flex-1 p-4 sm:p-8">
<div className="max-w-7xl mx-auto">
<div className="mb-6">
<p className="text-lg text-gray-300">
View or download the latest On Duty list in PDF format.
</p>
</div>

<div className="relative w-full rounded-lg overflow-hidden shadow-2xl bg-white">
<embed
src={pdfUrl}
type="application/pdf"
className="w-full h-[calc(100vh-220px)]"
style={{ minHeight: '500px' }}
/>
</div>
</div>
</main>
</div>
);
};

export default ODPage;
Binary file added public/OD_OH2.pdf
Binary file not shown.
11 changes: 6 additions & 5 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://githubsrmist.tech</loc><lastmod>2024-11-02T08:40:37.796Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/about</loc><lastmod>2024-11-02T08:40:37.797Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/contact</loc><lastmod>2024-11-02T08:40:37.797Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/events</loc><lastmod>2024-11-02T08:40:37.797Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/team</loc><lastmod>2024-11-02T08:40:37.797Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech</loc><lastmod>2025-03-12T16:01:14.060Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/ODPage</loc><lastmod>2025-03-12T16:01:14.061Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/about</loc><lastmod>2025-03-12T16:01:14.061Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/contact</loc><lastmod>2025-03-12T16:01:14.061Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/events</loc><lastmod>2025-03-12T16:01:14.061Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://githubsrmist.tech/team</loc><lastmod>2025-03-12T16:01:14.061Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
Loading