Skip to content

Commit

Permalink
Merge pull request #40 from NITA-South-Paribar/Dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rana53s authored Apr 6, 2024
2 parents 40cdb26 + 46f0ba8 commit 12ade56
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/components/Navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Navbar = () => {
<nav className="sticky top-0 z-50 py-3 backdrop-blur-lg bg-slate-800 mx-60 my-5 rounded-lg text-white w-3/4 px-6">
<div className="container mx-auto relative text-md font-semibold">
<div className="flex justify-between items-center">
<Link to="/" className="flex items-center flex-shrink-0 cursor-pointer">
<Link to="" className="flex items-center flex-shrink-0 cursor-pointer">
<img className="h-10 w-12" src={logo} alt="" />
<span className="text-2xl mx-1 tracking-tight font-sans">NSP</span>
</Link>
Expand All @@ -31,7 +31,7 @@ export const Navbar = () => {
Sign In
</button>
</Link>
<Link to="/signup">
<Link to="signup">
<button className="bg-gradient-to-r from-green-500 to-green-900 py-2 px-4 rounded-md cursor-pointer hover:bg-gradient-to-t hover:from-green-400 hover:to-green-900">
Member Sign Up
</button>
Expand Down
6 changes: 3 additions & 3 deletions src/constants/index.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export const navItems = [
{
label: "ABOUT",
href: "/about"
href: "about"
},
{
label: "GALLERY",
href: "/gallery"
href: "gallery"
},
{
label: "MEMBERS",
href: "/members"
href: "members"
},
{
label: "CONTACT",
Expand Down
12 changes: 6 additions & 6 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ import Home from './components/Home/Home.jsx'

const routes = createBrowserRouter(
createRoutesFromElements(
<Route path="/" element={<App/>}>
<Route path="/nsp-web-page" element={<App/>}>
<Route path="" element={<Home />} />
<Route path="/about" element={<About />} />
<Route path="/gallery" element={<ImageGallery />} />
<Route path="/members" element={<MemberDasboard />} />
<Route path="/members/:memberId" element={<MemberDetails />} />
<Route path="/signup" element={<MemberSignUp />} />
<Route path="about" element={<About />} />
<Route path="gallery" element={<ImageGallery />} />
<Route path="members" element={<MemberDasboard />} />
<Route path="members/:memberId" element={<MemberDetails />} />
<Route path="signup" element={<MemberSignUp />} />
</Route>
)
)
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
base: "",
base: "/nsp-web-page",
plugins: [react()],
});

0 comments on commit 12ade56

Please sign in to comment.