The rest of the commits to this repo, so we can now start sharing
This commit is contained in:
21
app/__init__.py
Normal file
21
app/__init__.py
Normal 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
0
app/models.py
Normal file
8
app/routes.py
Normal file
8
app/routes.py
Normal 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
27
app/static/css/style.css
Normal 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
20
app/templates/index.html
Normal 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>
|
||||
Reference in New Issue
Block a user