Skip to content

Commit

Permalink
#282 added smaller background images for faster page load
Browse files Browse the repository at this point in the history
  • Loading branch information
bugy committed Apr 23, 2020
1 parent 42ab2fb commit 6bc19f4
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ images/github.png (modified)
images/titleBackground.jpg
The image is from free set of material design backgrounds, published by oxygenna.com and absolutely free to use (Source: http://www.oxygenna.com/news/brand-new-set-of-40-material-design-backgrounds)

images/titleBackground_small.jpg
images/titleBackground_login.jpg
Same as above, but the image sizes was changed for Script server project

images/cookie.png (modified)
https://github.com/whitebird/FontAwesome-cookie
Licensed under http://creativecommons.org/publicdomain/zero/1.0
Expand Down
2 changes: 1 addition & 1 deletion src/tests/web/server_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class LoginResourcesTest(TestCase):
('/js/login.be16f278.js.map'),
('/js/chunk-login-vendors.18e22e7f.js'),
('/js/chunk-login-vendors.18e22e7f.js.map'),
('/img/titleBackground.a6c36d4c.jpg'),
('/img/titleBackground_login.a6c36d4c.jpg'),
('/css/login.8e74be0f.css'),
('/fonts/roboto-latin-400.60fa3c06.woff'),
('/fonts/roboto-latin-400.479970ff.woff2'),
Expand Down
2 changes: 1 addition & 1 deletion src/web/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def is_allowed_during_login(request_path, login_url, request_handler):
'/fonts/roboto-latin-500.woff',
'/fonts/roboto-latin-400.woff2',
'/fonts/roboto-latin-400.woff',
'/img/titleBackground.jpg']
'/img/titleBackground_login.jpg']

return request_path in login_resources

Expand Down
1 change: 1 addition & 0 deletions web-src/public/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

<body id="login-body" class="valign-wrapper">
<div id="login-panel" class="card">
<div class="card-image"></div>
<div class="card-content" id="login-content-container">
</div>
</div>
Expand Down
13 changes: 7 additions & 6 deletions web-src/src/assets/css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,13 @@ input[type=checkbox]:not(.browser-default) + span {
#login-panel {
width: 300px;
margin: auto;
}

border-top: 50px solid;
-moz-border-image: url("../titleBackground.jpg") 300;
-webkit-border-image: url("../titleBackground.jpg") 300;
-o-border-image: url("../titleBackground.jpg") 300;
border-image: url("../titleBackground.jpg") 300;
#login-panel .card-image {
height: 50px;
background: url('../titleBackground_login.jpg') no-repeat;
background-size: cover;
background-position-x: 28%;
}

#login-panel .login-form .input-field {
Expand Down Expand Up @@ -157,6 +158,6 @@ input[type=checkbox]:not(.browser-default) + span {
}

.main-content-header {
background: url('../titleBackground.jpg') no-repeat center;
background: url('../titleBackground_small.jpg') no-repeat;
background-size: cover;
}
Binary file added web-src/src/assets/titleBackground_login.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added web-src/src/assets/titleBackground_small.jpg
Loading
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 6bc19f4

Please sign in to comment.