Skip to content

Commit 706e97a

Browse files
authored
feat: add /search routes placeholders to frontend (freeCodeCamp-2025-Summer-Hackathon#126)
1 parent 3c87c31 commit 706e97a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

frontend/src/App.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import HelpPage from './components/HelpPage';
88
import LoginPage from './pages/LoginPage';
99
import ForgotPassword from './pages/ForgotPassword';
1010
import RegisterPage from './pages/RegisterPage';
11+
import SearchPage from './pages/SearchPage';
1112

1213
import { IdeaAddPage, IdeaEditPage, IdeaPage, IdeasPage } from './pages/Ideas';
1314
import './styles.css';
@@ -39,6 +40,7 @@ function App() {
3940
<Routes>
4041
<Route path='' element={<LandingPage />} />
4142
<Route path='help' element={<HelpPage />} />
43+
<Route path='search' element={<SearchPage />} />
4244
<Route path='login' element={<LoginPage />} />
4345
<Route path='forgot-password' element={<ForgotPassword />} />
4446
<Route path='register' element={<RegisterPage />} />

frontend/src/pages/SearchPage.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const SearchPage = () => {
2+
return (
3+
<div className='section-card flex flex-col items-center justify-center min-h-[60vh]'>
4+
<h1 className='section-heading'>Search Results</h1>
5+
<p className='text-lg text-gray-600 mb-8'>
6+
This is the search page. Functionality to search and display results
7+
should be added here.
8+
</p>
9+
</div>
10+
);
11+
};
12+
13+
export default SearchPage;

0 commit comments

Comments
 (0)