From e879d4888f818d360a007e454ade2e3d87555599 Mon Sep 17 00:00:00 2001 From: Ryan Westfall Date: Sun, 30 Aug 2026 13:04:56 -0700 Subject: [PATCH] Remove company header and add Why Piha? section (#6) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary - Drop the company_site nav (logo, Home, Web Design, Contact) from the shortener chrome — that header belongs on aimloperations.com, not `piha.lc` - Add a **Why Piha?** section: Quenya (Tolkien High Elvish) *pia* / *pitya* / *pincë* / *picina* means little / small; a short link is a little path - Footer and Request access / Contact CTAs stay Closes #5. ## Test plan - [ ] `cd site && uv run python manage.py test` - [ ] `GET /` has no top header; Why Piha? is on the page - [ ] Request access / Contact still go to aimloperations.com/contact - [ ] Debug mint page still works without the nav - [ ] `GET /` still 302 Reviewed-on: https://git.aimloperations.com/ai_ml_operations/url_shortening_service/pulls/6 --- 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, "