feat: add landing page at / with navigation links

Route GET / to a landing page with the Porchlight logo, tagline,
and card-style navigation links to My Account and Administration.
This commit is contained in:
Johan Lundberg 2026-02-19 15:38:09 +01:00
parent cedf2a65e2
commit 0435b81c5a
No known key found for this signature in database
GPG key ID: A6C152738D03C7D1
4 changed files with 95 additions and 0 deletions

View file

@ -28,6 +28,18 @@ async def test_app_has_repos_on_state(client: AsyncClient) -> None:
assert isinstance(app.state.magic_link_repo, MagicLinkRepository)
async def test_landing_page(client: AsyncClient) -> None:
response = await client.get("/")
assert response.status_code == 200
assert "text/html" in response.headers["content-type"]
body = response.text
assert "<h1>Porchlight</h1>" in body
assert "/manage/profile" in body
assert "/admin/users" in body
assert "My Account" in body
assert "Administration" in body
async def test_dependency_functions() -> None:
from unittest.mock import MagicMock