diff --git a/web_server/main.py b/web_server/main.py index e69de29..64fbdd0 100644 --- a/web_server/main.py +++ b/web_server/main.py @@ -0,0 +1,16 @@ +from flask import Flask, render_template + +app = Flask(__name__) + + +@app.route("/") +def index_handler(): + return render_template("login.html") + +@app.route("/404") +def handler_404(): + return render_template("404.html") + + +if __name__ == '__main__': + app.run(debug=True) diff --git a/web_server/templates/404.html b/web_server/templates/404.html new file mode 100644 index 0000000..e18d193 --- /dev/null +++ b/web_server/templates/404.html @@ -0,0 +1,30 @@ +{% extends "admin_template.html" %} + + + + + + +{% block content %} + +
+ + +
+
404
+

Page Not Found

+

It looks like you found a glitch in the matrix...

+ ← Back to Dashboard +
+ +
+ + + + +{% endblock %} + + + + + diff --git a/web_server/templates/admin_template.html b/web_server/templates/admin_template.html new file mode 100644 index 0000000..4b3db28 --- /dev/null +++ b/web_server/templates/admin_template.html @@ -0,0 +1,34 @@ +{% include "chunks/head.html" %} + + +
+ + + +{% include "chunks/sidebar.html" %} + +
+ + +
+ +{% include "chunks/topbar.html" %} + +{% block content %} + +{% endblock %} + +{% include "chunks/footer.html" %} + +
+ + +
+ + +{% include "chunks/scroll_to_top.html" %} + +{% include "chunks/logout_modal.html" %} +{% include "chunks/scripts.html" %} + +{% include "chunks/foot.html" %} \ No newline at end of file diff --git a/web_server/templates/base_template.html b/web_server/templates/base_template.html new file mode 100644 index 0000000..dc9269c --- /dev/null +++ b/web_server/templates/base_template.html @@ -0,0 +1,10 @@ +{% include "chunks/head.html" %} + + +{% block content %} + +{% endblock %} + +{% include "chunks/scripts.html" %} + +{% include "chunks/foot.html" %} \ No newline at end of file diff --git a/web_server/templates/chunks/foot.html b/web_server/templates/chunks/foot.html new file mode 100644 index 0000000..9870926 --- /dev/null +++ b/web_server/templates/chunks/foot.html @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/web_server/templates/chunks/footer.html b/web_server/templates/chunks/footer.html new file mode 100644 index 0000000..a5e29a9 --- /dev/null +++ b/web_server/templates/chunks/footer.html @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/web_server/templates/chunks/head.html b/web_server/templates/chunks/head.html new file mode 100644 index 0000000..3f0c4ca --- /dev/null +++ b/web_server/templates/chunks/head.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + SB Admin 2 - Dashboard + + + + + + + + + + + diff --git a/web_server/templates/chunks/logout_modal.html b/web_server/templates/chunks/logout_modal.html new file mode 100644 index 0000000..191864b --- /dev/null +++ b/web_server/templates/chunks/logout_modal.html @@ -0,0 +1,19 @@ + + \ No newline at end of file diff --git a/web_server/templates/chunks/scripts.html b/web_server/templates/chunks/scripts.html new file mode 100644 index 0000000..1578047 --- /dev/null +++ b/web_server/templates/chunks/scripts.html @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/web_server/templates/chunks/scroll_to_top.html b/web_server/templates/chunks/scroll_to_top.html new file mode 100644 index 0000000..1fe117e --- /dev/null +++ b/web_server/templates/chunks/scroll_to_top.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/web_server/templates/chunks/sidebar.html b/web_server/templates/chunks/sidebar.html new file mode 100644 index 0000000..e612602 --- /dev/null +++ b/web_server/templates/chunks/sidebar.html @@ -0,0 +1,119 @@ + + + \ No newline at end of file diff --git a/web_server/templates/chunks/topbar.html b/web_server/templates/chunks/topbar.html new file mode 100644 index 0000000..2902d70 --- /dev/null +++ b/web_server/templates/chunks/topbar.html @@ -0,0 +1,203 @@ + + + \ No newline at end of file diff --git a/web_server/templates/index.html b/web_server/templates/index.html new file mode 100644 index 0000000..f029058 --- /dev/null +++ b/web_server/templates/index.html @@ -0,0 +1,726 @@ +{% extends "base_template.html" %} + +{% block content %} + + + + +
+ + + + + + +
+ + +
+ + + + + + +
+ + +
+

Dashboard

+ Generate Report +
+ + +
+ + +
+
+
+
+
+
+ Earnings (Monthly)
+
$40,000
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ Earnings (Annual)
+
$215,000
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
Tasks +
+
+
+
50%
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+
+
+
+ Pending Requests
+
18
+
+
+ +
+
+
+
+
+
+ + + +
+ + +
+
+ +
+
Earnings Overview
+ +
+ +
+
+ +
+
+
+
+ + +
+
+ +
+
Revenue Sources
+ +
+ +
+
+ +
+
+ + Direct + + + Social + + + Referral + +
+
+
+
+
+ + +
+ + +
+ + +
+
+
Projects
+
+
+

Server Migration 20%

+
+
+
+

Sales Tracking 40%

+
+
+
+

Customer Database 60%

+
+
+
+

Payout Details 80%

+
+
+
+

Account Setup Complete!

+
+
+
+
+
+ + +
+
+
+
+ Primary +
#4e73df
+
+
+
+
+
+
+ Success +
#1cc88a
+
+
+
+
+
+
+ Info +
#36b9cc
+
+
+
+
+
+
+ Warning +
#f6c23e
+
+
+
+
+
+
+ Danger +
#e74a3b
+
+
+
+
+
+
+ Secondary +
#858796
+
+
+
+
+
+
+ Light +
#f8f9fc
+
+
+
+
+
+
+ Dark +
#5a5c69
+
+
+
+
+ +
+ +
+ + +
+
+
Illustrations
+
+
+
+ ... +
+

Add some quality, svg illustrations to your project courtesy of unDraw, a + constantly updated collection of beautiful svg images that you can use + completely free and without attribution!

+ Browse Illustrations on + unDraw → +
+
+ + +
+
+
Development Approach
+
+
+

SB Admin 2 makes extensive use of Bootstrap 4 utility classes in order to reduce + CSS bloat and poor page performance. Custom CSS classes are used to create + custom components and custom utility classes.

+

Before working with this theme, you should become familiar with the + Bootstrap framework, especially the utility classes.

+
+
+ +
+
+ +
+ + +
+ + + +
+
+ +
+
+ + +
+ + +
+ + + + + + + + + + + {% include "chunks/scripts.html" %} + + + + + +{% endblock %} \ No newline at end of file diff --git a/web_server/templates/login.html b/web_server/templates/login.html new file mode 100644 index 0000000..323c55a --- /dev/null +++ b/web_server/templates/login.html @@ -0,0 +1,74 @@ +{% extends "base_template.html" %} + +{% block content %} + + + +
+ + +
+ +
+ +
+
+ +
+ +
+
+
+

Welcome Back!

+
+
+
+ +
+
+ +
+
+
+ + +
+
+ + Login + +
+ + Login with Google + + + Login with Facebook + +
+
+ + +
+
+
+
+
+ +
+ +
+ +
+ + + +{% endblock %} +