Pagewise / app /static /documents.html
nvikou's picture
Initial commit
42fd0d2 verified
Raw History Blame Contribute Delete
2.27 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Library — Pagewise</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@400;500;600;700&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="/static/css/styles.css" />
</head>
<body class="page-library">
<header class="topbar">
<a class="brand" href="/">Page<em>wise</em></a>
<nav class="nav">
<a href="/">Home</a>
<a href="/ask">Ask</a>
<a class="active" href="/documents">Library</a>
</nav>
</header>
<main class="lib">
<header class="lib-head">
<div>
<h1>Library</h1>
<p id="lib-count">Loading corpus…</p>
</div>
<a class="lib-ask" href="/ask">Ask the corpus →</a>
</header>
<form class="lib-upload" id="upload-form">
<div class="lib-drop" id="dropzone">
<span class="lib-drop-icon" aria-hidden="true">↑</span>
<div class="lib-drop-copy">
<strong id="drop-label">Drop a file, or browse</strong>
<span>PDF, DOCX, XLSX, Markdown</span>
</div>
<input
id="file"
type="file"
accept=".pdf,.docx,.xlsx,.xlsm,.txt,.md"
/>
</div>
<input
id="folder-input"
type="text"
value="general"
aria-label="Folder"
placeholder="Folder"
/>
<button class="btn btn-primary" type="submit" id="upload-btn">
Index
</button>
<p class="lib-status" id="upload-status" hidden></p>
</form>
<div class="lib-list" id="doc-list"></div>
</main>
<script src="/static/js/documents.js"></script>
</body>
</html>