generated from hjess/PythonTemplateProject
added middelware
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Has been cancelled
Some checks failed
Build, Push, and Deploy to Nomad / docker-nomad (push) Has been cancelled
This commit is contained in:
13
app.py
13
app.py
@@ -1,3 +1,4 @@
|
||||
import uvicorn
|
||||
from fastapi import FastAPI, Request
|
||||
from fastapi.staticfiles import StaticFiles
|
||||
from fastapi.responses import HTMLResponse
|
||||
@@ -53,4 +54,14 @@ async def get_category(request: Request, category_name: str):
|
||||
"content": category_content
|
||||
},
|
||||
)
|
||||
return HTMLResponse("Kategori ikke fundet", status_code=404)
|
||||
return HTMLResponse("Kategori ikke fundet", status_code=404)
|
||||
|
||||
# Main entry point
|
||||
def main():
|
||||
"""Run the FastAPI app directly"""
|
||||
uvicorn.run("app:app", host="0.0.0.0", port=8000, reload=True, proxy_headers=True)
|
||||
|
||||
|
||||
# Run main when executed directly
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
4297
static/css/main.css
4297
static/css/main.css
File diff suppressed because it is too large
Load Diff
@@ -9,20 +9,20 @@
|
||||
body, input, select, textarea {
|
||||
color: _palette(fg);
|
||||
font-family: _font(family);
|
||||
font-size: 13pt;
|
||||
font-size: 16pt;
|
||||
font-weight: _font(weight);
|
||||
line-height: 1.65;
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
font-size: 11pt;
|
||||
font-size: 13pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
font-size: 10pt;
|
||||
font-size: 11pt;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xxsmall') {
|
||||
font-size: 9pt;
|
||||
font-size: 10pt;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user