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 2
2
3
3
import { usePathname } from "next/navigation" ;
4
4
import Link from "next/link" ;
5
- import { Pin , UploadIcon } from "lucide-react" ;
5
+ import { ArrowUpRight , Pin , UploadIcon } from "lucide-react" ;
6
6
import ModeToggle from "./toggle-theme" ;
7
+ import { Button } from "./ui/button" ;
7
8
8
9
interface Props {
9
10
onNavigate : ( ) => void ;
@@ -33,7 +34,14 @@ export default function FloatingNavbar({ onNavigate }: Props) {
33
34
< span > Pinned Subjects</ span >
34
35
</ div >
35
36
</ 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 >
37
45
< div className = "rounded-full border border-[#3A3745] p-1" >
38
46
< ModeToggle />
39
47
</ div >
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import Link from "next/link";
6
6
import { usePathname } from "next/navigation" ;
7
7
import ccLogo from "../assets/codechef_logo.svg" ;
8
8
import 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" ;
10
11
import NavDropdownButton from "./NavDropdownButton" ;
11
12
import FloatingNavbar from "./FloatingNavbar" ;
12
13
import PWAInstallButton from "./ui/PWAInstallButton" ;
@@ -62,7 +63,17 @@ function Navbar() {
62
63
Pinned Subjects
63
64
</ div >
64
65
</ 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 >
65
74
</ div >
75
+
76
+ { /* Desktop: Create Paper Request button */ }
66
77
</ div >
67
78
68
79
< div className = "hidden items-center gap-4 md:flex" >
@@ -84,6 +95,7 @@ function Navbar() {
84
95
</ Link >
85
96
</ div >
86
97
98
+ { /* Mobile: Create Paper Request button inside dropdown */ }
87
99
< div className = "md:hidden" ref = { dropdownContainerRef } >
88
100
< NavDropdownButton
89
101
isOpen = { open }
Original file line number Diff line number Diff line change @@ -78,20 +78,7 @@ function Info() {
78
78
</ section >
79
79
80
80
{ /* 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
+
95
82
< div className = " md:hidden z-50 flex justify-center py-4" >
96
83
< PWAInstallButton />
97
84
</ div >
You can’t perform that action at this time.
0 commit comments