diff --git a/.DS_Store b/.DS_Store index 2870ea5..efe8a73 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index de054b9..0e346f0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ __pycache__/ .pytest_cache/ *.py[cod] config.yaml +.DS_Store diff --git a/static/styles.css b/static/styles.css index d00043e..819a12b 100644 --- a/static/styles.css +++ b/static/styles.css @@ -52,16 +52,11 @@ button { -webkit-tap-highlight-color: transparent; } } .brand-mark { - display: grid; width: 52px; height: 52px; margin-bottom: 24px; - place-items: center; border-radius: 16px; - background: var(--accent); - color: white; - font-size: 20px; - font-weight: 850; + object-fit: cover; } .login-card h1 { margin: 0; font-size: 32px; letter-spacing: -.04em; } diff --git a/static/wwwsuynl.png b/static/wwwsuynl.png new file mode 100644 index 0000000..d4a2d46 Binary files /dev/null and b/static/wwwsuynl.png differ diff --git a/templates/base.html b/templates/base.html index b2a105c..32e761f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,6 +5,7 @@ {% block title %}Fatimas Calendar{% endblock %} + diff --git a/templates/login.html b/templates/login.html index 40b8b79..d6dd9da 100644 --- a/templates/login.html +++ b/templates/login.html @@ -4,7 +4,7 @@ {% block content %}
- + www.suy.nl

Fatimas calendar

Welcome back

diff --git a/tests/test_app.py b/tests/test_app.py index 1240b58..85abfa7 100644 --- a/tests/test_app.py +++ b/tests/test_app.py @@ -103,6 +103,14 @@ def test_bad_login_shows_error(): assert b"not correct" in response.data +def test_login_uses_wwwsuynl_logo(): + response = client().get(url("/login")) + + assert b'src="/fatima/static/wwwsuynl.png"' in response.data + assert b'href="/fatima/static/wwwsuynl.png"' in response.data + assert b'alt="www.suy.nl"' in response.data + + def test_choice_is_saved_and_rendered(): test_client = client() test_client.post(url("/login"), data={"username": "user", "password": "pass"})