From 891ad2c34a83733a8c325c1ab781002a4301d5a2 Mon Sep 17 00:00:00 2001 From: CEC Date: Tue, 19 Apr 2022 11:23:22 +0200 Subject: [PATCH] Set generic error image from API --- front/src/Components/UI/ErrorScreen.svelte | 10 +++------- front/src/Components/images/cup.png | Bin 1729 -> 0 bytes front/src/Components/images/error.png | Bin 4800 -> 0 bytes 3 files changed, 3 insertions(+), 7 deletions(-) delete mode 100644 front/src/Components/images/cup.png delete mode 100644 front/src/Components/images/error.png diff --git a/front/src/Components/UI/ErrorScreen.svelte b/front/src/Components/UI/ErrorScreen.svelte index c03f035a..7408ea82 100644 --- a/front/src/Components/UI/ErrorScreen.svelte +++ b/front/src/Components/UI/ErrorScreen.svelte @@ -7,15 +7,11 @@ import logoImg from "../images/logo-min-white.png"; let logo = gameManager?.currentStartedRoom?.loginSceneLogo ?? logoImg; - import error from "../images/error.png"; - import cup from "../images/cup.png"; import reload from "../images/reload.png"; import external from "../images/external-link.png"; let errorScreen = get(errorScreenStore); - const image = errorScreen.image ?? (errorScreen.type === "retry" ? cup : error); - function click() { if (errorScreen.urlToRedirect) window.location.replace(errorScreen.urlToRedirect); else if (errorScreen.type === "redirect" && window.history.length > 2) history.back(); @@ -38,7 +34,7 @@
-
+
{#if $errorScreenStore.type !== "retry"}

{$errorScreenStore.title}

{/if}

{$errorScreenStore.subtitle}

{#if $errorScreenStore.type !== "retry"}

Code : {$errorScreenStore.code}

{/if} @@ -79,13 +75,13 @@ .logo { width: 50%; margin-bottom: 50px; - max-height: 10vh; + max-height: 25vh; max-width: 50vw; } .icon { height: 125px; margin-bottom: 25px; - max-height: 10vh; + max-height: 25vh; max-width: 50vw; } h2 { diff --git a/front/src/Components/images/cup.png b/front/src/Components/images/cup.png deleted file mode 100644 index 2f0e15c324e66cb6fb29113f9e71c80da97ef816..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1729 zcmai#X;cze6vt_D)GT!>bIh&H%9&gzYs?(c(v)$}@_6=_Sf8~6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front/src/Components/images/error.png b/front/src/Components/images/error.png deleted file mode 100644 index a0fbc29b0a45a7c7a6f499a828a3ac052160449c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4800 zcmcgwc|6o>+n?VwGNaS6g-Xj9Yh*@Jm?llK%aRI>M2QG9WX6(Wl%kU)PEk>!P!dmr zgvPX~5X!y{N0!oKOS1Fa_peUpecsRK{k-RS|9JVBx#s@e*L{7j@3r0IoUOI#Qn8g{ z7z}2qxtWn227?HI+=gEaUZ;0#zX{%u06SAd%!BGxpTLJmcSmy%D=UmTkntE1L<+MA zZUMg-WFC$X_R>V*lKY2vQgQ zDP!889+9gP2i^#NX8Qs#7_uV#LxS&Y3j{~)^V;LccC^|_bz}LG4<2S6awiA-`avxW zEtm>KUw8IFVz93dGk_Yrm4xn~0vRq-NJMlC+j}d?(aM&%gLTZExS6a))*=~*5s5_F zvBMrzJ0p`H>fqB>k|&$(N2O4Lf`Z6F8_BF=M<^Tg_4O%Q+7xYVO|U~VAcV<27_7+* zQ2c(#pXV642e=*c@?(3km_&H)!9y$#dn<_q4gLK2j+5=>@s}lLzz?^8gB19LvVp8c z`FS=_rNLFI%`q=`U>Tlouz`l|{I|6qc4!o6{J((t?kTzoTs07*QGU{9AhzPbAEFqH zgrB+5_C3MKU`H8CzG*eaFFq~o#Y1JMz%JROcCah+EsxNSxTbpm$uVk4> z9t^LIbuN+PsH8j9-k~R&A!7A}+eue^KC8C4Nv5Z1&8Q-gjS#fH;;(Ik`c=wAr21usB$Ok`MC9z6?PIFo?1;xWCBfrn9TJpl zMU(`!ik|aOT`Q6PfgGA*X|9OHrOD_S7|cI+)tWSK#dh*fmW25Gj~-+=9}9g^-q_gq zJiqu}g|&^1_{`kAxo|XLvv+@g|3dZA#L3yd(GRa&4mU(GgiATyeOAB*3CFh#v(cWu zHp4HDnYYjsHa8dD{6%Z_?RbLHlzlv=Y}>7O9R$u(`zbM<=Gv=z5b$~u5h15#YC;*O zK|~hIQ>9Vx#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