Lanna Desk: logo, a public page at /, the back office at /desk, full sign-out
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 44s
CI / release (push) Skipped

Logo: a Lanna gable whose crossed kalae horns stand over a desk, gold on
navy, with "Lanna Desk" and "Visas · stays · contracts" in Sarabun drawn
as outlines. static/brand/ has the mark, the logo for light and for dark
backgrounds and a one-color version; scripts/gen_logo.py makes them, the
favicon and the header's mark from forms/fonts/Sarabun-Bold/SemiBold
(SIL Open Font License, next to the Regular already there).

`/` is now lannadesk.com's public page (templates/landing.html,
static/landing.css): what Lanna Desk takes care of, how a client starts
(write, open the link, sign first, we keep the dates), how the data is
kept, contact@lannadesk.com and "Staff sign-in". It needs no session and
shows no records. The back office's first page, the deadlines, moves to
`/desk` (web::HOME): the header, the nav, the filter, the login's default
target and the messages' links follow.

Signing out now ends the session at id.cnx.network too. Kanidm names no
end_session_endpoint, but its GET /ui/logout ends the session and clears
its cookies (SameSite=Lax, so they come along on a top-level navigation).
The logout form may only lead to this site (CSP form-action 'self'), so
/signed-out sends the browser on with a refresh and offers the link as
well; providers that are not Kanidm keep the old page.

Checks: fmt, clippy, 109 unit and 57 integration tests (the public page
open and free of records, /desk behind the sign-in, the sign-out page
leading to the provider); the page at 1280 and 390 px; the header's mark
in both themes; the style check on the README, PLAN and the page.
This commit is contained in:
grabowski committed 2026-11-21 19:57:20 +07:00
1 parent e5e30c977c
commit eafe918bcc
22 files changed
+639 -44

No files matched your search

+1 -1
View File
@@ -1 +1 @@
<svg class="mark" viewBox="0 0 64 64" aria-hidden="true"><rect x="1" y="1" width="62" height="62" rx="14" fill="#0d2240" stroke="#f5c000" stroke-opacity=".6" stroke-width="2"/><text x="32" y="41" text-anchor="middle" font-family="Montserrat, 'Arial Black', 'Segoe UI', sans-serif" font-weight="900" font-size="24" letter-spacing="1"><tspan fill="#ffffff">B4</tspan><tspan fill="#f5c000">L</tspan></text></svg>
<svg class="mark" viewBox="0 0 64 64" aria-hidden="true"><rect width="64" height="64" rx="14" fill="#071323"/><g fill="none" stroke="#f5c000" stroke-width="4.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7.5 39 L32 20 C35 17.7 37 15.2 38.6 11.4 C39.1 10.2 40.2 9.6 41.6 9.8"/><path d="M56.5 39 L32 20 C29 17.7 27 15.2 25.4 11.4 C24.9 10.2 23.8 9.6 22.4 9.8"/></g><g fill="none" stroke="#ffffff" stroke-width="4.6" stroke-linecap="round"><path d="M17 47 H47"/><path d="M22.5 47 V54.5 M41.5 47 V54.5"/></g></svg>

Before

Width:  |  Height:  |  Size: 410 B

After

Width:  |  Height:  |  Size: 525 B

