<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Track Your Order</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f9f1f5;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.track-container {
background: white;
padding: 30px 40px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(208, 95, 156, 0.3);
text-align: center;
max-width: 400px;
width: 100%;
}
input[type="text"] {
padding: 12px;
width: 100%;
border: 1px solid #d05f9c;
border-radius: 6px;
font-size: 16px;
margin-bottom: 15px;
}
button {
background-color: #d05f9c;
color: white;
padding: 12px 25px;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #b84984;
}
</style>
</head>
<body>
<div class="track-container">
<h2>Track Your Order</h2>
<p>Enter your order number below to see your order status.</p>
<input type="text" id="orderInput" placeholder="Order Number" />
<button onclick="trackOrder()">Track</button>
</div>
<script>
function trackOrder() {
const orderNum = document.getElementById('orderInput').value.trim();
if (!orderNum) {
alert('Please enter a valid order number.');
return;
}
// Mete URL swiv ou la (modifye selon sèvis ou)
const trackingUrl = 'https://yourtrackingurl.com/track?order=' + encodeURIComponent(orderNum);
window.location.href = trackingUrl;
}
</script>
</body>
</html>