diff --git a/gallery/__init__.py b/gallery/__init__.py index 71ff39e..8746fc4 100644 --- a/gallery/__init__.py +++ b/gallery/__init__.py @@ -114,11 +114,16 @@ def create_app(test_config=None): from gallery import auth app.register_blueprint(auth.blueprint) - # Load the different routes - from gallery.views import api, groups, routing, settings + # Load the API + from gallery import api app.register_blueprint(api.blueprint) - app.register_blueprint(groups.blueprint) - app.register_blueprint(routing.blueprint) + + # Load the different views + from gallery.views import index, image, group, settings, profile + app.register_blueprint(index.blueprint) + app.register_blueprint(image.blueprint) + app.register_blueprint(group.blueprint) + app.register_blueprint(profile.blueprint) app.register_blueprint(settings.blueprint) # Log to file that the app has started diff --git a/gallery/views/api.py b/gallery/api.py similarity index 100% rename from gallery/views/api.py rename to gallery/api.py diff --git a/gallery/templates/groups/group.html b/gallery/templates/group.html similarity index 96% rename from gallery/templates/groups/group.html rename to gallery/templates/group.html index 0223f47..3756d16 100644 --- a/gallery/templates/groups/group.html +++ b/gallery/templates/group.html @@ -185,11 +185,13 @@ } .banner-filter { - background: linear-gradient(90deg, rgb({{ images.0.colours.0.0 }}, {{ images.0.colours.0.1 }}, {{ images.0.colours.0.2 }}), rgba({{ images.0.colours.0.0 }}, {{ images.0.colours.0.1 }}, {{ images.0.colours.0.2 }}, 0.3)) !important; + background: linear-gradient(90deg, rgb({{ images.0.colours.0.0 }}, {{ images.0.colours.0.1 }}, {{ images.0.colours.0.2 }}), + rgba({{ images.0.colours.1.0 }}, {{ images.0.colours.1.1 }}, {{ images.0.colours.1.2 }}, 0.3)) !important; } @media (max-width: 800px) { .banner-filter { - background: linear-gradient(180deg, rgba({{ images.0.colours.0.0 }}, {{ images.0.colours.0.1 }}, {{ images.0.colours.0.2 }}, 0.8), rgba({{ images.0.colours.0.0 }}, {{ images.0.colours.0.1 }}, {{ images.0.colours.0.2 }}, 0.5)) !important; + background: linear-gradient(180deg, rgba({{ images.0.colours.0.0 }}, {{ images.0.colours.0.1 }}, {{ images.0.colours.0.2 }}, 0.8), + rgba({{ images.0.colours.1.0 }}, {{ images.0.colours.1.1 }}, {{ images.0.colours.1.2 }}, 0.5)) !important; } } @@ -212,7 +214,7 @@