Add frontend code
This commit is contained in:
24
frontend/index.html
Normal file
24
frontend/index.html
Normal 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>
|
Reference in New Issue
Block a user