Skip to content

Commit

Permalink
web/satellite: update and optimize error page (#6391)
Browse files Browse the repository at this point in the history
Use 3x smaller size background image and update styles. Update button.
  • Loading branch information
boshevski committed Oct 10, 2023
1 parent 386a978 commit 211659b
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
13 changes: 11 additions & 2 deletions web/satellite/src/views/ErrorPage.vue
Expand Up @@ -14,7 +14,7 @@
:label="'Go ' + (isFatal ? 'to homepage' : 'back')"
width="auto"
height="auto"
border-radius="26px"
border-radius="6px"
:on-press="onButtonClick"
/>
</div>
Expand Down Expand Up @@ -96,11 +96,20 @@ onMounted(() => {
padding: 52px 24px;
box-sizing: border-box;
display: flex;
background: url('../../static/images/errors/dotWorld.png') no-repeat center 178px;
flex-direction: column;
justify-content: center;
overflow-y: auto;
&:before {
content: '';
position: fixed;
inset: 0;
background: url('../../static/images/errors/world.svg') no-repeat center;
background-size: auto 75%;
z-index: -1;
opacity: 0.15;
}
&__logo-wrapper {
height: 30.89px;
display: flex;
Expand Down
16 changes: 14 additions & 2 deletions web/satellite/static/errors/error.css
Expand Up @@ -27,12 +27,24 @@
padding: 52px 24px;
box-sizing: border-box;
display: flex;
background: url("/static/static/images/errors/dotWorld.png") no-repeat center 178px;
flex-direction: column;
justify-content: center;
overflow-y: auto;
}

.error-area::before {
content: "";
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url("/static/static/images/errors/world.svg") no-repeat center;
background-size: auto 75%;
z-index: -1;
opacity: 0.15;
}

.logo-wrapper {
height: 30.89px;
display: flex;
Expand Down Expand Up @@ -71,7 +83,7 @@
.button {
margin-top: 32px;
padding: 16px 37.5px;
border-radius: 26px;
border-radius: 6px;
background-color: #0149ff;
color: white;
line-height: 20px;
Expand Down
Binary file removed web/satellite/static/images/errors/dotWorld.png
Binary file not shown.
1 change: 1 addition & 0 deletions web/satellite/static/images/errors/world.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 211659b

Please sign in to comment.