+2 -2
View File
@@ -12,7 +12,7 @@
</head>
<body>
<header class="top">
<a class="brand" href="/" aria-label="Lanna Desk, the deadlines">
<a class="brand" href="/desk" aria-label="Lanna Desk, the deadlines">
{% include "_mark.html" %}
<span class="nm">Lanna Desk</span><span class="sub">B4L</span>
</a>
@@ -21,7 +21,7 @@
<div class="app">
<aside class="side">
<nav class="nav" aria-label="Sections">
<a href="/"{% if nav == "deadlines" %} class="on" aria-current="page"{% endif %}>Deadlines</a>
<a href="/desk"{% if nav == "deadlines" %} class="on" aria-current="page"{% endif %}>Deadlines</a>
<a href="/people"{% if nav == "people" %} class="on" aria-current="page"{% endif %}>People</a>
<a href="/companies"{% if nav == "companies" %} class="on" aria-current="page"{% endif %}>Companies</a>
<a href="/agreements"{% if nav == "agreements" %} class="on" aria-current="page"{% endif %}>Agreements</a>
+2 -2
View File
@@ -9,7 +9,7 @@
<span class="chip {% if soon %}warn{% else %}ok{% endif %}">{{ soon }} need attention</span>
<span class="muted small">For {{ n_people }} {% if n_people == 1 %}person{% else %}people{% endif %}{% if not all %}: the next {{ horizon_days }} days, and anything urgent{% endif %}.</span>
</div>
<form method="get" action="/" class="toolbar" id="dash-filter">
<form method="get" action="/desk" class="toolbar" id="dash-filter">
{% if rows %}<input type="search" id="q" class="filter" placeholder="Filter by name, company or deadline ( / )" aria-label="Filter the list" autocomplete="off">{% endif %}
{% if companies %}
<label class="sel"><span class="small muted">Employer</span>
@@ -21,7 +21,7 @@
</select></label>
<noscript><button type="submit" class="btn sm">Show</button></noscript>
{% endif %}
{% if all %}<input type="hidden" name="all" value="1"><a href="/{% if company %}?company={{ company }}{% endif %}">Only the next {{ horizon_days }} days</a>{% else %}<a href="/?all=1{% if company %}&amp;company={{ company }}{% endif %}">Show everything</a>{% endif %}
{% if all %}<input type="hidden" name="all" value="1"><a href="/desk{% if company %}?company={{ company }}{% endif %}">Only the next {{ horizon_days }} days</a>{% else %}<a href="/desk?all=1{% if company %}&amp;company={{ company }}{% endif %}">Show everything</a>{% endif %}
</form>
{% if rows %}
<div class="card flush">
+93
View File
@@ -0,0 +1,93 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lanna Desk · Visas, work permits and contracts in Chiang Mai</title>
<meta name="description" content="Lanna Desk in Chiang Mai prepares and files the papers for foreigners who live, work or perform in Northern Thailand: visas, extensions of stay, 90-day reports, work permits and artists' contracts.">
<link rel="icon" href="/static/favicon.svg?v={{ v }}" type="image/svg+xml">
<link rel="stylesheet" href="/static/landing.css?v={{ v }}">
</head>
<body>
<header class="top">
<div class="wrap bar">
<a class="logo" href="/" aria-label="Lanna Desk"><img src="/static/brand/lannadesk-logo-dark.svg?v={{ v }}" alt="Lanna Desk" width="236" height="44"></a>
<nav class="links" aria-label="Page">
<a href="#services">Services</a>
<a href="#how">How it works</a>
<a href="#contact">Contact</a>
<a class="staff" href="{{ home }}" id="staff">Staff sign-in</a>
</nav>
</div>
<div class="wrap hero">
<p class="kicker">Chiang Mai, Northern Thailand</p>
<h1>Visas, work permits and contracts for foreigners in Northern Thailand</h1>
<p class="lead">Lanna Desk prepares and files the papers for people who live, work or perform here. We keep each client's passport, visa and deadlines in one record, fill in the Immigration Bureau's forms from it, and put together the pack you hand in at Chiang Mai Immigration.</p>
<p class="cta"><a class="btn" href="mailto:{{ contact }}">Write to {{ contact }}</a></p>
</div>
</header>
<main>
<section class="wrap" id="services" aria-labelledby="services-h">
<h2 id="services-h">What we take care of</h2>
<div class="grid">
<article class="card">
<h3>Visas and extensions of stay</h3>
<p>Non-immigrant visas for work, business, family and retirement, and the yearly extension of stay with every form, copy and photo the officer asks for, in the officer's order.</p>
</article>
<article class="card">
<h3>90-day reports and TM.30</h3>
<p>We count the days from each entry and extension, file the report inside its window, and register your address with the landlord's TM.30 receipt.</p>
</article>
<article class="card">
<h3>Work permits</h3>
<p>New permits, renewals and changes of employer, with the employer's certificates and tax returns that each application needs.</p>
</article>
<article class="card">
<h3>Artists and events</h3>
<p>Work permits and visas for musicians and crews who come to play a show or a festival, and the contracts that go with a booking, from the offer to the signed copy.</p>
</article>
<article class="card">
<h3>Employers</h3>
<p>Companies that hire foreigners get one place for their staff's papers: who needs what before which date, and the company documents each application uses.</p>
</article>
<article class="card">
<h3>Contracts and legal work</h3>
<p>Agreements are signed online and kept as signed PDFs. We are adding legal advice and consultations with our lawyers; write to us if you need them now.</p>
</article>
</div>
</section>
<section class="band" id="how" aria-labelledby="how-h">
<div class="wrap">
<h2 id="how-h">How it works</h2>
<ol class="steps">
<li><b>Write to us.</b> Tell us who you are, your visa now and what you need. We answer with what it takes, the documents and the cost.</li>
<li><b>Open your link.</b> You get a personal link. You read and sign our agreement first, then enter your passport with your phone's camera, your address and your documents.</li>
<li><b>We keep the dates.</b> From your record we work out each deadline, prepare the forms and copies for the next one, and tell you when to come.</li>
</ol>
</div>
</section>
<section class="wrap split" aria-labelledby="data-h">
<div>
<h2 id="data-h">Your data</h2>
<p>Passports and records stay on B4L's own servers. Documents are encrypted before they are stored, and every view and change of a record is logged with the name of the person who made it. Only our staff sign in.</p>
</div>
<div id="contact">
<h2>Contact</h2>
<p>Email <a href="mailto:{{ contact }}">{{ contact }}</a>, and tell us what you need and by when.</p>
<p class="muted">Lanna Desk is a service of B4L (<a href="https://buildfor.life">buildfor.life</a>) in Chiang Mai.</p>
</div>
</section>
</main>
<footer class="foot">
<div class="wrap bar">
<img src="/static/brand/lannadesk-mark.svg?v={{ v }}" alt="" width="28" height="28">
<span>Lanna Desk, Chiang Mai</span>
<a href="{{ home }}">Staff sign-in</a>
</div>
</footer>
</body>
</html>
+1
View File
@@ -4,6 +4,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="noindex,nofollow">
{% if refresh %}<meta http-equiv="refresh" content="0;url={{ refresh }}">{% endif %}
<title>{{ title }} · Lanna Desk</title>
<script src="/static/theme-init.js?v={{ v }}"></script>
<link rel="icon" href="/static/favicon.svg?v={{ v }}" type="image/svg+xml">