Skip to content

Commit

Permalink
Add Preloader
Browse files Browse the repository at this point in the history
  • Loading branch information
aswinshenoy committed Mar 7, 2019
1 parent f225dde commit 65f45f7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ebextensions/django.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
option_settings:
aws:elasticbeanstalk:container:python:
WSGIPath: framework/wsgi.py
11 changes: 11 additions & 0 deletions pages/static/pages/styles/styles.sass
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,16 @@ img
#topbar
display: none!important

#preload-screen
@extend %flex-center
background: white
width: 100%
position: absolute
top: 0
left: 0
height: 100%
z-index: 10000

#page-container
position: relative
margin-top: 4rem
Expand All @@ -175,6 +185,7 @@ img
font-size: 1.5rem
font-weight: 300
animation-duration: 0.4s
padding: 2rem 1rem

img
height: 1.3rem
Expand Down
4 changes: 4 additions & 0 deletions templates/base.haml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
{% block scripts %}{% endblock %}

%body
#preload-screen
<img src="{% static 'pages/images/preloader.gif' %}">
{% include './sidebar.haml' %}
#page-container
{% block content %}
Expand Down Expand Up @@ -75,6 +77,8 @@
WOW.prototype.addBox = function(element) {
this.boxes.push(element);
};

$('#preload-screen').addClass('animated fadeOut');
-# $('.anime').on('scrollSpy:exit', function() {
-# $(this).css({
-# 'visibility': 'hidden',
Expand Down

0 comments on commit 65f45f7

Please sign in to comment.