Skip to content

Commit

Permalink
fixed linux compaltibility, added links in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
codeIntrovert committed Sep 4, 2023
1 parent cbb8af0 commit c31b3ba
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 25 deletions.
10 changes: 7 additions & 3 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from flask import Flask
from flask import Flask, render_template, request, redirect, url_for, session, flash
from routes.index_routes import index_blueprint
from routes.browse_routes import browse_blueprint
from routes.error_routes import error_blueprint
from routes.login_routes import login_blueprint
from routes.view_routes import view_blueprint

Expand All @@ -11,9 +10,14 @@
# Register the Blueprints from separate files
app.register_blueprint(index_blueprint)
app.register_blueprint(browse_blueprint)
app.register_blueprint(error_blueprint)
app.register_blueprint(login_blueprint)
app.register_blueprint(view_blueprint)

@app.errorhandler(404)
def page_not_found(error):
theme_preference = request.cookies.get('theme', 'light') # Default to 'light' if cookie not found
theme_css = theme_preference + "_theme"
return render_template('components/error.html',theme_css=theme_css), 404

if __name__ == '__main__':
app.run()
11 changes: 0 additions & 11 deletions routes/error_routes.py

This file was deleted.

1 change: 0 additions & 1 deletion static/assets/sass/dark_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,6 @@ section {
}

.header-area .main-nav .logo {
border-right: 1px solid #010b13;
flex-basis: 25%;
margin-right: 5%;
transition: all 0.3s ease 0s;
Expand Down
2 changes: 1 addition & 1 deletion static/assets/sass/dark_theme.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion static/assets/sass/dark_theme.sass
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,6 @@ section


.header-area .main-nav .logo
border-right: 1px solid $cardBody-color
flex-basis: 25%
margin-right: 5%
-webkit-transition: all 0.3s ease 0s
Expand Down
1 change: 0 additions & 1 deletion static/assets/sass/light_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ section {
}

.header-area .main-nav .logo {
border-right: 1px solid #F8F9FB;
flex-basis: 25%;
margin-right: 5%;
transition: all 0.3s ease 0s;
Expand Down
Loading

0 comments on commit c31b3ba

Please sign in to comment.