Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 30 additions & 1 deletion backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"dotenv": "^17.2.1",
"express": "^5.1.0",
"jsonwebtoken": "^9.0.2",
"mongoose": "^8.17.1",
"mongoose": "^8.17.1"
},
"devDependencies": {
"nodemon": "^3.1.10"
}
}
3 changes: 3 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import LandingPage from "./pages/Landing.jsx";
import Auth from "./pages/Auth.jsx";
import Navbar from "./Components/Navbar.jsx";
import "./App.css";
import Docs from "./pages/docs.jsx";


// Create Theme Context
const ThemeContext = createContext();
Expand Down Expand Up @@ -73,6 +75,7 @@ function AppContent() {
<Route path="/" element={<LandingPage />} />
<Route path="/profile" element={<Profile />} />
<Route path="/auth" element={<Auth />} />
<Route path="/docs" element={<Docs />} />
<Route path="*" element={
<div className={`text-center p-4 ${isDark ? 'text-white' : 'text-slate-900'}`}>
Page not found
Expand Down
5 changes: 3 additions & 2 deletions frontend/src/Components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const Navbar = () => {
}
} else {
// Use React Router navigation for routes
navigate(path);
navigate(path);
window.scrollTo({ top: 0, behavior: 'smooth' });
}
};

Expand Down Expand Up @@ -66,7 +67,7 @@ const Navbar = () => {
const navLinks = [
{ href: '#features', label: 'Features', icon: <Zap className="w-4 h-4" /> },
{ href: '#pricing', label: 'Pricing', icon: <Star className="w-4 h-4" /> },
{ href: '#docs', label: 'Docs', icon: <MessageSquare className="w-4 h-4" /> },
{ href: '/docs', label: 'Docs', icon: <MessageSquare className="w-4 h-4" /> },
{ href: '#company', label: 'Company', icon: <Users className="w-4 h-4" /> }
];

Expand Down
14 changes: 8 additions & 6 deletions frontend/src/pages/Landing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,14 @@ const LandingPage = () => {
>
Get Started for Free
</button>
<button
onClick={() => navigate('/docs')}
className={`${isDark ? 'bg-slate-800 text-slate-200 border-slate-700 hover:bg-slate-700' : 'bg-slate-200 text-slate-900 border-slate-300 hover:bg-slate-300'} font-semibold py-3 px-6 rounded-lg border transition-colors w-full sm:w-auto cursor-pointer`}
>
View Documentation
</button>
<button
onClick={() => navigate("/docs")}

className={`${isDark ? 'bg-slate-800 text-slate-200 border-slate-700 hover:bg-slate-700' : 'bg-slate-200 text-slate-900 border-slate-300 hover:bg-slate-300'} font-semibold py-3 px-6 rounded-lg border transition-colors w-full sm:w-auto cursor-pointer`}
>
View Documentation
</button>

</div>
</div>
</section>
Expand Down
Loading