Skip to content

Commit 059a87f

Browse files
committed
feat: New logo added
1 parent 3fda917 commit 059a87f

File tree

6 files changed

+14
-17
lines changed

6 files changed

+14
-17
lines changed

frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 (

frontend/src/api/problemApi.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// apis for fetching problems for code arena
22

3-
43
const fetchWithErrorHandling = async (url: string, options = {}) => {
54
try {
65
const response = await fetch(url, options);

frontend/src/components/Logo.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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
)

frontend/src/components/common/Navbar.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useState } from "react";
55
import { disablePageScroll, enablePageScroll } from "scroll-lock";
66
import { Button } from "../ui/button";
77
import MenuSvg from "@/assets/MenuSvg";
8+
import Logo from "../Logo";
89

910
const 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`}

frontend/src/pages/CodingArena.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
import { IProblemType } from "@/types/types";
1010
import { useEffect, useState } from "react";
1111
import { useParams } from "react-router-dom";
12+
import Logo from "@/components/Logo";
1213

1314
const 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
</>

frontend/src/pages/CodingPlayground.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
import Logo from '@/components/Logo';
23
import LanguageSelector from '@/components/core/LanguageSelector';
34
import StatusIndicator from '@/components/core/StatusIndicator';
45
import 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'>

0 commit comments

Comments
 (0)