File tree Expand file tree Collapse file tree 6 files changed +14
-17
lines changed Expand file tree Collapse file tree 6 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function App() {
2222 const pathname = window . location . pathname ;
2323 setUrlTracker ( pathname )
2424 } ) ( )
25-
25+ console . log ( urlTracker )
2626 } , [ urlTracker ] )
2727
2828 return (
Original file line number Diff line number Diff line change 11// apis for fetching problems for code arena
22
3-
43const fetchWithErrorHandling = async ( url : string , options = { } ) => {
54 try {
65 const response = await fetch ( url , options ) ;
Original file line number Diff line number Diff line change @@ -6,9 +6,11 @@ const Logo = ({ variant }: ILogoProps) => {
66 return (
77
88 < h1 className = "text-4xl sm:text-5xl md:text-2xl font-bold" >
9- < span className = "bg-gradient-to-r from-purple-400 to-blue-400 text-transparent bg-clip-text" >
10- Pathfiller
11- </ span >
9+ < a href = "/" >
10+ < span className = "bg-gradient-to-r from-purple-400 to-blue-400 text-transparent bg-clip-text" >
11+ Pathfiller
12+ </ span >
13+ </ a >
1214 </ h1 >
1315
1416 )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useState } from "react";
55import { disablePageScroll , enablePageScroll } from "scroll-lock" ;
66import { Button } from "../ui/button" ;
77import MenuSvg from "@/assets/MenuSvg" ;
8+ import Logo from "../Logo" ;
89
910const ProblemNavbar = ( ) => {
1011 const pathname = useLocation ( ) ;
@@ -31,10 +32,7 @@ const ProblemNavbar = () => {
3132 } `}
3233 >
3334 < div className = "flex items-center px-5 lg:px-7.5 xl:px-10 max-lg:py-4" >
34- < a className = "block w-[12rem] xl:mr-8" href = "/" >
35- < p className = "text-white h6" > Pathfiller</ p >
36- </ a >
37-
35+ < Logo variant = "small" />
3836 < nav
3937 className = { `${ openNavigation ? "flex" : "hidden"
4038 } fixed top-[5rem] left-0 right-0 bottom-0 bg-n-8 lg:static lg:flex lg:mx-auto lg:bg-transparent`}
Original file line number Diff line number Diff line change 99import { IProblemType } from "@/types/types" ;
1010import { useEffect , useState } from "react" ;
1111import { useParams } from "react-router-dom" ;
12+ import Logo from "@/components/Logo" ;
1213
1314const CodingArena = ( ) => {
1415
@@ -48,9 +49,7 @@ const CodingArena = () => {
4849 return (
4950 < >
5051 < div className = 'w-full h-12 flex justify-between px-4 items-center border-b-[1px] border-gray-800' >
51- < p className = 'text-white ' >
52- < a href = "/" > Pathfiller</ a >
53- </ p >
52+ < Logo variant = "small" />
5453 < div className = 'flex gap-3 items-center ' >
5554
5655 { /* <button onClick={handleCodeRun} className='text-xs flex items-center px-4 py-2 bg-gradient-to-r from-purple-500 to-blue-500 text-white rounded-md hover:from-purple-600 hover:to-blue-600 transition-colors'>
@@ -66,7 +65,7 @@ const CodingArena = () => {
6665 </ div >
6766 < ResizablePanelGroup
6867 direction = "horizontal"
69- className = " min-h-full w-full rounded-lg"
68+ className = " min-h-full max-h-screen overflow-hidden w-full rounded-lg"
7069 >
7170 < ResizablePanel defaultSize = { 50 } className = "min-h-screen" >
7271 < ProblemDetailsTabs problem = { problem } _solved = { solved } />
@@ -78,7 +77,7 @@ const CodingArena = () => {
7877 < div className = "flex h-full items-center justify-center p-1" >
7978 < VerticalResizable problem = { problem } />
8079 </ div >
81-
80+
8281 </ ResizablePanel >
8382 </ ResizablePanelGroup >
8483 </ >
Original file line number Diff line number Diff line change 11
2+ import Logo from '@/components/Logo' ;
23import LanguageSelector from '@/components/core/LanguageSelector' ;
34import StatusIndicator from '@/components/core/StatusIndicator' ;
45import SubmitButton from '@/components/core/SubmitButton' ;
@@ -139,9 +140,7 @@ const CodingPlayground = () => {
139140 < >
140141 { /* Navbar */ }
141142 < div className = 'w-full h-12 flex justify-between px-4 items-center border-b-[1px] border-gray-800' >
142- < p className = 'text-white ' >
143- < a href = "/" > Pathfiller</ a >
144- </ p >
143+ < Logo variant = "small" />
145144 < div className = 'flex gap-3 items-center ' >
146145
147146 { /* <button onClick={handleCodeRun} className='text-xs flex items-center px-4 py-2 bg-gradient-to-r from-purple-500 to-blue-500 text-white rounded-md hover:from-purple-600 hover:to-blue-600 transition-colors'>
You can’t perform that action at this time.
0 commit comments