feat(bookmark): improve pdf bookmark tool ui with dark mode and drag-drop

- Add dark mode styling to the bookmark tool page
- Implement drag-and-drop file upload zones for PDF, CSV and JSON
- Enhance file input UI with icons and better visual feedback
- Fix formatting and whitespace issues in multiple files
This commit is contained in:
abdullahalam123 committed 2025-10-27 22:35:49 +05:30
1 parent 72e74d2a62
commit 090146c600
7 files changed
+95 -43

No files matched your search

+2 -3
View File
@@ -78,11 +78,10 @@ export const categories = [
},
{
// id: 'bookmark-pdf',
href: '/src/pages/bookmark.html',
href: '/src/pages/bookmark.html',
name: 'Edit Bookmarks',
icon: 'bookmark',
subtitle:
'Add, edit, import, delete and extract PDF bookmarks.',
subtitle: 'Add, edit, import, delete and extract PDF bookmarks.',
},
{
id: 'add-page-numbers',
+2
View File
@@ -1,4 +1,6 @@
// @ts-nocheck
// TODO: @ALAM - remove ts-nocheck and fix types later, possibly convert this into an npm package
import { PDFDocument, PDFName, PDFString, PDFNumber, PDFArray } from 'pdf-lib';
import * as pdfjsLib from 'pdfjs-dist';
import Sortable from 'sortablejs';
+1 -3
View File
@@ -137,7 +137,7 @@ const init = () => {
'grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 md:gap-6';
category.tools.forEach((tool) => {
let toolCard: HTMLDivElement | HTMLAnchorElement;
let toolCard: HTMLDivElement | HTMLAnchorElement;
if (tool.href) {
toolCard = document.createElement('a');
@@ -262,5 +262,3 @@ const init = () => {
};
document.addEventListener('DOMContentLoaded', init);
+7 -8
View File
@@ -179,12 +179,11 @@ export async function initializeQpdf() {
return qpdfInstance;
}
export function initializeIcons(): void {
createIcons({
attrs: {
class: 'bento-icon',
'stroke-width': '1.5',
},
});
}
createIcons({
attrs: {
class: 'bento-icon',
'stroke-width': '1.5',
},
});
}
+1 -1
View File
@@ -2,4 +2,4 @@ import { createIcons, icons } from 'lucide';
document.addEventListener('DOMContentLoaded', () => {
createIcons({ icons });
});
});