|
| 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="/"> |
| 18 | + |
| 19 | + <meta charset="UTF-8"> |
| 20 | + <meta content="IE=Edge" http-equiv="X-UA-Compatible"> |
| 21 | + <meta name="description" content="This is a sando's homepage."> |
| 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="sando_diary"> |
| 27 | + |
| 28 | + <!-- Favicon --> |
| 29 | + <link rel="icon" type="image/png" href="favicon.ico"/> |
| 30 | + |
| 31 | + <title>sando_diary</title> |
| 32 | + <link rel="manifest" href="manifest.json"> |
| 33 | + |
| 34 | + <!-- Loading Animation --> |
| 35 | + <style> |
| 36 | + /* 브라우저 기본 마진, 패딩 제거 및 스크롤바 문제 해결 */ |
| 37 | + * { |
| 38 | + margin: 0; |
| 39 | + padding: 0; |
| 40 | + box-sizing: border-box; |
| 41 | + } |
| 42 | + |
| 43 | + html, body { |
| 44 | + height: 100%; |
| 45 | + overflow: hidden; /* 스크롤바가 생기지 않도록 */ |
| 46 | + } |
| 47 | + |
| 48 | + /* 로딩 화면 스타일 */ |
| 49 | + #loading-screen { |
| 50 | + position: fixed; |
| 51 | + top: 0; |
| 52 | + left: 0; |
| 53 | + width: 100vw; |
| 54 | + height: 100vh; |
| 55 | + display: flex; |
| 56 | + align-items: center; |
| 57 | + justify-content: center; |
| 58 | + background-color: white; |
| 59 | + z-index: 9999; |
| 60 | + } |
| 61 | + |
| 62 | + /* GIF 크기 조정 */ |
| 63 | + #loading-screen img { |
| 64 | + width: 300px; /* 원하는 크기로 조정 */ |
| 65 | + height: 300px; /* 원하는 크기로 조정 */ |
| 66 | + max-width: 100%; |
| 67 | + max-height: 100%; |
| 68 | + display: block; |
| 69 | + } |
| 70 | + |
| 71 | + </style> |
| 72 | +</head> |
| 73 | +<body> |
| 74 | +<div id="loading-screen"> |
| 75 | + <img src="assets/loading_animation.gif" alt="Loading..."/> |
| 76 | +</div> |
| 77 | + |
| 78 | +<script> |
| 79 | + window.onload = function() { |
| 80 | + var loadingScreen = document.getElementById('loading-screen'); |
| 81 | + var loadingGif = document.getElementById('loading-gif'); |
| 82 | + |
| 83 | + // 이미지 로드 완료 시 중앙 위치 재설정 (필요한 경우) |
| 84 | + loadingGif.onload = function() { |
| 85 | + loadingScreen.style.display = 'flex'; // 이 시점에 중앙에 맞게 표시 |
| 86 | + }; |
| 87 | + }; |
| 88 | + |
| 89 | + |
| 90 | + window.addEventListener('flutter-first-frame', function () { |
| 91 | + var loadingScreen = document.getElementById('loading-screen'); |
| 92 | + if (loadingScreen) { |
| 93 | + loadingScreen.style.display = 'none'; |
| 94 | + } |
| 95 | + }); |
| 96 | + |
| 97 | + |
| 98 | +</script> |
| 99 | +<script src="flutter_bootstrap.js" async></script> |
| 100 | +</body> |
| 101 | +</html> |
0 commit comments