Add frontend code

This commit is contained in:
dylan
2025-04-12 18:22:52 +02:00
parent 0b6158d99a
commit bd4146e6d9
5 changed files with 1059 additions and 1 deletions

24
frontend/index.html Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PDF Viewer</title>
</head>
<body class="p-4">
<div x-data="pdfViewer()" class="space-y-4">
<button @click="loadPdf" class="px-4 py-2 bg-blue-500 text-white rounded">Load PDF</button>
<template x-if="pdfUrl">
<iframe
:src="pdfUrl"
type="application/pdf"
width="100%"
height="600px"
class="border border-gray-400 rounded"
></iframe>
</template>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>