From 20b339ef40fab7c00f33983045618eeff89638a1 Mon Sep 17 00:00:00 2001 From: Patsy Date: Thu, 12 Mar 2026 00:15:13 +0100 Subject: [PATCH] The rest of the commits to this repo, so we can now start sharing --- app/__init__.py | 21 +++++++++++++++++++++ app/models.py | 0 app/routes.py | 8 ++++++++ app/static/css/style.css | 27 +++++++++++++++++++++++++++ app/templates/index.html | 20 ++++++++++++++++++++ readme.md | 0 run.py | 6 ++++++ 7 files changed, 82 insertions(+) create mode 100644 app/__init__.py create mode 100644 app/models.py create mode 100644 app/routes.py create mode 100644 app/static/css/style.css create mode 100644 app/templates/index.html create mode 100644 readme.md create mode 100644 run.py diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..98c5adc --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,21 @@ +from flask import Flask +from flask_sqlalchemy import SQLAlchemy +#from flask_login import LoginManager + +db = SQLAlchemy() +#login_manager = LoginManager() + +def create_app(): + app = Flask(__name__) + + app.config["SECRET KEY"] = "dev-secret-key" + app.config["SQLALCHEMY_DATABASE_URI"] = "sqlite:///bujo.db" + + db.init_app(app) + # login_manager.init_app(app) + + from app import routes + app.register_blueprint(routes.bp) + + return app + diff --git a/app/models.py b/app/models.py new file mode 100644 index 0000000..e69de29 diff --git a/app/routes.py b/app/routes.py new file mode 100644 index 0000000..58cca35 --- /dev/null +++ b/app/routes.py @@ -0,0 +1,8 @@ +from flask import Blueprint, render_template + +bp = Blueprint("main", __name__) + +@bp.route("/") +def index(): + return render_template("index.html") + diff --git a/app/static/css/style.css b/app/static/css/style.css new file mode 100644 index 0000000..4a32956 --- /dev/null +++ b/app/static/css/style.css @@ -0,0 +1,27 @@ +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; + max-width: 800px; + margin: 0 auto; + padding: 2rem; + background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); + min-height: 100vh; +} + +header { + text-align: center; + padding: 2rem 0; + color: #4a5568; +} + +h1 { + font-size: 2.5rem; + margin-bottom: 0.5rem; +} + +main { + background: white; + border-radius: 12px; + padding: 2rem; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07); +} + diff --git a/app/templates/index.html b/app/templates/index.html new file mode 100644 index 0000000..3cc5c4a --- /dev/null +++ b/app/templates/index.html @@ -0,0 +1,20 @@ + + + + + + BuJo + + + + +
+

🌿 BuJo

+

Your personal bullet journal

+
+
+

Ready to capture your day?

+
+ + + diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..e69de29 diff --git a/run.py b/run.py new file mode 100644 index 0000000..5b0a89d --- /dev/null +++ b/run.py @@ -0,0 +1,6 @@ +from app import create_app + +app = create_app() + +if __name__ == "__main__": + app.run(debug=True) \ No newline at end of file