add static files, whitenoise and uvicorn

This commit is contained in:
Matteo Rosati
2026-02-10 23:43:04 +01:00
parent 4a4ec50771
commit 4ba453b7a6
8 changed files with 114 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
html {
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
}
body {
background: radial-gradient(circle at top, #f2f1ea 0%, #e6e1d7 42%, #d8d2c5 100%);
color: #2b2620;
margin: 0;
min-height: 100vh;
}
.home {
max-width: 960px;
margin: 0 auto;
padding: 96px 24px 80px;
}
.home h1 {
font-size: clamp(2.4rem, 4vw, 3.6rem);
margin: 0 0 16px;
letter-spacing: -0.03em;
}
.home p {
font-size: 1.05rem;
line-height: 1.7;
margin: 0;
max-width: 560px;
color: #4a4136;
}

View File

@@ -3,10 +3,12 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
{% load static %}
<title>{% block title %}{% endblock %}</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="{% static 'frontend/css/home.css' %}">
<script
src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"
integrity="sha384-/TgkGk7p307TH7EXJDuUlgG3Ce1UVolAOFopFekQkkXihi5u/6OCvVKyz1W+idaz"

View File

@@ -3,7 +3,8 @@
{% block title %}Home{% endblock %}
{% block content%}
<div>
<div class="home">
<h1>Ciao</h1>
<p>Static CSS is wired up through WhiteNoise. Tweak this file to verify changes.</p>
</div>
{% endblock %}