-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (81 loc) · 3.09 KB
/
index.html
File metadata and controls
89 lines (81 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>RefuMAN: Refugee Management & Assistance Network</title>
<link rel="manifest" href="/manifest.json">
<meta name="theme-color" content="#1d4ed8">
<!-- Apple PWA support -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="RefuMAN">
<link rel="apple-touch-icon" href="/icons/icon-192x192.png">
<script src="https://cdn.tailwindcss.com"></script>
<style>
@media print {
/* Generic print utility classes */
.print-no-break {
page-break-inside: avoid;
}
.print-hidden {
display: none !important;
}
/*
This class-based system is used to prepare the page for printing
a specific modal's content. It is triggered by JavaScript.
*/
body.is-printing-medical-record {
background-color: white !important;
}
/* 1. Hide the main application interface */
body.is-printing-medical-record > #root {
display: none;
}
/* 2. Find the modal containing the record, un-hide it, and strip its modal styling */
body.is-printing-medical-record > div.fixed.inset-0 {
display: block !important;
visibility: visible;
position: static !important;
background: transparent !important;
}
/* 3. Reset the styling of the modal's content container */
body.is-printing-medical-record > div.fixed.inset-0 > div.bg-white {
visibility: visible;
width: 100% !important;
max-width: 100% !important;
margin: 0 !important;
padding: 0 !important;
box-shadow: none !important;
border: none !important;
}
/* 4. Hide the modal's own UI (header, close button) */
body.is-printing-medical-record .modal-header-print-hidden {
display: none;
}
}
/* Non-print styles for the original Proof of Registration */
#printable {
visibility: visible;
}
</style>
<script type="importmap">
{
"imports": {
"react": "https://aistudiocdn.com/react@^19.2.0",
"react-dom/": "https://aistudiocdn.com/react-dom@^19.2.0/",
"react/": "https://aistudiocdn.com/react@^19.2.0/",
"recharts": "https://aistudiocdn.com/recharts@^3.2.1",
"@google/genai": "https://aistudiocdn.com/@google/genai@^1.22.0"
}
}
</script>
<link rel="stylesheet" href="/index.css">
</head>
<body class="bg-gray-100 dark:bg-gray-900">
<div id="root"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script>
<script type="module" src="/index.tsx"></script>
</body>
</html>