<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apply Online or Live Call Button</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f5f5f5;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
text-align: center;
}
h1 {
color: #333;
margin-bottom: 20px;
}
p {
color: #666;
margin-bottom: 30px;
}
.button-container {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 20px;
}
.apply-online-button,
.live-call-button {
padding: 15px 30px;
border: 2px solid transparent;
border-radius: 30px;
cursor: pointer;
font-size: 18px;
transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
outline: none;
position: relative;
overflow: hidden;
}
.apply-online-button::before,
.live-call-button::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: transparent;
border-radius: inherit;
transition: transform 0.3s ease, background-color 0.3s ease;
z-index: -1;
}
.apply-online-button:hover::before,
.live-call-button:hover::before {
background-color: rgba(255, 255, 255, 0.3);
transform: scale(3);
}
.apply-online-button {
background-color: #ff6f61;
color: #fff;
}
.apply-online-button:hover {
border-color: #ff6f61;
transform: scale(1.05);
}
.live-call-button {
background-color: #6fb1fc;
color: #fff;
}
.live-call-button:hover {
border-color: #6fb1fc;
transform: scale(1.05);
}
</style>
</head>
<body>
<div class="container">
<!-- Video Link -->
<img src="https://th.bing.com/th/id/OIP.y6rFVOjboRkhJaIJXoqRnAAAAA?rs=1&pid=ImgDetMain" alt="Video Thumbnail" class="video-thumbnail">
</a>
<h1>Ready to Take the Next Step?</h1>
<p>Choose your preferred option:</p>
<!-- Button container -->
<div class="button-container">
<!-- Apply Online Button -->
<button class="apply-online-button" onclick="applyOnline()">Apply Online</button>
<!-- Live Call Button -->
<button class="live-call-button" onclick="initiateLiveCall()">Live Call</button>
</div>
</div>
<script>
function applyOnline() {
// Redirect to the online application page
window.location.href = 'https://www.youtube.com/@earnonlinewithtechpk';
}
function initiateLiveCall() {
// Replace 'your-backend-service-url' with the actual URL of your backend service
var backendServiceUrl = 'https://www.youtube.com/@earnonlinewithtechpk';
// Example: Making a request to the backend service to initiate the live call
fetch(backendServiceUrl, {
method: 'POST', // Adjust the method as per your backend service requirements
// Additional headers or body can be included here as needed
})
.then(response => {
console.log('Live call initiated successfully!');
})
.catch(error => {
console.error('Error initiating live call:', error);
});
}
</script>
</body>
</html>