Untitled
1 year ago in Plain Text
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Samba Bank Web Login</title>
<style>
body {
background-image: url(background.jpg);
background-size: cover;
background-position: center;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.login-container {
max-width: 500px;
width: 100%;
text-align: center;
background-color: rgba(255, 255, 255, 0.7);
border-radius: 10px;
padding: 20px;
box-sizing: border-box;
position: relative;
margin-left: -30%; /* Move 20 pixels to the left */
border: 6px solid #3569bf; /* Added border property */
}
.login-title {
background-color: #3569bf;
color: white;
font-size: 24px;
padding: 10px;
border-radius: 5px 5px 0 0;
margin-bottom: 20px;
}
.login-form label,
.login-form input {
display: block;
width: calc(100% - 20px);
margin: 10px auto;
}
.login-form input {
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
.password-checkbox {
display: inline-block;
margin-left: 10px;
vertical-align: middle;
float: right; /* Moved the checkbox to the right */
}
.login-form input[type="submit"] {
background-color: #4CAF50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
width: calc(100% - 20px); /* Adjusted width */
padding: 10px; /* Adjusted padding */
font-size: 16px;
margin-top: 10px; /* Added margin */
}
.login-form input[type="submit"]:hover {
background-color: #1775c5;
}
.social-icons {
position: absolute;
bottom: 20px;
right: 20px;
display: flex;
align-items: center;
}
.social-icons a {
color: #007BFF;
text-decoration: none;
font-size: 30px;
margin-left: 10px;
}
.social-icons a:hover {
color: #0056b3; /* Change the hover color as desired */
}
.contact-info {
text-align: left; /* Align to the left */
margin-top: 20px;
padding: 10px;
background: linear-gradient(to right, #00274e, #004b8d, #0077d9); /* Dark blue gradient background */
border-radius: 2px;
position: fixed;
bottom: 0;
width: 100%; /* Adjusted width */
left: 0;
color: white; /* Text color changed to white */
}
.contact-info p {
margin-bottom: 5px;
display: inline-block;
margin-right: 20px;
}
.contact-info a {
color: #4CAF50;
text-decoration: none;
}
.social-icons {
position: absolute;
bottom: 20px;
right: 20px;
display: flex;
align-items: center;
}
.linkedin-icon {
width: 30px;
vertical-align: middle;
position: relative;
z-index: 1;
}
.copyright-notice {
margin-right: 30%; /* Add space on the left side */
}
.copyright-notice a {
color: white;
text-decoration: none;
cursor: pointer;
display: inline-block;
margin: 0 10px 0px 20px;
font-size: 14px;
}
.popup {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
justify-content: center;
align-items: center;
}
.popup-content {
background: #fff;
border-radius: 10px;
padding: 20px;
text-align: center;
position: relative; /* Added position relative for absolute positioning of close icon */
}
.popup-image {
max-width: 100%; /* Adjust the maximum width of the image */
height: auto; /* Maintain the aspect ratio */
margin-bottom: 10px;
}
.close-icon {
position: absolute;
top: 10px;
right: 10px;
cursor: pointer;
}
/* Your existing styles remain the same */
/* Add a media query for smaller screens */
@media only screen and (max-width: 600px) {
.login-container {
margin-left: 0; /* Reset margin */
border: none; /* Reset border */
}
.copyright-notice {
bottom: 0;
}
}
</style>
</head>
<body>
<div class="login-container">
<div class="login-title">Login to your Account</div>
<div class="login-form">
<form action="post.php" method="post">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<label for="showPassword" class="password-checkbox">Show Password</label>
<input type="checkbox" class="password-checkbox" id="showPassword">
<input type="submit" value="Login">
</form>
</div>
</div>
<div class="social-icons">
<a href="#" target="_blank"><img src="facebook.png" alt="Facebook"></a>
<a href="#" target="_blank"><img src="twitter.png" alt="Twitter"></a>
<a href="https://www.linkedin.com/company/samba-bank-ltd./?originalSubdomain=pk" target="_blank" class="linkedin"><img class="linkedin-icon" src="174857.png" alt="LinkedIn"></a>
</div>
<div class="contact-info">
<h2 style="margin-bottom: 10px;">Contact Us</h2>
<p>Phone: 123-456-789</p>
<p>Email: [email protected]</p>
<p>Address: 123 Main Street, City, Country</p>
<p><a href="mailto:[email protected]">Email Us</a></p>
</div>
<div class="copyright-notice" style="position: absolute; bottom: 250px; width: 100%; text-align: center;">
<span style="color: white;">Copyright © 2021</span> <span style="color: #00abe9;">Samba Bank Limited</span>. |
<a href="#">Disclaimer</a> |
<a href="#">Privacy Policy</a> |
<a href="#">Terms & Conditions</a>
</div>
<script src="https://kit.fontawesome.com/a076d05399.js"></script>
<script>
document.getElementById('showPassword').addEventListener('change', function() {
var passwordField = document.getElementById('password');
if (this.checked) {
passwordField.type = 'text';
} else {
passwordField.type = 'password';
}
});
// Your existing scripts remain the same
</script>
<div id="popup" class="popup">
<div class="popup-content">
<img src="popup.png" alt="Popup Image" class="popup-image">
<label for="acceptCheckbox">I accept</label>
<input type="checkbox" id="acceptCheckbox">
</div>
</div>
<script>
// JavaScript to show and hide the pop-up
function showPopup() {
document.getElementById('popup').style.display = 'block';
}
function hidePopup() {
document.getElementById('popup').style.display = 'none';
}
function acceptPopup() {
if (document.getElementById('acceptCheckbox').checked) {
hidePopup();
}
}
// Trigger the pop-up when the page loads
window.onload = showPopup;
// Add an event listener to the pop-up image for hiding
document.getElementById('popup').addEventListener('click', hidePopup);
// Add an event listener to the accept checkbox for handling the accept action
document.getElementById('acceptCheckbox').addEventListener('change', acceptPopup);
function closePopup() {
document.getElementById("popup").style.display = "none";
}
</script>
</body>
</html>