2024-11-05 23:50:55 +05:30
|
|
|
// 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 (
|
|
|
|
|
<div className="p-6 bg-base-200 h-screen">
|
2024-11-12 23:24:50 +05:30
|
|
|
<h1 className="md:text-4xl text-xl font-bold text-white mb-6">Bookmarked Polls</h1>
|
2024-11-05 23:50:55 +05:30
|
|
|
<div className="overflow-x-auto">
|
|
|
|
|
<table className="table w-full bg-base-100">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>#</th>
|
|
|
|
|
<th>Title</th>
|
|
|
|
|
<th>Description</th>
|
|
|
|
|
<th>Actions</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
{dummyBookmarks.map((bookmark, index) => (
|
|
|
|
|
<tr key={bookmark.id}>
|
|
|
|
|
<th>{index + 1}</th>
|
2024-11-12 23:24:50 +05:30
|
|
|
<td className="text-white text-sm md:text-base">{bookmark.title}</td>
|
|
|
|
|
<td className="text-gray-400 whitespace-normal break-words max-w-xs text-xs md:text-base">
|
2024-11-05 23:50:55 +05:30
|
|
|
{bookmark.description}
|
|
|
|
|
</td>
|
|
|
|
|
<td>
|
2024-11-12 23:24:50 +05:30
|
|
|
<button className="btn btn-primary text-sm md:text-base">
|
2024-11-05 23:50:55 +05:30
|
|
|
View Poll
|
|
|
|
|
</button>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
))}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Bookmark;
|