Skip to content

Commit c31b3ba

Browse files
committed
fixed linux compaltibility, added links in footer
1 parent cbb8af0 commit c31b3ba

File tree

9 files changed

+15
-25
lines changed

9 files changed

+15
-25
lines changed

app.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from flask import Flask
1+
from flask import Flask, render_template, request, redirect, url_for, session, flash
22
from routes.index_routes import index_blueprint
33
from routes.browse_routes import browse_blueprint
4-
from routes.error_routes import error_blueprint
54
from routes.login_routes import login_blueprint
65
from routes.view_routes import view_blueprint
76

@@ -11,9 +10,14 @@
1110
# Register the Blueprints from separate files
1211
app.register_blueprint(index_blueprint)
1312
app.register_blueprint(browse_blueprint)
14-
app.register_blueprint(error_blueprint)
1513
app.register_blueprint(login_blueprint)
1614
app.register_blueprint(view_blueprint)
1715

16+
@app.errorhandler(404)
17+
def page_not_found(error):
18+
theme_preference = request.cookies.get('theme', 'light') # Default to 'light' if cookie not found
19+
theme_css = theme_preference + "_theme"
20+
return render_template('components/error.html',theme_css=theme_css), 404
21+
1822
if __name__ == '__main__':
1923
app.run()

routes/error_routes.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

static/assets/sass/dark_theme.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ section {
353353
}
354354

355355
.header-area .main-nav .logo {
356-
border-right: 1px solid #010b13;
357356
flex-basis: 25%;
358357
margin-right: 5%;
359358
transition: all 0.3s ease 0s;

static/assets/sass/dark_theme.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/assets/sass/dark_theme.sass

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,6 @@ section
388388

389389

390390
.header-area .main-nav .logo
391-
border-right: 1px solid $cardBody-color
392391
flex-basis: 25%
393392
margin-right: 5%
394393
-webkit-transition: all 0.3s ease 0s

static/assets/sass/light_theme.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,6 @@ section {
350350
}
351351

352352
.header-area .main-nav .logo {
353-
border-right: 1px solid #F8F9FB;
354353
flex-basis: 25%;
355354
margin-right: 5%;
356355
transition: all 0.3s ease 0s;

0 commit comments

Comments
 (0)