diff --git a/.gitignore b/api/.gitignore similarity index 91% rename from .gitignore rename to api/.gitignore index 9df76cf..d321753 100644 --- a/.gitignore +++ b/api/.gitignore @@ -1,4 +1,4 @@ -.idea -__pycache__ -venv +.idea +__pycache__ +venv instance \ No newline at end of file diff --git a/Procfile b/api/Procfile similarity index 100% rename from Procfile rename to api/Procfile diff --git a/forms.py b/api/forms.py similarity index 100% rename from forms.py rename to api/forms.py diff --git a/main.py b/api/main.py similarity index 100% rename from main.py rename to api/main.py diff --git a/requirements.txt b/api/requirements.txt similarity index 100% rename from requirements.txt rename to api/requirements.txt diff --git a/static/assets/favicon.ico b/api/static/assets/favicon.ico similarity index 100% rename from static/assets/favicon.ico rename to api/static/assets/favicon.ico diff --git a/static/assets/img/about-bg.jpg b/api/static/assets/img/about-bg.jpg similarity index 100% rename from static/assets/img/about-bg.jpg rename to api/static/assets/img/about-bg.jpg diff --git a/static/assets/img/angela-profile.jpg b/api/static/assets/img/angela-profile.jpg similarity index 100% rename from static/assets/img/angela-profile.jpg rename to api/static/assets/img/angela-profile.jpg diff --git a/static/assets/img/contact-bg.jpg b/api/static/assets/img/contact-bg.jpg similarity index 100% rename from static/assets/img/contact-bg.jpg rename to api/static/assets/img/contact-bg.jpg diff --git a/static/assets/img/default-profile.jpg b/api/static/assets/img/default-profile.jpg similarity index 100% rename from static/assets/img/default-profile.jpg rename to api/static/assets/img/default-profile.jpg diff --git a/static/assets/img/edit-bg.jpg b/api/static/assets/img/edit-bg.jpg similarity index 100% rename from static/assets/img/edit-bg.jpg rename to api/static/assets/img/edit-bg.jpg diff --git a/static/assets/img/home-bg.jpg b/api/static/assets/img/home-bg.jpg similarity index 100% rename from static/assets/img/home-bg.jpg rename to api/static/assets/img/home-bg.jpg diff --git a/static/assets/img/login-bg.jpg b/api/static/assets/img/login-bg.jpg similarity index 100% rename from static/assets/img/login-bg.jpg rename to api/static/assets/img/login-bg.jpg diff --git a/static/assets/img/post-bg.jpg b/api/static/assets/img/post-bg.jpg similarity index 100% rename from static/assets/img/post-bg.jpg rename to api/static/assets/img/post-bg.jpg diff --git a/static/assets/img/register-bg.jpg b/api/static/assets/img/register-bg.jpg similarity index 100% rename from static/assets/img/register-bg.jpg rename to api/static/assets/img/register-bg.jpg diff --git a/static/css/styles.css b/api/static/css/styles.css similarity index 100% rename from static/css/styles.css rename to api/static/css/styles.css diff --git a/static/js/scripts.js b/api/static/js/scripts.js similarity index 100% rename from static/js/scripts.js rename to api/static/js/scripts.js diff --git a/templates/about.html b/api/templates/about.html similarity index 100% rename from templates/about.html rename to api/templates/about.html diff --git a/templates/contact.html b/api/templates/contact.html similarity index 100% rename from templates/contact.html rename to api/templates/contact.html diff --git a/templates/footer.html b/api/templates/footer.html similarity index 100% rename from templates/footer.html rename to api/templates/footer.html diff --git a/templates/header.html b/api/templates/header.html similarity index 100% rename from templates/header.html rename to api/templates/header.html diff --git a/templates/index.html b/api/templates/index.html similarity index 100% rename from templates/index.html rename to api/templates/index.html diff --git a/templates/login.html b/api/templates/login.html similarity index 100% rename from templates/login.html rename to api/templates/login.html diff --git a/templates/make-post.html b/api/templates/make-post.html similarity index 96% rename from templates/make-post.html rename to api/templates/make-post.html index 7ae3579..30a2ed7 100644 --- a/templates/make-post.html +++ b/api/templates/make-post.html @@ -1,37 +1,37 @@ -{% from "bootstrap5/form.html" import render_form %} {% block content %} {% -include "header.html" %} - - -
-
-
-
-
- {% if is_edit: %} -

Edit Post

- {% else: %} -

New Post

- {% endif %} - You're going to make a great blog post! -
-
-
-
-
- -
-
-
-
- {{ ckeditor.load() }} {{ ckeditor.config(name='body') }} {{ - render_form(form, novalidate=True, button_map={"submit": "primary"}) }} -
-
-
-
-{% include "footer.html" %} {% endblock %} +{% from "bootstrap5/form.html" import render_form %} {% block content %} {% +include "header.html" %} + + +
+
+
+
+
+ {% if is_edit: %} +

Edit Post

+ {% else: %} +

New Post

+ {% endif %} + You're going to make a great blog post! +
+
+
+
+
+ +
+
+
+
+ {{ ckeditor.load() }} {{ ckeditor.config(name='body') }} {{ + render_form(form, novalidate=True, button_map={"submit": "primary"}) }} +
+
+
+
+{% include "footer.html" %} {% endblock %} diff --git a/templates/post.html b/api/templates/post.html similarity index 100% rename from templates/post.html rename to api/templates/post.html diff --git a/templates/register.html b/api/templates/register.html similarity index 100% rename from templates/register.html rename to api/templates/register.html diff --git a/vercel.json b/api/vercel.json similarity index 69% rename from vercel.json rename to api/vercel.json index b3937da..85976ac 100644 --- a/vercel.json +++ b/api/vercel.json @@ -1,14 +1,14 @@ { "builds": [ { - "src": "main.py", + "src": "api/main.py", "use": "@vercel/python" } ], "routes": [ { "src": "/(.*)", - "dest": "main.py" + "dest": "api/main.py" } ] }