The rest of the commits to this repo, so we can now start sharing

This commit is contained in:
2026-03-12 00:15:13 +01:00
parent fa367208f3
commit 20b339ef40
7 changed files with 82 additions and 0 deletions

21
app/__init__.py Normal file
View File

@@ -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

0
app/models.py Normal file
View File

8
app/routes.py Normal file
View File

@@ -0,0 +1,8 @@
from flask import Blueprint, render_template
bp = Blueprint("main", __name__)
@bp.route("/")
def index():
return render_template("index.html")

27
app/static/css/style.css Normal file
View File

@@ -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);
}

20
app/templates/index.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BuJo</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<header>
<h1>🌿 BuJo</h1>
<p>Your personal bullet journal</p>
</header>
<main>
<p>Ready to capture your day?</p>
</main>
</body>
</html>

0
readme.md Normal file
View File

6
run.py Normal file
View File

@@ -0,0 +1,6 @@
from app import create_app
app = create_app()
if __name__ == "__main__":
app.run(debug=True)