index.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. The path provided below has to start and end with a slash "/" in order for
  8. it to work correctly.
  9. For more details:
  10. * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
  11. This is a placeholder for base href that will be replaced by the value of
  12. the `--base-href` argument provided to `flutter build`.
  13. -->
  14. <base href="$FLUTTER_BASE_HREF" />
  15. <meta charset="UTF-8" />
  16. <meta content="IE=Edge" http-equiv="X-UA-Compatible" />
  17. <meta name="description" content="A new Flutter project." />
  18. <!-- iOS meta tags & icons -->
  19. <meta name="mobile-web-app-capable" content="yes" />
  20. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  21. <meta name="apple-mobile-web-app-title" content="FlashLink" />
  22. <link rel="apple-touch-icon" href="icons/Icon-192.png" />
  23. <!-- Favicon -->
  24. <link rel="icon" type="image/png" href="favicon.png" />
  25. <title>FlashLink</title>
  26. <link rel="manifest" href="manifest.json" />
  27. <meta
  28. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
  29. name="viewport"
  30. />
  31. <style id="splash-screen-style">
  32. html {
  33. height: 100%;
  34. }
  35. body {
  36. margin: 0;
  37. min-height: 100%;
  38. background-color: #000000;
  39. background-size: 100% 100%;
  40. }
  41. .center {
  42. margin: 0;
  43. position: absolute;
  44. top: 50%;
  45. left: 50%;
  46. -ms-transform: translate(-50%, -50%);
  47. transform: translate(-50%, -50%);
  48. }
  49. .contain {
  50. display: block;
  51. width: 100%;
  52. height: 100%;
  53. object-fit: contain;
  54. }
  55. .stretch {
  56. display: block;
  57. width: 100%;
  58. height: 100%;
  59. }
  60. .cover {
  61. display: block;
  62. width: 100%;
  63. height: 100%;
  64. object-fit: cover;
  65. }
  66. .bottom {
  67. position: absolute;
  68. bottom: 0;
  69. left: 50%;
  70. -ms-transform: translate(-50%, 0);
  71. transform: translate(-50%, 0);
  72. }
  73. .bottomLeft {
  74. position: absolute;
  75. bottom: 0;
  76. left: 0;
  77. }
  78. .bottomRight {
  79. position: absolute;
  80. bottom: 0;
  81. right: 0;
  82. }
  83. </style>
  84. <script id="splash-screen-script">
  85. function removeSplashFromWeb() {
  86. document.getElementById("splash")?.remove();
  87. document.getElementById("splash-branding")?.remove();
  88. document.body.style.background = "transparent";
  89. }
  90. </script>
  91. </head>
  92. <body>
  93. <picture id="splash">
  94. <source
  95. srcset="
  96. splash/img/light-1x.png 1x,
  97. splash/img/light-2x.png 2x,
  98. splash/img/light-3x.png 3x,
  99. splash/img/light-4x.png 4x
  100. "
  101. media="(prefers-color-scheme: light)"
  102. />
  103. <source
  104. srcset="
  105. splash/img/dark-1x.png 1x,
  106. splash/img/dark-2x.png 2x,
  107. splash/img/dark-3x.png 3x,
  108. splash/img/dark-4x.png 4x
  109. "
  110. media="(prefers-color-scheme: dark)"
  111. />
  112. <img
  113. class="center"
  114. aria-hidden="true"
  115. src="splash/img/light-1x.png"
  116. alt=""
  117. />
  118. </picture>
  119. <script src="flutter_bootstrap.js" async=""></script>
  120. </body>
  121. </html>