correct template to work with pdf generation

This commit is contained in:
brooke 2025-05-22 17:03:21 -04:00
parent 718fe4dfaa
commit f831787069
2 changed files with 26 additions and 14 deletions

View file

@ -1,22 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Repair Day</title>
<link rel="stylesheet" href="styles.css" />
</head>
<style>
html {
background-color: black;
<style media="print">
@page {
margin: 0;
}
body {
margin: auto;
width: 800px;
aspect-ratio: 8.5/11;
background-color: white;
margin: 0;
}
</style>
<body>
</body>
<body></body>
</html>

17
template/styles.css Normal file
View file

@ -0,0 +1,17 @@
html {
font-family: monospace;
font-weight: bold;
font-size: 16px;
}
body {
height: 95vh;
max-width: 100%;
background-color: #F1FAEE;
color: #2E1F27;
padding: 1.5rem;
margin: 0;
display: flex;
flex-direction: column;
overflow: hidden;
}