diff --git a/next.config.ts b/next.config.ts new file mode 100644 index 0000000..1b8d344 --- /dev/null +++ b/next.config.ts @@ -0,0 +1,27 @@ +// next.config.js +// /** @type {import('next').NextConfig} */ +// const nextConfig = { +// reactStrictMode: true, +// experimental: { +// turbo: { +// enabled: true, // Set turbo to true within an object +// }, +// }, +// }; + +// export default nextConfig; + + +// /** @type {import('next').NextConfig} */ +// const nextConfig = {}; + +// module.exports = nextConfig; + + +import type { NextConfig } from "next"; + +const nextConfig: NextConfig = { + /* config options here */ +}; + +export default nextConfig; diff --git a/src/app/reader-dashboard/components/book-modal.tsx b/src/app/reader-dashboard/components/book-modal.tsx new file mode 100644 index 0000000..ba220ce --- /dev/null +++ b/src/app/reader-dashboard/components/book-modal.tsx @@ -0,0 +1,248 @@ +"use client" + +import { ArrowLeft, MoreHorizontal, Star, X } from "lucide-react" +import Image from "next/image" +import { useEffect, useState } from "react" +import { BookReaderModal } from "../components/book-reader-modal" +import imgbook from "../../../../public/Cover.png" +import imgbook1 from "../../../../public/user1.svg" +interface BookModalProps { + book: { + id: string + title: string + author: string + rating: number + status: "read" | "unread" | "progress" + progress?: number + isNFT?: boolean + likes?: number + verified?: boolean + } + onClose: () => void +} + +export function BookModal({ book, onClose }: BookModalProps) { + // Close modal on escape key + useEffect(() => { + const handleEscape = (e: KeyboardEvent) => { + if (e.key === "Escape") { + onClose() + } + } + document.addEventListener("keydown", handleEscape) + return () => document.removeEventListener("keydown", handleEscape) + }, [onClose]) + + // Prevent body scroll when modal is open + useEffect(() => { + document.body.style.overflow = "hidden" + return () => { + document.body.style.overflow = "unset" + } + }, []) + + const [isReaderOpen, setIsReaderOpen] = useState(false) + + const openReader = () => { + setIsReaderOpen(true) + } + + const closeReader = () => { + setIsReaderOpen(false) + } + + return ( +
+ "Native Invisibility" delves into the complex and often insidious ways in which indigenous peoples and + their unique experiences are rendered unseen and unheard in the modern era. +
+ ++ Native Invisibility unveils the crucial ways indigenous cultures are often unseen in our modern world. + This vital book fosters understanding and action for recognition and justice. +
++ Darrin Collins is a dedicated researcher and writer deeply committed to exploring issues of cultural + visibility, marginalization, and the intersection of identity and technology. His work in Native + Invisibility reflects a long-standing interest in amplifying underrepresented voices and fostering a + more equitable understanding of diverse experiences in the contemporary world. +
++ It was slow compared to later machines but was significant for demonstrating programmability. +
+ +Reference:
++ Bashe, C. J., Johnson, L. R., Palmer, J. H., & Pugh, E. W. (1986). IBM's Early Computers. MIT Press. +
+ ++ b. ENIAC (Electronic Numerical Integrator and Computer) (1945) +
++ Designed by John Presper Eckert and John Mauchly, ENIAC was the first general-purpose, fully electronic + digital computer. +
++ It contained 18,000 vacuum tubes and could perform up to 5,000 operations per second. +
++ ENIAC was used primarily for military applications, such as calculating artillery trajectories. +
+ +Reference:
++ Goldstine, H. H. (1972). The Computer from Pascal to von Neumann. Princeton University Press. +
+ ++ c. EDSAC (Electronic Delay Storage Automatic Calculator) (1949) +
++ Created by Maurice Wilkes at the University of Cambridge, EDSAC was the first computer to use the + stored-program concept. +
++ It employed mercury delay lines for memory and could execute programs stored in its memory. +
++ EDSAC was used in scientific research, marking a shift toward practical computation. +
+ +Reference:
++ Wilkes, M. V. (1951). The Preparation of Programs for an Electronic Digital Computer. Addison-Wesley. +
+ ++ d. UNIVAC (Universal Automatic Computer) (1951) +
++ Developed by Eckert and Mauchly, UNIVAC was the first commercially available computer. +
++ It was designed for business and government use, capable of handling both text and numeric data. +
++ UNIVAC's success marked the beginning of the commercial computer industry. +
+ +Reference:
++ Campbell-Kelly, M., & Aspray, W. (1996). Computer: A History of the Information Machine. Basic Books. +
+ ++ It was slow compared to later machines but was significant for demonstrating programmability. +
+ +Reference:
++ Bashe, C. J., Johnson, L. R., Palmer, J. H., & Pugh, E. W. (1986). IBM's Early Computers. MIT Press. +
+ ++ b. ENIAC (Electronic Numerical Integrator and Computer) (1945) +
++ Designed by John Presper Eckert and John Mauchly, ENIAC was the first general-purpose... +
+{card.title}
+{card.value}
+By {book.author}
+ {book.verified && ( +By {book.author}
+ {book.verified && ( +By {book.author}
+ {book.verified && ( +By {book.author}
+ {book.verified && ( +Welcome to your personalized reading space!
+