|
4 | 4 | top: 50%; |
5 | 5 | left: 50%; |
6 | 6 | transform: translate(-50%, -50%); |
7 | | - display: flex; |
8 | | - align-items: center; |
9 | | - justify-content: center; |
10 | 7 | } |
11 | 8 |
|
12 | 9 | .logo-wrapper { |
13 | | - background-color: var(--bs-primary); |
14 | | - padding: 8px; |
15 | 10 | border-radius: 12px; |
16 | | - box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); |
17 | 11 | width: 64px; |
18 | 12 | height: 64px; |
19 | 13 | } |
|
92 | 86 | } |
93 | 87 | } |
94 | 88 |
|
95 | | - .logo-img { |
96 | | - width: 100%; |
97 | | - height: 100%; |
98 | | - object-fit: contain; |
99 | | - } |
100 | | -
|
101 | | - .mc-img { |
102 | | - height: 100%; |
103 | | - width: 100%; |
104 | | - object-fit: contain; |
105 | | - } |
106 | | -
|
107 | | - .hytale-img { |
108 | | - height: 100%; |
109 | | - width: 100%; |
110 | | - object-fit: contain; |
111 | | - } |
112 | | -
|
113 | 89 | .pulse { |
114 | 90 | animation: pulse 1.5s infinite ease-in-out; |
115 | 91 | } |
|
143 | 119 | <div class="loader-content position-relative" style="height: 100px; width: 100px;"> |
144 | 120 | {#if networkErrors} |
145 | 121 | <div |
146 | | - class="logo-wrapper position-absolute center-content" |
| 122 | + class="logo-wrapper bg-primary p-2 shadow-sm position-absolute center-content d-flex align-items-center justify-content-center" |
147 | 123 | class:pulse={$retryingNetworkErrors}> |
148 | | - <img alt="Pano" src="{base}/assets/img/logo.svg" class="logo-img" /> |
| 124 | + <img alt="Pano" src="{base}/assets/img/logo.svg" class="w-100 h-100 object-fit-contain" /> |
149 | 125 | </div> |
150 | 126 | {:else} |
151 | | - <div class="logo-wrapper pano-anim center-content"> |
152 | | - <img alt="Pano" src="{base}/assets/img/logo.svg" class="logo-img" /> |
| 127 | + <div |
| 128 | + class="logo-wrapper bg-primary p-2 shadow-sm pano-anim center-content d-flex align-items-center justify-content-center"> |
| 129 | + <img alt="Pano" src="{base}/assets/img/logo.svg" class="w-100 h-100 object-fit-contain" /> |
153 | 130 | </div> |
154 | | - <div class="mc-img-wrapper mc-anim center-content"> |
155 | | - <img alt="Minecraft" src="{base}/assets/img/minecraft-icon.png" class="mc-img" /> |
| 131 | + <div |
| 132 | + class="mc-img-wrapper mc-anim center-content d-flex align-items-center justify-content-center"> |
| 133 | + <img |
| 134 | + alt="Minecraft" |
| 135 | + src="{base}/assets/img/minecraft-icon.png" |
| 136 | + class="w-100 h-100 object-fit-contain" /> |
156 | 137 | </div> |
157 | | - <div class="hytale-img-wrapper hytale-anim center-content"> |
158 | | - <img alt="Hytale" src="{base}/assets/img/hytale-icon.png" class="hytale-img" /> |
| 138 | + <div |
| 139 | + class="hytale-img-wrapper hytale-anim center-content d-flex align-items-center justify-content-center"> |
| 140 | + <img |
| 141 | + alt="Hytale" |
| 142 | + src="{base}/assets/img/hytale-icon.png" |
| 143 | + class="w-100 h-100 object-fit-contain" /> |
159 | 144 | </div> |
160 | 145 | {/if} |
161 | 146 | </div> |
|
203 | 188 | retryingNetworkErrors, |
204 | 189 | } from '$lib/Store'; |
205 | 190 | import { base } from '$app/paths'; |
206 | | - import { browser } from "$app/environment"; |
| 191 | + import { browser } from '$app/environment'; |
207 | 192 |
|
208 | 193 | let networkErrors = false; |
209 | 194 | let showStuckUI = false; |
|
0 commit comments