From acc4b291b95cc80569c5e3e9d1d28d769a5ee02d Mon Sep 17 00:00:00 2001 From: Aditya A Date: Thu, 14 May 2026 23:43:09 +0530 Subject: [PATCH 1/6] Hero Section --- app/components/hero.tsx | 19 ++++++++++--------- app/components/subjects.tsx | 2 +- app/layout.tsx | 9 ++++++++- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/app/components/hero.tsx b/app/components/hero.tsx index f3859d2..98a66dc 100644 --- a/app/components/hero.tsx +++ b/app/components/hero.tsx @@ -11,8 +11,9 @@ export default function HeroSection() { return (
{/* Content Container */} -
+

Free, open, and beginner-friendly documentation @@ -57,11 +58,11 @@ export default function HeroSection() { const el = document.getElementById("subjects"); if (el) el.scrollIntoView({ behavior: "smooth" }); }} - className="mt-8 sm:mt-10 mb-6 sm:mb-8 px-5 sm:px-8 md:px-12 lg:px-18 - py-2.5 sm:py-3.5 md:py-5 lg:py-6 rounded-full - text-base sm:text-xl md:text-2xl lg:text-4xl xl:text-5xl + className="mt-12 sm:mt-10 mb-8 sm:mb-8 px-6 sm:px-8 md:px-12 lg:px-18 + py-3 sm:py-3.5 md:py-5 lg:py-6 rounded-full + text-xl sm:text-xl md:text-2xl lg:text-4xl xl:text-5xl bg-[#38220b] text-white hover:bg-[#2a1809] hover:scale-105 - transition-all duration-300 cursor-pointer" + transition-all duration-300 cursor-pointer font-semibold" style={{ fontFamily: "'Rockwell', 'Serif', serif" }} > Explore Subjects diff --git a/app/components/subjects.tsx b/app/components/subjects.tsx index 308c852..64981e0 100644 --- a/app/components/subjects.tsx +++ b/app/components/subjects.tsx @@ -129,7 +129,7 @@ export default function SubjectsSection() { return (

Browse Subjects diff --git a/app/layout.tsx b/app/layout.tsx index 0210387..bb65370 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,5 +1,5 @@ // app/layout.tsx -import type { Metadata } from "next"; +import type { Metadata, Viewport } from "next"; import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; @@ -18,6 +18,13 @@ export const metadata: Metadata = { description: "Free and Open Documentations for CSE subjects", }; +export const viewport: Viewport = { + width: "device-width", + initialScale: 0, + maximumScale: 5, + userScalable: true, +}; + export default function RootLayout({ children, }: Readonly<{ From 31928221f0de92979e505e00f4891fcff184208c Mon Sep 17 00:00:00 2001 From: Aditya A Date: Fri, 15 May 2026 01:10:01 +0530 Subject: [PATCH 2/6] Responsiv navbar animation, mobile responsiveness for homepage --- app/components/contribute.tsx | 12 +++--- app/components/navbar.tsx | 76 ++++++++++++++++++----------------- app/components/sponsor.tsx | 4 +- app/components/subjects.tsx | 2 +- 4 files changed, 49 insertions(+), 45 deletions(-) diff --git a/app/components/contribute.tsx b/app/components/contribute.tsx index 77a7299..114dc58 100644 --- a/app/components/contribute.tsx +++ b/app/components/contribute.tsx @@ -7,14 +7,14 @@ export default function ContributionsSection() {

openCSE is community-driven. Want to add or improve docs? Contribute on GitHub.

-
- GitHub Issues -
-

Browse and Tackle Issues

-

+

+ GitHub Issues +
+

Browse and Tackle Issues

+

Check out the available issues on our GitHub repository. Pick one to work on, or raise your own if you spot something new!

-
    +
    • Find beginner-friendly and advanced issues
    • Discuss solutions and get feedback
    • Help us improve by reporting bugs or suggesting features
    • diff --git a/app/components/navbar.tsx b/app/components/navbar.tsx index e0b1e22..465f624 100644 --- a/app/components/navbar.tsx +++ b/app/components/navbar.tsx @@ -73,42 +73,46 @@ export default function Navbar() { /> {/* Mobile Menu */} - {menuOpen && ( -
      -
        -
      • - setMenuOpen(false)}> - HOME - -
      • -
      • - setMenuOpen(false)}> - SUBJECTS - -
      • -
      • - setMenuOpen(false)}> - CONTRIBUTE - -
      • -
      • - setMenuOpen(false)}> - SPONSOR - -
      • -
      -
      - )} +
      +
        +
      • + setMenuOpen(false)}> + HOME + +
      • +
      • + setMenuOpen(false)}> + SUBJECTS + +
      • +
      • + setMenuOpen(false)}> + CONTRIBUTE + +
      • +
      • + setMenuOpen(false)}> + SPONSOR + +
      • +
      +
      ); } diff --git a/app/components/sponsor.tsx b/app/components/sponsor.tsx index 725f271..aa517b4 100644 --- a/app/components/sponsor.tsx +++ b/app/components/sponsor.tsx @@ -1,11 +1,11 @@ export default function SponsorSection() { return (