Skip to content
This repository was archived by the owner on May 4, 2025. It is now read-only.

Commit 4f6e242

Browse files
committed
Added new page
1 parent 246e143 commit 4f6e242

File tree

6 files changed

+458
-16
lines changed

6 files changed

+458
-16
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"lucide-react": "^0.475.0",
1717
"react": "^19.0.0",
1818
"react-dom": "^19.0.0",
19+
"react-router-dom": "^7.2.0",
1920
"tailwindcss": "^4.0.6"
2021
},
2122
"devDependencies": {

pnpm-lock.yaml

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/intro.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const Intro = () => {
7272
className="text-xl md:text-2xl text-gray-400"
7373
variants={textVariants}
7474
>
75-
Pause. Build. Inspire.
75+
Build. Pause. Inspire.
7676
</motion.p>
7777
</div>
7878
</div>

src/components/projectsPage.tsx

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState } from "react";
2-
import { Search, PlusIcon, AlertCircle, Filter } from "lucide-react";
2+
import { Search, AlertCircle, Filter, HelpCircle, Blocks } from "lucide-react";
33
import { motion } from "framer-motion";
44
import ProjectCard, { Project } from "../components/projectCard";
55
import { useGitHubStars } from "../hooks/useGithubStars";
@@ -57,13 +57,22 @@ const ProjectsPage = () => {
5757
<h1 className="text-4xl font-bold text-gray-900 mb-2 md:mb-0">
5858
Breakpoint;
5959
</h1>
60-
<a
61-
className="flex justify-self-center h-fit w-fit p-2 bg-black rounded-md text-white"
62-
href="https://opnform.com/forms/my-form-k1tkuv"
63-
>
64-
<PlusIcon />
65-
Add My Project
66-
</a>
60+
<div className="flex gap-2">
61+
<a
62+
className="flex justify-self-center border gap-1 h-fit w-fit p-2 bg-white rounded-md text-black"
63+
href="/Breakpoint/benefits"
64+
>
65+
<HelpCircle />
66+
Why Breakpoint
67+
</a>
68+
<a
69+
className="flex justify-self-center h-fit w-fit p-2 gap-2 bg-black rounded-md text-white"
70+
href="https://opnform.com/forms/my-form-k1tkuv"
71+
>
72+
<Blocks />
73+
Add My Project
74+
</a>
75+
</div>
6776
</div>
6877

6978
<div className="flex flex-col md:flex-row md:flex-wrap md:justify-center md:gap-4 mb-4">

src/main.tsx

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1-
import { StrictMode } from 'react'
2-
import { createRoot } from 'react-dom/client'
3-
import './index.css'
4-
import App from './App.tsx'
1+
import { StrictMode } from "react";
2+
import { createRoot } from "react-dom/client";
3+
import "./index.css";
4+
import App from "./App.tsx";
5+
import { BrowserRouter, Route, Routes } from "react-router-dom";
56

6-
createRoot(document.getElementById('root')!).render(
7+
import BenefitsPage from "./pages/benefits";
8+
9+
createRoot(document.getElementById("root")!).render(
710
<StrictMode>
8-
<App />
11+
<BrowserRouter basename="/Breakpoint">
12+
<Routes>
13+
<Route path="/" element={<App />} />
14+
<Route path="/benefits" element={<BenefitsPage />} />
15+
</Routes>
16+
</BrowserRouter>
917
</StrictMode>,
10-
)
18+
);

0 commit comments

Comments
 (0)