monday-thompson / index.html
Monday4's picture
Add 3 files
cda6e6a verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flight Ticket - Beijing to LHR</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&display=swap');
.ticket {
perspective: 1000px;
transform-style: preserve-3d;
box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.3);
transition: all 0.5s ease;
background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
border-radius: 12px;
overflow: hidden;
position: relative;
}
.ticket:hover {
transform: translateY(-5px);
box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35);
}
.ticket-rip {
position: absolute;
top: 0;
right: 30px;
width: 40px;
height: 100%;
background-image: repeating-linear-gradient(
-45deg,
transparent,
transparent 5px,
rgba(255, 255, 255, 0.7) 5px,
rgba(255, 255, 255, 0.7) 7px
);
z-index: 10;
}
.ticket-rip:before, .ticket-rip:after {
content: "";
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
background: #f5f7fa;
top: -10px;
}
.ticket-rip:before {
right: -10px;
}
.ticket-rip:after {
right: -10px;
top: auto;
bottom: -10px;
}
.ticket-stub {
position: relative;
height: 100%;
border-left: 2px dashed rgba(0, 0, 0, 0.15);
}
.ticket-stub:before, .ticket-stub:after {
content: "";
position: absolute;
width: 20px;
height: 20px;
border-radius: 50%;
left: -11px;
background: #f5f7fa;
}
.ticket-stub:before {
top: -10px;
}
.ticket-stub:after {
bottom: -10px;
}
.barcode {
letter-spacing: 6px;
font-family: 'Libre Barcode 128', cursive;
font-size: 24px;
color: #000;
transform: rotate(90deg);
position: absolute;
right: -60px;
bottom: 50%;
}
.airline-logo {
filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}
.route-line {
flex-grow: 1;
border-top: 2px dashed #3182ce;
margin: 0 10px;
position: relative;
}
.route-line:after {
content: "✈";
position: absolute;
top: -12px;
right: -10px;
color: #3182ce;
background: #f5f7fa;
padding: 0 5px;
}
.glow {
animation: glow 2s infinite alternate;
}
@keyframes glow {
from {
box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}
to {
box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
}
}
.ticket-number {
font-family: 'Courier New', monospace;
letter-spacing: 2px;
}
</style>
</head>
<body class="bg-gray-100 min-h-screen flex items-center justify-center p-4 font-sans">
<div class="relative mb-4">
<div class="absolute -top-16 left-8 z-10">
<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">
<img id="passengerPhoto" src="https://via.placeholder.com/150?text=Passenger" alt="Passenger Photo" class="w-full h-full object-cover">
<input type="file" id="photoUpload" accept="image/*" class="hidden">
<label for="photoUpload" class="absolute bottom-0 right-0 bg-blue-500 text-white rounded-full p-1 text-xs cursor-pointer">
<i class="fas fa-camera"></i>
</label>
</div>
</div>
</div>
<div class="ticket w-full max-w-4xl bg-white rounded-lg overflow-hidden relative">
<!-- Header Section -->
<div class="bg-blue-600 text-white p-6 relative pt-10">
<div class="flex justify-between items-center">
<div class="airline-logo">
<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'">
</div>
<div class="text-right">
<h2 class="text-3xl font-bold">AIR CHINA</h2>
<p class="text-blue-100 font-semibold">BOARDING PASS</p>
</div>
</div>
<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>
</div>
<!-- Main Ticket Section -->
<div class="grid grid-cols-1 md:grid-cols-3">
<div class="col-span-2 p-6">
<!-- Passenger Info -->
<div class="mb-6 grid grid-cols-2 gap-4">
<div>
<p class="text-gray-500 uppercase text-xs font-bold">Passenger</p>
<p class="text-xl font-bold">MR ZHANG WEI</p>
</div>
<div>
<p class="text-gray-500 uppercase text-xs font-bold">Booking Reference</p>
<p class="text-xl font-bold ticket-number">CA1234567</p>
</div>
</div>
<!-- Flight Route -->
<div class="bg-gray-50 p-4 rounded-lg mb-6 glow">
<div class="flex items-center justify-between mb-4">
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">From</p>
<p class="text-2xl font-bold">Beijing (PEK)</p>
<p class="text-sm text-gray-600">Capital International Airport</p>
</div>
<div class="flex items-center">
<div class="route-line"></div>
</div>
<div class="text-right">
<p class="text-gray-500 uppercase text-xs font-bold mb-1">To</p>
<p class="text-2xl font-bold">London (LHR)</p>
<p class="text-sm text-gray-600">Heathrow Airport</p>
</div>
</div>
<div class="grid grid-cols-3 gap-4">
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Date</p>
<p class="text-lg font-bold">15 JUL 2023</p>
</div>
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Flight</p>
<p class="text-lg font-bold">CA 937</p>
</div>
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Class</p>
<p class="text-lg font-bold">Business</p>
</div>
</div>
</div>
<!-- Flight Times -->
<div class="grid grid-cols-2 gap-6 mb-6">
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Departure</p>
<p class="text-3xl font-bold">13:45</p>
<p class="text-sm text-gray-600">Terminal 3, Gate 12</p>
</div>
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Arrival</p>
<p class="text-3xl font-bold">18:30</p>
<p class="text-sm text-gray-600">Terminal 2, Gate B48</p>
</div>
</div>
<!-- Additional Info -->
<div class="grid grid-cols-3 gap-4">
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Seat</p>
<p class="text-xl font-bold">12A</p>
</div>
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Terminal</p>
<p class="text-xl font-bold">T3</p>
</div>
<div>
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Gate</p>
<p class="text-xl font-bold">12</p>
</div>
</div>
</div>
<!-- Ticket Stub -->
<div class="ticket-stub bg-gray-100 p-6 relative flex flex-col">
<div class="ticket-rip"></div>
<div class="barcode">*CA1234567ZHANGWEI*</div>
<div class="mb-4">
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Boarding Time</p>
<p class="text-lg font-bold">13:00</p>
</div>
<div class="mb-4">
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Baggage</p>
<p class="text-lg font-bold">2PC</p>
<p class="text-xs text-gray-600">Max 32kg each</p>
</div>
<div class="mb-4">
<p class="text-gray-500 uppercase text-xs font-bold mb-1">Status</p>
<p class="text-lg font-bold text-green-600">CONFIRMED</p>
</div>
<div class="mt-auto">
<div class="bg-white p-2 rounded text-center shadow-inner">
<p class="text-xs text-gray-500 uppercase font-bold">E-Ticket Number</p>
<p class="text-xs font-mono">123-4567890123</p>
</div>
</div>
<div class="mt-2">
<img src="https://api.qrserver.com/v1/create-qr-code/?size=100x100&data=CA937-12A-ZHANGWEI-15JUL2023" alt="QR Code" class="mx-auto">
</div>
</div>
</div>
<!-- Footer -->
<div class="bg-gray-800 text-white p-4 text-xs">
<div class="flex flex-wrap justify-between items-center">
<div class="mb-2 md:mb-0">
<p class="font-bold">TERMS AND CONDITIONS</p>
<p>This ticket is non-transferable. Present your ID and this boarding pass at security.</p>
</div>
<div class="flex space-x-2">
<i class="fas fa-phone-alt"></i>
<i class="fas fa-envelope"></i>
<i class="fas fa-globe"></i>
</div>
</div>
</div>
</div>
<!-- Photo Modal -->
<div id="photoModal" class="fixed inset-0 bg-black bg-opacity-75 flex items-center justify-center z-50 hidden">
<div class="bg-white p-4 rounded-lg max-w-md mx-4">
<div class="flex justify-end mb-2">
<button id="closeModal" class="text-gray-600 hover:text-gray-800">
<i class="fas fa-times"></i>
</button>
</div>
<img id="modalPhoto" src="https://via.placeholder.com/500?text=Passenger+Photo" alt="Passenger Photo" class="w-full h-auto rounded">
</div>
</div>
<script>
// Photo functionality
document.getElementById('photoUpload').addEventListener('change', function(e) {
if (e.target.files && e.target.files[0]) {
const reader = new FileReader();
reader.onload = function(event) {
document.getElementById('passengerPhoto').src = event.target.result;
document.getElementById('modalPhoto').src = event.target.result;
};
reader.readAsDataURL(e.target.files[0]);
}
});
document.getElementById('passengerPhoto').addEventListener('click', function() {
document.getElementById('photoModal').classList.remove('hidden');
});
document.getElementById('closeModal').addEventListener('click', function() {
document.getElementById('photoModal').classList.add('hidden');
});
// Real-time clock for boarding pass
function updateClock() {
const now = new Date();
const hours = now.getHours().toString().padStart(2, '0');
const minutes = now.getMinutes().toString().padStart(2, '0');
const timeString = `${hours}:${minutes}`;
document.querySelectorAll('.current-time').forEach(el => {
el.textContent = timeString;
});
}
setInterval(updateClock, 1000);
updateClock();
</script>
<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>
</html>