add bootstrap
This commit is contained in:
28
frontend/src/index.html
Normal file
28
frontend/src/index.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>PDF Viewer</title>
|
||||
<script type="module" src="./js/main.js"></script>
|
||||
</head>
|
||||
<body class="p-4">
|
||||
<div class="container py-4 px-3 mx-auto">
|
||||
<h1>Hello, Bootstrap and Vite!</h1>
|
||||
<button class="btn btn-primary">Primary button</button>
|
||||
</div>
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user