From 30aa721a9267d2b24ab36f195627aeae8a778134 Mon Sep 17 00:00:00 2001 From: Ryan Westfall Date: Sun, 30 Aug 2026 10:26:58 -0500 Subject: [PATCH] Drop the company-site header from the shortener landing. The public page is about Piha, not aimloperations.com nav. Add a Why Piha? section for the Quenya "little/small" name. Closes #5. --- site/core/static/core/css/overrides.css | 4 ++-- site/core/templates/core/base.html | 26 ------------------------- site/core/templates/core/landing.html | 13 +++++++++++++ site/links/tests.py | 3 +++ 4 files changed, 18 insertions(+), 28 deletions(-) diff --git a/site/core/static/core/css/overrides.css b/site/core/static/core/css/overrides.css index 5b293c1..2f9e29c 100644 --- a/site/core/static/core/css/overrides.css +++ b/site/core/static/core/css/overrides.css @@ -28,8 +28,8 @@ text-decoration: underline; } -body.has-debug-banner nav { - top: 1.7rem; +body.has-debug-banner .page-main { + padding-top: 1.7rem; } .page-main { diff --git a/site/core/templates/core/base.html b/site/core/templates/core/base.html index 25800bc..6dda62a 100644 --- a/site/core/templates/core/base.html +++ b/site/core/templates/core/base.html @@ -18,18 +18,6 @@
Debug — mint form is local only{% if show_debug_create %} · Create a short link{% endif %}
{% endif %} - -
{% block content %}{% endblock %}
@@ -49,19 +37,5 @@

- - diff --git a/site/core/templates/core/landing.html b/site/core/templates/core/landing.html index cbb943a..4a58d47 100644 --- a/site/core/templates/core/landing.html +++ b/site/core/templates/core/landing.html @@ -15,6 +15,19 @@
+
+

Why Piha?

+

+ The name is a nod to Quenya — Tolkien’s High Elvish from + The Lord of the Rings. In Quenya, pia (also + pitya, pincë, picina) is the adjective + little or small. A short link is a little + path that still reaches the long URL. +

+
+
+ +

A shortener you can hand to SMS

diff --git a/site/links/tests.py b/site/links/tests.py index 0c4dcf7..6511ebf 100644 --- a/site/links/tests.py +++ b/site/links/tests.py @@ -262,8 +262,11 @@ class RedirectTests(TestCase): self.assertEqual(response.status_code, 200) self.assertContains(response, "piha.lc") self.assertContains(response, "Request access") + self.assertContains(response, "Why Piha?") + self.assertContains(response, "Quenya") self.assertContains(response, "aimloperations.com") self.assertContains(response, "Contact") + self.assertNotContains(response, "