|
| 1 | +<!DOCTYPE html> |
| 2 | +<html> |
| 3 | +<head> |
| 4 | + <!-- |
| 5 | + If you are serving your web app in a path other than the root, change the |
| 6 | + href value below to reflect the base path you are serving from. |
| 7 | +
|
| 8 | + The path provided below has to start and end with a slash "/" in order for |
| 9 | + it to work correctly. |
| 10 | +
|
| 11 | + For more details: |
| 12 | + * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base |
| 13 | +
|
| 14 | + This is a placeholder for base href that will be replaced by the value of |
| 15 | + the `--base-href` argument provided to `flutter build`. |
| 16 | + --> |
| 17 | + <base href="$FLUTTER_BASE_HREF"> |
| 18 | + |
| 19 | + <meta charset="UTF-8"> |
| 20 | + <meta content="IE=Edge" http-equiv="X-UA-Compatible"> |
| 21 | + <meta name="description" content="A new Flutter project."> |
| 22 | + |
| 23 | + <!-- iOS meta tags & icons --> |
| 24 | + <meta name="apple-mobile-web-app-capable" content="yes"> |
| 25 | + <meta name="apple-mobile-web-app-status-bar-style" content="black"> |
| 26 | + <meta name="apple-mobile-web-app-title" content="flutter_os_doc_website"> |
| 27 | + <link rel="apple-touch-icon" href="icons/Icon-192.png"> |
| 28 | + |
| 29 | + <!-- Favicon --> |
| 30 | + <link rel="icon" type="image/png" href="favicon.png"/> |
| 31 | + |
| 32 | + <title>flutter_os_doc_website</title> |
| 33 | + <link rel="manifest" href="manifest.json"> |
| 34 | + |
| 35 | + <!-- Custom loading animation styles --> |
| 36 | + <style> |
| 37 | + .loading { |
| 38 | + display: flex; |
| 39 | + justify-content: center; |
| 40 | + align-items: center; |
| 41 | + height: 100vh; |
| 42 | + width: 100vw; |
| 43 | + position: fixed; |
| 44 | + top: 0; |
| 45 | + left: 0; |
| 46 | + background-color: #F3F0FA; /* Using your app's softPurpleBackground color */ |
| 47 | + z-index: 999; |
| 48 | + transition: opacity 0.5s ease-out; |
| 49 | + } |
| 50 | + |
| 51 | + .dots-container { |
| 52 | + position: relative; |
| 53 | + width: 60px; |
| 54 | + height: 60px; |
| 55 | + animation: container-rotate 6s linear infinite; |
| 56 | + } |
| 57 | + |
| 58 | + .dot { |
| 59 | + position: absolute; |
| 60 | + width: 12px; |
| 61 | + height: 12px; |
| 62 | + background-color: #380D70; /* Your app's primaryPurple color */ |
| 63 | + border-radius: 50%; |
| 64 | + animation: dot-move 2s infinite cubic-bezier(0.4, 0.0, 0.2, 1); |
| 65 | + } |
| 66 | + |
| 67 | + .dot:nth-child(1) { |
| 68 | + top: 0; |
| 69 | + left: 50%; |
| 70 | + transform: translateX(-50%); |
| 71 | + animation-name: dot-move-top; |
| 72 | + } |
| 73 | + |
| 74 | + .dot:nth-child(2) { |
| 75 | + top: 50%; |
| 76 | + right: 0; |
| 77 | + transform: translateY(-50%); |
| 78 | + animation-name: dot-move-right; |
| 79 | + } |
| 80 | + |
| 81 | + .dot:nth-child(3) { |
| 82 | + bottom: 0; |
| 83 | + left: 50%; |
| 84 | + transform: translateX(-50%); |
| 85 | + animation-name: dot-move-bottom; |
| 86 | + } |
| 87 | + |
| 88 | + .dot:nth-child(4) { |
| 89 | + top: 50%; |
| 90 | + left: 0; |
| 91 | + transform: translateY(-50%); |
| 92 | + animation-name: dot-move-left; |
| 93 | + } |
| 94 | + |
| 95 | + @keyframes container-rotate { |
| 96 | + 0% { transform: rotate(0deg); } |
| 97 | + 100% { transform: rotate(360deg); } |
| 98 | + } |
| 99 | + |
| 100 | + @keyframes dot-move-top { |
| 101 | + 0%, 100% { transform: translate(-50%, 0); } |
| 102 | + 25%, 75% { transform: translate(-50%, 24px) scale(1.5); } |
| 103 | + 50% { transform: translate(-50%, 0); } |
| 104 | + } |
| 105 | + |
| 106 | + @keyframes dot-move-right { |
| 107 | + 0%, 100% { transform: translate(0, -50%); } |
| 108 | + 25%, 75% { transform: translate(-24px, -50%) scale(1.5); } |
| 109 | + 50% { transform: translate(0, -50%); } |
| 110 | + } |
| 111 | + |
| 112 | + @keyframes dot-move-bottom { |
| 113 | + 0%, 100% { transform: translate(-50%, 0); } |
| 114 | + 25%, 75% { transform: translate(-50%, -24px) scale(1.5); } |
| 115 | + 50% { transform: translate(-50%, 0); } |
| 116 | + } |
| 117 | + |
| 118 | + @keyframes dot-move-left { |
| 119 | + 0%, 100% { transform: translate(0, -50%); } |
| 120 | + 25%, 75% { transform: translate(24px, -50%) scale(1.5); } |
| 121 | + 50% { transform: translate(0, -50%); } |
| 122 | + } |
| 123 | + </style> |
| 124 | + |
| 125 | + <script> |
| 126 | + // The value below is injected by flutter build, do not touch. |
| 127 | + var serviceWorkerVersion = null; |
| 128 | + </script> |
| 129 | + <!-- This script adds the flutter initialization JS code --> |
| 130 | + <script src="flutter.js" defer></script> |
| 131 | +</head> |
| 132 | +<body> |
| 133 | + <!-- Loading animation HTML --> |
| 134 | + <div id="loading" class="loading"> |
| 135 | + <div class="dots-container"> |
| 136 | + <div class="dot"></div> |
| 137 | + <div class="dot"></div> |
| 138 | + <div class="dot"></div> |
| 139 | + <div class="dot"></div> |
| 140 | + </div> |
| 141 | + </div> |
| 142 | + |
| 143 | + <script> |
| 144 | + window.addEventListener('load', function(ev) { |
| 145 | + // Download main.dart.js |
| 146 | + _flutter.loader.loadEntrypoint({ |
| 147 | + serviceWorker: { |
| 148 | + serviceWorkerVersion: serviceWorkerVersion, |
| 149 | + }, |
| 150 | + onEntrypointLoaded: function(engineInitializer) { |
| 151 | + engineInitializer.initializeEngine().then(function(appRunner) { |
| 152 | + appRunner.runApp(); |
| 153 | + // Hide the loading animation once Flutter is initialized |
| 154 | + const loader = document.getElementById('loading'); |
| 155 | + if (loader) { |
| 156 | + loader.style.opacity = '0'; |
| 157 | + setTimeout(function() { |
| 158 | + loader.style.display = 'none'; |
| 159 | + }, 500); |
| 160 | + } |
| 161 | + }); |
| 162 | + } |
| 163 | + }); |
| 164 | + }); |
| 165 | + </script> |
| 166 | + <script type="module"> |
| 167 | + // Import the functions you need from the SDKs you need |
| 168 | + import { initializeApp } from "https://www.gstatic.com/firebasejs/11.6.1/firebase-app.js"; |
| 169 | + import { getAnalytics } from "https://www.gstatic.com/firebasejs/11.6.1/firebase-analytics.js"; |
| 170 | + // TODO: Add SDKs for Firebase products that you want to use |
| 171 | + // https://firebase.google.com/docs/web/setup#available-libraries |
| 172 | + |
| 173 | + // Your web app's Firebase configuration |
| 174 | + // For Firebase JS SDK v7.20.0 and later, measurementId is optional |
| 175 | + const firebaseConfig = { |
| 176 | + apiKey: "AIzaSyD3EYB-sUsiF509aeANIW1GQgq5HzTz3zI", |
| 177 | + authDomain: "simform-flutter-packages.firebaseapp.com", |
| 178 | + projectId: "simform-flutter-packages", |
| 179 | + storageBucket: "simform-flutter-packages.firebasestorage.app", |
| 180 | + messagingSenderId: "483966650896", |
| 181 | + appId: "1:483966650896:web:b9b07bf4a257348147d895", |
| 182 | + measurementId: "G-NQMNW9PTWK" |
| 183 | + }; |
| 184 | + |
| 185 | + // Initialize Firebase |
| 186 | + const app = initializeApp(firebaseConfig); |
| 187 | + const analytics = getAnalytics(app); |
| 188 | + </script> |
| 189 | +</body> |
| 190 | +</html> |
0 commit comments