File tree Expand file tree Collapse file tree 3 files changed +24
-17
lines changed
Expand file tree Collapse file tree 3 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 22
33import { usePathname } from "next/navigation" ;
44import Link from "next/link" ;
5- import { Pin , UploadIcon } from "lucide-react" ;
5+ import { ArrowUpRight , Pin , UploadIcon } from "lucide-react" ;
66import ModeToggle from "./toggle-theme" ;
7+ import { Button } from "./ui/button" ;
78
89interface Props {
910 onNavigate : ( ) => void ;
@@ -33,7 +34,14 @@ export default function FloatingNavbar({ onNavigate }: Props) {
3334 < span > Pinned Subjects</ span >
3435 </ div >
3536 </ Link >
36-
37+ < div className = "px-4 py-2" >
38+ < Link href = "/request" onClick = { onNavigate } >
39+ < div className = "flex items-center gap-2 rounded-full border border-[#3A3745] px-4 py-2 text-sm font-semibold text-white transition hover:bg-[#1A1823] w-full justify-center" >
40+ < ArrowUpRight className = "h-4 w-4" />
41+ Paper Request
42+ </ div >
43+ </ Link >
44+ </ div >
3745 < div className = "rounded-full border border-[#3A3745] p-1" >
3846 < ModeToggle />
3947 </ div >
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import Link from "next/link";
66import { usePathname } from "next/navigation" ;
77import ccLogo from "../assets/codechef_logo.svg" ;
88import ModeToggle from "@/components/toggle-theme" ;
9- import { ArrowDownLeftIcon , Pin } from "lucide-react" ;
9+ import { Button } from "@/components/ui/button" ;
10+ import { ArrowDownLeftIcon , Pin , ArrowUpRight } from "lucide-react" ;
1011import NavDropdownButton from "./NavDropdownButton" ;
1112import FloatingNavbar from "./FloatingNavbar" ;
1213import PWAInstallButton from "./ui/PWAInstallButton" ;
@@ -62,7 +63,17 @@ function Navbar() {
6263 Pinned Subjects
6364 </ div >
6465 </ Link >
66+ < div className = "ml-2 hidden md:flex" >
67+ < Link href = "/request" >
68+ < div className = "ml-2 flex items-center gap-2 rounded-full border border-[#3A3745] px-4 py-2 text-sm font-semibold text-white transition hover:bg-[#1A1823]" >
69+ < ArrowUpRight className = "h-4 w-4" />
70+ Paper Request
71+ </ div >
72+ </ Link >
73+ </ div >
6574 </ div >
75+
76+ { /* Desktop: Create Paper Request button */ }
6677 </ div >
6778
6879 < div className = "hidden items-center gap-4 md:flex" >
@@ -84,6 +95,7 @@ function Navbar() {
8495 </ Link >
8596 </ div >
8697
98+ { /* Mobile: Create Paper Request button inside dropdown */ }
8799 < div className = "md:hidden" ref = { dropdownContainerRef } >
88100 < NavDropdownButton
89101 isOpen = { open }
Original file line number Diff line number Diff line change @@ -78,20 +78,7 @@ function Info() {
7878 </ section >
7979
8080 { /* Create Request Section */ }
81- < section className = "flex flex-col items-center justify-center gap-4 px-6 py-12 text-center" >
82- < h2 className = "font-vipnabd text-2xl font-semibold text-black dark:text-white md:text-3xl" >
83- Can’t Find a Specific Paper?
84- </ h2 >
85- < Link href = "/request" >
86- < Button
87- variant = "outline"
88- className = "group border-[1.5px] border-[#4A55FF] bg-transparent px-6 py-3 text-sm font-medium text-[#4A55FF] transition-all duration-200 hover:bg-[#4A55FF] hover:text-white dark:border-[#9EA8FF] dark:text-[#9EA8FF] dark:hover:bg-[#9EA8FF] dark:hover:text-black"
89- >
90- Create Request
91- < ArrowUpRight className = "ml-2 h-4 w-4 transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5" />
92- </ Button >
93- </ Link >
94- </ section >
81+
9582 < div className = " md:hidden z-50 flex justify-center py-4" >
9683 < PWAInstallButton />
9784 </ div >
You can’t perform that action at this time.
0 commit comments