Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +346 -19
- prompts.txt +5 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: monday-thompson
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: yellow
|
5 |
+
colorTo: yellow
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,346 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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LHR</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');
|
11 |
+
|
12 |
+
.ticket {
|
13 |
+
perspective: 1000px;
|
14 |
+
transform-style: preserve-3d;
|
15 |
+
box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
|
16 |
+
transition: all 0.5s ease;
|
17 |
+
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
|
18 |
+
border-radius: 12px;
|
19 |
+
overflow: hidden;
|
20 |
+
position: relative;
|
21 |
+
}
|
22 |
+
|
23 |
+
.ticket:hover {
|
24 |
+
transform: translateY(-5px);
|
25 |
+
box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35);
|
26 |
+
}
|
27 |
+
|
28 |
+
.ticket-rip {
|
29 |
+
position: absolute;
|
30 |
+
top: 0;
|
31 |
+
right: 30px;
|
32 |
+
width: 40px;
|
33 |
+
height: 100%;
|
34 |
+
background-image: repeating-linear-gradient(
|
35 |
+
-45deg,
|
36 |
+
transparent,
|
37 |
+
transparent 5px,
|
38 |
+
rgba(255, 255, 255, 0.7) 5px,
|
39 |
+
rgba(255, 255, 255, 0.7) 7px
|
40 |
+
);
|
41 |
+
z-index: 10;
|
42 |
+
}
|
43 |
+
|
44 |
+
.ticket-rip:before, .ticket-rip:after {
|
45 |
+
content: "";
|
46 |
+
position: absolute;
|
47 |
+
width: 20px;
|
48 |
+
height: 20px;
|
49 |
+
border-radius: 50%;
|
50 |
+
background: #f5f7fa;
|
51 |
+
top: -10px;
|
52 |
+
}
|
53 |
+
|
54 |
+
.ticket-rip:before {
|
55 |
+
right: -10px;
|
56 |
+
}
|
57 |
+
|
58 |
+
.ticket-rip:after {
|
59 |
+
right: -10px;
|
60 |
+
top: auto;
|
61 |
+
bottom: -10px;
|
62 |
+
}
|
63 |
+
|
64 |
+
.ticket-stub {
|
65 |
+
position: relative;
|
66 |
+
height: 100%;
|
67 |
+
border-left: 2px dashed rgba(0, 0, 0, 0.15);
|
68 |
+
}
|
69 |
+
|
70 |
+
.ticket-stub:before, .ticket-stub:after {
|
71 |
+
content: "";
|
72 |
+
position: absolute;
|
73 |
+
width: 20px;
|
74 |
+
height: 20px;
|
75 |
+
border-radius: 50%;
|
76 |
+
left: -11px;
|
77 |
+
background: #f5f7fa;
|
78 |
+
}
|
79 |
+
|
80 |
+
.ticket-stub:before {
|
81 |
+
top: -10px;
|
82 |
+
}
|
83 |
+
|
84 |
+
.ticket-stub:after {
|
85 |
+
bottom: -10px;
|
86 |
+
}
|
87 |
+
|
88 |
+
.barcode {
|
89 |
+
letter-spacing: 6px;
|
90 |
+
font-family: 'Libre Barcode 128', cursive;
|
91 |
+
font-size: 24px;
|
92 |
+
color: #000;
|
93 |
+
transform: rotate(90deg);
|
94 |
+
position: absolute;
|
95 |
+
right: -60px;
|
96 |
+
bottom: 50%;
|
97 |
+
}
|
98 |
+
|
99 |
+
.airline-logo {
|
100 |
+
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
|
101 |
+
}
|
102 |
+
|
103 |
+
.route-line {
|
104 |
+
flex-grow: 1;
|
105 |
+
border-top: 2px dashed #3182ce;
|
106 |
+
margin: 0 10px;
|
107 |
+
position: relative;
|
108 |
+
}
|
109 |
+
|
110 |
+
.route-line:after {
|
111 |
+
content: "✈";
|
112 |
+
position: absolute;
|
113 |
+
top: -12px;
|
114 |
+
right: -10px;
|
115 |
+
color: #3182ce;
|
116 |
+
background: #f5f7fa;
|
117 |
+
padding: 0 5px;
|
118 |
+
}
|
119 |
+
|
120 |
+
.glow {
|
121 |
+
animation: glow 2s infinite alternate;
|
122 |
+
}
|
123 |
+
|
124 |
+
@keyframes glow {
|
125 |
+
from {
|
126 |
+
box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
|
127 |
+
}
|
128 |
+
to {
|
129 |
+
box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
|
130 |
+
}
|
131 |
+
}
|
132 |
+
|
133 |
+
.ticket-number {
|
134 |
+
font-family: 'Courier New', monospace;
|
135 |
+
letter-spacing: 2px;
|
136 |
+
}
|
137 |
+
</style>
|
138 |
+
</head>
|
139 |
+
<body class="bg-gray-100 min-h-screen flex items-center justify-center p-4 font-sans">
|
140 |
+
<div class="relative mb-4">
|
141 |
+
<div class="absolute -top-16 left-8 z-10">
|
142 |
+
<div class="w-24 h-24 rounded-full border-4 border-white bg-gray-200 overflow-hidden shadow-lg cursor-pointer hover:shadow-xl transition-shadow relative">
|
143 |
+
<img id="passengerPhoto" src="https://via.placeholder.com/150?text=Passenger" alt="Passenger Photo" class="w-full h-full object-cover">
|
144 |
+
<input type="file" id="photoUpload" accept="image/*" class="hidden">
|
145 |
+
<label for="photoUpload" class="absolute bottom-0 right-0 bg-blue-500 text-white rounded-full p-1 text-xs cursor-pointer">
|
146 |
+
<i class="fas fa-camera"></i>
|
147 |
+
</label>
|
148 |
+
</div>
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
<div class="ticket w-full max-w-4xl bg-white rounded-lg overflow-hidden relative">
|
152 |
+
<!-- Header Section -->
|
153 |
+
<div class="bg-blue-600 text-white p-6 relative pt-10">
|
154 |
+
<div class="flex justify-between items-center">
|
155 |
+
<div class="airline-logo">
|
156 |
+
<img src="https://logo.clearbit.com/airchina.com" alt="Air China" class="h-16" onerror="this.src='https://via.placeholder.com/150?text=Air+China'">
|
157 |
+
</div>
|
158 |
+
<div class="text-right">
|
159 |
+
<h2 class="text-3xl font-bold">AIR CHINA</h2>
|
160 |
+
<p class="text-blue-100 font-semibold">BOARDING PASS</p>
|
161 |
+
</div>
|
162 |
+
</div>
|
163 |
+
<div class="absolute bottom-0 left-0 right-0 h-2 bg-gradient-to-r from-blue-500 via-yellow-400 to-red-500"></div>
|
164 |
+
</div>
|
165 |
+
|
166 |
+
<!-- Main Ticket Section -->
|
167 |
+
<div class="grid grid-cols-1 md:grid-cols-3">
|
168 |
+
<div class="col-span-2 p-6">
|
169 |
+
<!-- Passenger Info -->
|
170 |
+
<div class="mb-6 grid grid-cols-2 gap-4">
|
171 |
+
<div>
|
172 |
+
<p class="text-gray-500 uppercase text-xs font-bold">Passenger</p>
|
173 |
+
<p class="text-xl font-bold">MR ZHANG WEI</p>
|
174 |
+
</div>
|
175 |
+
<div>
|
176 |
+
<p class="text-gray-500 uppercase text-xs font-bold">Booking Reference</p>
|
177 |
+
<p class="text-xl font-bold ticket-number">CA1234567</p>
|
178 |
+
</div>
|
179 |
+
</div>
|
180 |
+
|
181 |
+
<!-- Flight Route -->
|
182 |
+
<div class="bg-gray-50 p-4 rounded-lg mb-6 glow">
|
183 |
+
<div class="flex items-center justify-between mb-4">
|
184 |
+
<div>
|
185 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">From</p>
|
186 |
+
<p class="text-2xl font-bold">Beijing (PEK)</p>
|
187 |
+
<p class="text-sm text-gray-600">Capital International Airport</p>
|
188 |
+
</div>
|
189 |
+
|
190 |
+
<div class="flex items-center">
|
191 |
+
<div class="route-line"></div>
|
192 |
+
</div>
|
193 |
+
|
194 |
+
<div class="text-right">
|
195 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">To</p>
|
196 |
+
<p class="text-2xl font-bold">London (LHR)</p>
|
197 |
+
<p class="text-sm text-gray-600">Heathrow Airport</p>
|
198 |
+
</div>
|
199 |
+
</div>
|
200 |
+
|
201 |
+
<div class="grid grid-cols-3 gap-4">
|
202 |
+
<div>
|
203 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Date</p>
|
204 |
+
<p class="text-lg font-bold">15 JUL 2023</p>
|
205 |
+
</div>
|
206 |
+
<div>
|
207 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Flight</p>
|
208 |
+
<p class="text-lg font-bold">CA 937</p>
|
209 |
+
</div>
|
210 |
+
<div>
|
211 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Class</p>
|
212 |
+
<p class="text-lg font-bold">Business</p>
|
213 |
+
</div>
|
214 |
+
</div>
|
215 |
+
</div>
|
216 |
+
|
217 |
+
<!-- Flight Times -->
|
218 |
+
<div class="grid grid-cols-2 gap-6 mb-6">
|
219 |
+
<div>
|
220 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Departure</p>
|
221 |
+
<p class="text-3xl font-bold">13:45</p>
|
222 |
+
<p class="text-sm text-gray-600">Terminal 3, Gate 12</p>
|
223 |
+
</div>
|
224 |
+
<div>
|
225 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Arrival</p>
|
226 |
+
<p class="text-3xl font-bold">18:30</p>
|
227 |
+
<p class="text-sm text-gray-600">Terminal 2, Gate B48</p>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
|
231 |
+
<!-- Additional Info -->
|
232 |
+
<div class="grid grid-cols-3 gap-4">
|
233 |
+
<div>
|
234 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Seat</p>
|
235 |
+
<p class="text-xl font-bold">12A</p>
|
236 |
+
</div>
|
237 |
+
<div>
|
238 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Terminal</p>
|
239 |
+
<p class="text-xl font-bold">T3</p>
|
240 |
+
</div>
|
241 |
+
<div>
|
242 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Gate</p>
|
243 |
+
<p class="text-xl font-bold">12</p>
|
244 |
+
</div>
|
245 |
+
</div>
|
246 |
+
</div>
|
247 |
+
|
248 |
+
<!-- Ticket Stub -->
|
249 |
+
<div class="ticket-stub bg-gray-100 p-6 relative flex flex-col">
|
250 |
+
<div class="ticket-rip"></div>
|
251 |
+
<div class="barcode">*CA1234567ZHANGWEI*</div>
|
252 |
+
|
253 |
+
<div class="mb-4">
|
254 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Boarding Time</p>
|
255 |
+
<p class="text-lg font-bold">13:00</p>
|
256 |
+
</div>
|
257 |
+
|
258 |
+
<div class="mb-4">
|
259 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Baggage</p>
|
260 |
+
<p class="text-lg font-bold">2PC</p>
|
261 |
+
<p class="text-xs text-gray-600">Max 32kg each</p>
|
262 |
+
</div>
|
263 |
+
|
264 |
+
<div class="mb-4">
|
265 |
+
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Status</p>
|
266 |
+
<p class="text-lg font-bold text-green-600">CONFIRMED</p>
|
267 |
+
</div>
|
268 |
+
|
269 |
+
<div class="mt-auto">
|
270 |
+
<div class="bg-white p-2 rounded text-center shadow-inner">
|
271 |
+
<p class="text-xs text-gray-500 uppercase font-bold">E-Ticket Number</p>
|
272 |
+
<p class="text-xs font-mono">123-4567890123</p>
|
273 |
+
</div>
|
274 |
+
</div>
|
275 |
+
|
276 |
+
<div class="mt-2">
|
277 |
+
<img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data=CA937-12A-ZHANGWEI-15JUL2023" alt="QR Code" class="mx-auto">
|
278 |
+
</div>
|
279 |
+
</div>
|
280 |
+
</div>
|
281 |
+
|
282 |
+
<!-- Footer -->
|
283 |
+
<div class="bg-gray-800 text-white p-4 text-xs">
|
284 |
+
<div class="flex flex-wrap justify-between items-center">
|
285 |
+
<div class="mb-2 md:mb-0">
|
286 |
+
<p class="font-bold">TERMS AND CONDITIONS</p>
|
287 |
+
<p>This ticket is non-transferable. Present your ID and this boarding pass at security.</p>
|
288 |
+
</div>
|
289 |
+
<div class="flex space-x-2">
|
290 |
+
<i class="fas fa-phone-alt"></i>
|
291 |
+
<i class="fas fa-envelope"></i>
|
292 |
+
<i class="fas fa-globe"></i>
|
293 |
+
</div>
|
294 |
+
</div>
|
295 |
+
</div>
|
296 |
+
</div>
|
297 |
+
|
298 |
+
<!-- Photo Modal -->
|
299 |
+
<div id="photoModal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 hidden">
|
300 |
+
<div class="bg-white p-4 rounded-lg max-w-md mx-4">
|
301 |
+
<div class="flex justify-end mb-2">
|
302 |
+
<button id="closeModal" class="text-gray-600 hover:text-gray-800">
|
303 |
+
<i class="fas fa-times"></i>
|
304 |
+
</button>
|
305 |
+
</div>
|
306 |
+
<img id="modalPhoto" src="https://via.placeholder.com/500?text=Passenger+Photo" alt="Passenger Photo" class="w-full h-auto rounded">
|
307 |
+
</div>
|
308 |
+
</div>
|
309 |
+
|
310 |
+
<script>
|
311 |
+
// Photo functionality
|
312 |
+
document.getElementById('photoUpload').addEventListener('change', function(e) {
|
313 |
+
if (e.target.files && e.target.files[0]) {
|
314 |
+
const reader = new FileReader();
|
315 |
+
reader.onload = function(event) {
|
316 |
+
document.getElementById('passengerPhoto').src = event.target.result;
|
317 |
+
document.getElementById('modalPhoto').src = event.target.result;
|
318 |
+
};
|
319 |
+
reader.readAsDataURL(e.target.files[0]);
|
320 |
+
}
|
321 |
+
});
|
322 |
+
|
323 |
+
document.getElementById('passengerPhoto').addEventListener('click', function() {
|
324 |
+
document.getElementById('photoModal').classList.remove('hidden');
|
325 |
+
});
|
326 |
+
|
327 |
+
document.getElementById('closeModal').addEventListener('click', function() {
|
328 |
+
document.getElementById('photoModal').classList.add('hidden');
|
329 |
+
});
|
330 |
+
|
331 |
+
// Real-time clock for boarding pass
|
332 |
+
function updateClock() {
|
333 |
+
const now = new Date();
|
334 |
+
const hours = now.getHours().toString().padStart(2, '0');
|
335 |
+
const minutes = now.getMinutes().toString().padStart(2, '0');
|
336 |
+
const timeString = `${hours}:${minutes}`;
|
337 |
+
document.querySelectorAll('.current-time').forEach(el => {
|
338 |
+
el.textContent = timeString;
|
339 |
+
});
|
340 |
+
}
|
341 |
+
|
342 |
+
setInterval(updateClock, 1000);
|
343 |
+
updateClock();
|
344 |
+
</script>
|
345 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Monday4/monday-thompson" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
346 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Create a flight ticket from Beijing to LHR make it look like a real flight ticket and ultra realistic
|
2 |
+
Add a space to insert photo on the top left corner
|
3 |
+
Open passenger photo
|
4 |
+
Access devices gallery to add passenger photo
|
5 |
+
Open passenger photo to access devices gallery
|