diff --git a/package-lock.json b/package-lock.json
index c764ec5..d151c97 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,7 +8,6 @@
"name": "eexiv-2",
"version": "0.1.0",
"dependencies": {
- "file-saver": "^2.0.5",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18",
@@ -1993,11 +1992,6 @@
"node": "^10.12.0 || >=12.0.0"
}
},
- "node_modules/file-saver": {
- "version": "2.0.5",
- "resolved": "https://registry.npmjs.org/file-saver/-/file-saver-2.0.5.tgz",
- "integrity": "sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA=="
- },
"node_modules/fill-range": {
"version": "7.0.1",
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz",
diff --git a/package.json b/package.json
index aaf5e4e..83864f4 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,6 @@
"lint": "next lint"
},
"dependencies": {
- "file-saver": "^2.0.5",
"next": "14.1.0",
"react": "^18",
"react-dom": "^18",
diff --git a/src/app/document/document.module.css b/src/app/document/document.module.css
deleted file mode 100644
index e69de29..0000000
diff --git a/src/app/document/view/[slug]/documentViewer.module.css b/src/app/document/view/[slug]/documentViewer.module.css
deleted file mode 100644
index 1ae3e1c..0000000
--- a/src/app/document/view/[slug]/documentViewer.module.css
+++ /dev/null
@@ -1,27 +0,0 @@
-.itemTitle {
- margin: 0;
- font-size: 2em;
-}
-
-.itemAbstractHeader {
- margin-top: 20px;
- margin-bottom: 10px;
- color: 33;
- font-size: 1.5em;
-}
-
-.typePresentation {
- background-color: #007bff;
-}
-
-.typeOther {
- background-color: #6c757d;
-}
-
-.resultAbstract {
- color: #333;
-}
-
-.downloadButton {
- padding: 10px;
-}
diff --git a/src/app/document/view/[slug]/page.tsx b/src/app/document/view/[slug]/page.tsx
index 4d9c9f4..e9adddc 100644
--- a/src/app/document/view/[slug]/page.tsx
+++ b/src/app/document/view/[slug]/page.tsx
@@ -1,6 +1,4 @@
-import styles from './documentViewer.module.css'
import { Zilla_Slab } from 'next/font/google'
-import { saveAs } from 'file-saver'
import {
DocumentType,
documents,
@@ -9,6 +7,7 @@ import {
} from '../../../db/data'
import Link from 'next/link'
import { notFound } from 'next/navigation'
+import { Fragment } from 'react'
const zillaSlab = Zilla_Slab({ subsets: ['latin'], weight: ['500'] })
@@ -32,19 +31,11 @@ export default function Page({
const doc = documents[params.slug]
if (!doc) {
notFound()
- return
}
const { abstract, file } = doc
const { title, authors, topics, dates, references, code, type, latest } =
doc.manifest
- const handleDownloadLatest = () => {
- saveAs(
- `/download/${params.slug}/file${latest}.${file}`,
- `${params.slug}-rev-${latest}.pdf`
- )
- }
-
const generateTopics = () => {
return (
<>
@@ -67,12 +58,12 @@ export default function Page({
<>
Code:
{code.map((c: string, i) => (
- <>
+
{generateAuthors()}
Latest revision published{' '} diff --git a/src/app/home.module.css b/src/app/home.module.css index 2c2ba62..57b2dfe 100644 --- a/src/app/home.module.css +++ b/src/app/home.module.css @@ -9,20 +9,15 @@ } .banner { - width: 100%; - height: 100px; - padding: 20px; background-color: #0c5198; color: white; - margin-bottom: 50px; } .title { - position: absolute; - top: 162.5px; + /* top: 162.5px; */ color: white; font-size: 50px; - margin-bottom: 50px; + /* margin-bottom: 50px; */ cursor: pointer; } @@ -34,7 +29,6 @@ .contributions { width: 40vw; - margin-top: 50px; margin-left: calc(100% - 40vw - 10px); } diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 0c5e033..5087caa 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -29,9 +29,9 @@ export default function RootLayout({
+
We gratefully acknowledge support from our volunteer peer reviewers, member institutions, and all{' '} .
- +