Houshan-Basa/web/index.html

151 lines
4.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="/" />
<meta charset="UTF-8" />
<meta content="IE=Edge" http-equiv="X-UA-Compatible" />
<meta name="description" content="با هوشان، می‌توانید به‌سرعت به اطلاعات مورد نیاز دست یابید، تحلیل‌های جامع دریافت کنید و با اطمینان بیشتری تصمیم‌گیری نمایید. این دستیار هوشمند، همچون یک مشاور قابل‌اعتماد، همواره در کنار شماست تا در مسیر پیشرفت و توسعه، همراهتان باشد." />
<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="hoshan" />
<link rel="apple-touch-icon" href="icons/Icon-192.png" />
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" />
<title>Houshan</title>
<link rel="manifest" href="manifest.json" />
<script>
// The value below is injected by flutter build, do not touch.
const serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>
<body>
<style>
body,
html {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #0e1514;
color: #ffffff;
font-family: "Courier New", Courier, monospace;
}
.loader-container {
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.kt-text {
width: 200px;
height: 200px;
animation: pulseOut 1.5s infinite ease-in-out;
position: relative;
z-index: 2;
}
.bracket {
position: absolute;
font-size: 12vw; /* Adjusted relative to viewport width */
color: #888888;
animation: pulseOut 1.5s infinite ease-in-out;
opacity: 0;
}
.bracket.left {
left: -8vw;
}
.bracket.right {
right: -8vw;
}
@keyframes pulseOut {
0% {
transform: scale(1);
opacity: 0.5;
}
50% {
transform: scale(1.3);
opacity: 0.1;
}
100% {
transform: scale(1.6);
opacity: 0;
}
}
@media (max-width: 600px) {
.kt-text {
width: 120px;
height: 120px;
}
}
</style>
<div class="loader-container">
<span class="bracket left">{</span>
<span class="bracket right">}</span>
<img class="kt-text" src="icons/houshan-icon-whie.png" alt="loading"></img>
</div>
<script>
const loaderContainer =
document.getElementsByClassName("loader-container")[0];
window.addEventListener("load", function (ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
},
onEntrypointLoaded: function (engineInitializer) {
engineInitializer.initializeEngine().then(function (appRunner) {
// Remove the loading spinner when the app runner is ready
if (document.body.contains(loaderContainer)) {
loaderContainer.style.transition = "opacity 0.5s ease-out"; // Set transition effect
loaderContainer.style.opacity = "0"; // Start fading out
// Wait for the transition to complete before removing the element
setTimeout(() => {
if (document.body.contains(loaderContainer)) {
document.body.removeChild(loaderContainer);
}
}, 500);
}
appRunner.runApp();
});
},
});
});
</script>
</body>
</html>