splash screen fix

This commit is contained in:
2024-08-26 15:29:30 +02:00
parent 7a2593468e
commit 3efa6f9df1
14 changed files with 282 additions and 273 deletions

View File

@@ -30,36 +30,14 @@
<title>Mzansi Innovation Hub</title>
<link rel="manifest" href="manifest.json">
<!-- <style>
.main {
width: 100%;
height: 100vh;
background-color: #3A4454;
display: flex; /* Default Axis is X*/
flex-direction: column;
justify-content: center; /* Main Axis */
align-items: center; /* Cross Axis */
}
.indicator{
width: 100px;
}
.writting{
font-size: 15px;
font-family: fantasy;
color: #bedcfe;
position: absolute;
bottom: 0;
padding-bottom: 3%
}
.bg{
background-color: #3A4454;
overflow: hidden
}
</style> -->
</style> -->
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<!-- <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"> -->
<style id="splash-screen-style">
@@ -128,7 +106,7 @@
}
</script>
</head>
<body class="bg">
<body>
<picture id="splash-branding">
<source srcset="splash/img/branding-1x.png 1x, splash/img/branding-2x.png 2x, splash/img/branding-3x.png 3x, splash/img/branding-4x.png 4x" media="(prefers-color-scheme: light)">
<source srcset="splash/img/branding-dark-1x.png 1x, splash/img/branding-dark-2x.png 2x, splash/img/branding-dark-3x.png 3x, splash/img/branding-dark-4x.png 4x" media="(prefers-color-scheme: dark)">
@@ -163,7 +141,7 @@
<!-- Versioning -->
<script defer>
var serviceWorkerVersion = null;
var serviceWorkerVersion = '{{flutter_service_worker_version}}';
var scriptLoaded = false;
function loadMainDartJs() {
if (scriptLoaded) {