diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 68dc02b..8ef8b54 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -6,6 +6,7 @@ import Header from "./components/Header/Header"; import LoginPage from "./pages/LoginPage"; import Register from "./pages/Register"; import Dashboard from "./pages/Dashboard"; +import Bookmark from "./pages/Bookmark"; function App() { return ( @@ -16,6 +17,7 @@ function App() { } /> } /> } /> + } /> ); diff --git a/frontend/src/pages/Bookmark.jsx b/frontend/src/pages/Bookmark.jsx new file mode 100644 index 0000000..fda0099 --- /dev/null +++ b/frontend/src/pages/Bookmark.jsx @@ -0,0 +1,58 @@ +// BookmarkPage.js +import React from "react"; + +const dummyBookmarks = [ + { + id: 1, + title: "Favorite Programming Language?", + description: "Vote for your favorite programming language among the listed options.", + }, + { + id: 2, + title: "Best Framework for Web Development?", + description: "Share your thoughts on the best framework for web development.", + }, + { + id: 3, + title: "Favorite Food?", + description: "What's your favorite food? Vote and see the results.", + }, +]; + +function Bookmark() { + return ( +
+

Bookmarked Polls

+
+ + + + + + + + + + + {dummyBookmarks.map((bookmark, index) => ( + + + + + + + ))} + +
#TitleDescriptionActions
{index + 1}{bookmark.title} + {bookmark.description} + + +
+
+
+ ); +} + +export default Bookmark; diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsx index 5799924..83e7c86 100644 --- a/frontend/src/pages/Dashboard.jsx +++ b/frontend/src/pages/Dashboard.jsx @@ -13,7 +13,7 @@ function Dashboard() { ]; return ( -
+
{showPollAddForm && (
{/* Poll Add Form Component would go here */} @@ -21,7 +21,7 @@ function Dashboard() { )} {/* User Profile Sidebar */} -