Skip to content

Commit 3fda917

Browse files
committed
feat: Created coming soon page and logo for resources page
1 parent e128cac commit 3fda917

File tree

7 files changed

+103
-4
lines changed

7 files changed

+103
-4
lines changed

frontend/src/App.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import NotFound from './pages/Error/NotFound';
1111
import ProblemSet from './pages/ProblemSet';
1212
import { SignUpForm } from './pages/Auth/SignUpForm';
1313
import { useEffect, useState } from 'react';
14+
import ResourcesPage from './pages/Resources/ResourcesPage';
1415

1516

1617
function App() {
@@ -30,6 +31,7 @@ function App() {
3031
<Router>
3132
<Routes>
3233
<Route path="/" element={<Home />} />
34+
<Route path="/resources" element={<ResourcesPage />} />
3335
<Route path="/auth/signin" element={<SignInForm />} />
3436
<Route path="/auth/signup" element={<SignUpForm />} />
3537
<Route path="/codingarena/:id" element={<CodingArena />} />

frontend/src/components/Logo.tsx

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
interface ILogoProps {
2+
variant: "small" | "medium" | "large"
3+
}
4+
const Logo = ({ variant }: ILogoProps) => {
5+
if (variant === "small") {
6+
return (
7+
8+
<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>
12+
</h1>
13+
14+
)
15+
}
16+
else if (variant === "medium") {
17+
return (
18+
<div className="inline-block p-4 rounded-2xl bg-gradient-to-r from-purple-500/10 to-blue-500/10 backdrop-blur-sm">
19+
<h1 className="text-4xl sm:text-5xl md:text-6xl font-bold">
20+
<span className="bg-gradient-to-r from-purple-400 to-blue-400 text-transparent bg-clip-text">
21+
Pathfiller
22+
</span>
23+
</h1>
24+
</div>
25+
)
26+
}
27+
if (variant === "large") {
28+
return (
29+
<div className="inline-block p-4 rounded-2xl bg-gradient-to-r from-purple-500/10 to-blue-500/10 backdrop-blur-sm">
30+
<h1 className="text-4xl sm:text-5xl md:text-6xl font-bold">
31+
<span className="bg-gradient-to-r from-purple-400 to-blue-400 text-transparent bg-clip-text">
32+
Pathfiller
33+
</span>
34+
</h1>
35+
</div>
36+
)
37+
}
38+
}
39+
40+
export default Logo

frontend/src/components/Navbar/HeaderBrainwave.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Button } from "@/components/ui/button";
66
import { navigation } from "@/constants/heroIcons";
77
import { useState } from "react";
88
import { HamburgerMenu } from "./HeaderHelper";
9+
import Logo from "../Logo";
910

1011
const HeaderBrainwave = () => {
1112
const pathname = useLocation();
@@ -33,10 +34,8 @@ const HeaderBrainwave = () => {
3334
className={`fixed top-0 left-0 w-full z-50 border-b border-n-6 lg:bg-n-8/90 lg:backdrop-blur-sm ${openNavigation ? "bg-n-8" : "bg-n-8/90 backdrop-blur-sm"
3435
}`}
3536
>
36-
<div className="flex items-center px-5 lg:px-7.5 xl:px-10 max-lg:py-4">
37-
<a className="block w-[12rem] xl:mr-8" href="/">
38-
<p className="text-white h5">Pathfiller</p>
39-
</a>
37+
<div className="flex items-center px-5 lg:px-7.5 xl:px-8 max-lg:py-4">
38+
<Logo variant="small" />
4039

4140
<nav
4241
className={`${openNavigation ? "flex" : "hidden"

frontend/src/constants/heroIcons.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ export const navigation = [
6363
url: "/auth/signin",
6464
onlyMobile: true,
6565
},
66+
{
67+
id: "6",
68+
title: "Resources",
69+
url: "/resources",
70+
},
6671
];
6772

6873
export const heroIcons = [homeSmile, file02, searchMd, plusSquare];
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
export function BackgroundPattern() {
3+
return (
4+
<div className="absolute inset-0 opacity-10">
5+
<div className="absolute transform rotate-45 w-96 h-96 bg-gradient-to-r from-purple-500 to-blue-500 rounded-full blur-3xl -top-48 -left-48"></div>
6+
<div className="absolute transform -rotate-45 w-96 h-96 bg-gradient-to-r from-blue-500 to-cyan-500 rounded-full blur-3xl -bottom-48 -right-48"></div>
7+
</div>
8+
);
9+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import Logo from "@/components/Logo"
2+
import { BackgroundPattern } from "./BackgroundPattern"
3+
4+
const ComingSoon = () => {
5+
return (
6+
<div className="min-h-screen bg-[#080D27] flex items-center justify-center p-4">
7+
<div className="w-full max-w-2xl relative">
8+
<BackgroundPattern />
9+
10+
{/* Content */}
11+
<div className="relative z-10 text-center space-y-8 py-12">
12+
{/* Logo */}
13+
<Logo variant={"large"} />
14+
15+
{/* Main Text */}
16+
<div className="space-y-4">
17+
<h2 className="text-2xl sm:text-3xl md:text-4xl font-semibold text-white">
18+
Something amazing is coming
19+
</h2>
20+
<p className="text-gray-400 max-w-lg mx-auto px-4">
21+
We're working hard to bring you a new way to learn and practice coding.
22+
Join our waitlist to be the first to know when we launch.
23+
</p>
24+
</div>
25+
</div>
26+
</div>
27+
</div>
28+
)
29+
}
30+
31+
export default ComingSoon
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import ProblemNavbar from "@/components/common/Navbar"
2+
import ComingSoon from "../CominSoon/ComingSoon"
3+
4+
const ResourcesPage = () => {
5+
return (
6+
<>
7+
<ProblemNavbar />
8+
<ComingSoon />
9+
</>
10+
)
11+
}
12+
13+
export default ResourcesPage

0 commit comments

Comments
 (0)