update
This commit is contained in:
56
index.html
Normal file
56
index.html
Normal file
@@ -0,0 +1,56 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Welcome Page</title>
|
||||
<style>
|
||||
/* Reset default browser styles */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Center the content on the page */
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: center; /* Center horizontally */
|
||||
align-items: center; /* Center vertically */
|
||||
height: 100vh; /* Full viewport height */
|
||||
background-color: #ffffff; /* Adjust background color */
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
|
||||
/* Logo styling */
|
||||
#logo {
|
||||
opacity: 0; /* Start fully transparent */
|
||||
transition: opacity 3s ease-in-out; /* Fade-in effect */
|
||||
max-width: 80%; /* Ensure logo scales well */
|
||||
max-height: 80%; /* Prevent logo from being too large */
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Logo Image -->
|
||||
<img id="logo" src="/html/assets/img/logoModuleAirColor.png" alt="Logo">
|
||||
|
||||
<script>
|
||||
// Add the fade-in effect
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const logo = document.getElementById("logo");
|
||||
|
||||
// Trigger fade-in by changing the opacity
|
||||
setTimeout(() => {
|
||||
logo.style.opacity = "1";
|
||||
}, 100); // Slight delay before starting the fade-in effect
|
||||
|
||||
// Redirect after 10 seconds
|
||||
setTimeout(() => {
|
||||
window.location.href = "html/index.html"; // Replace with your target URL
|
||||
}, 3000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user