Ready to capture your day?
+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 @@ + + +
+ + +Your personal bullet journal
+Ready to capture your day?
+