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

+259
View File
@@ -0,0 +1,259 @@
/* lannadesk.com's public page: light, with the navy and gold of the app.
Only the landing page loads this file; the back office keeps app.css. */
:root {
--navy: #071323;
--navy2: #0d2240;
--gold: #f5c000;
--gold-ink: #8a6700;
--ink: #1b2533;
--mute: #566273;
--line: #e3e7ee;
--paper: #f7f8fb;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
color: var(--ink);
background: #ffffff;
font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", sans-serif;
}
a {
color: var(--navy2);
}
.wrap {
max-width: 1080px;
margin: 0 auto;
padding-right: 24px;
padding-left: 24px;
}
.bar {
display: flex;
align-items: center;
gap: 18px;
}
/* the navy header with the logo, the links and the first lines */
.top {
background: radial-gradient(1200px 500px at 85% -10%, #163566 0%, var(--navy) 60%);
color: #e8edf5;
}
.top .bar {
justify-content: space-between;
padding-top: 22px;
padding-bottom: 22px;
}
.logo img {
display: block;
height: 44px;
width: auto;
}
.links {
display: flex;
align-items: center;
gap: 22px;
font-size: 15px;
}
.links a {
color: #c9d3e2;
text-decoration: none;
}
.links a:hover {
color: #ffffff;
}
.links .staff {
padding: 7px 14px;
border: 1px solid rgba(245, 192, 0, 0.55);
border-radius: 8px;
color: var(--gold);
}
.links .staff:hover {
background: rgba(245, 192, 0, 0.1);
color: var(--gold);
}
.hero {
padding-top: 64px;
padding-bottom: 88px;
}
.kicker {
margin: 0 0 14px;
color: var(--gold);
font-size: 13px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
}
h1 {
max-width: 760px;
text-wrap: balance;
margin: 0;
color: #ffffff;
font-size: clamp(32px, 5vw, 52px);
line-height: 1.12;
letter-spacing: -0.01em;
}
.lead {
max-width: 700px;
margin: 22px 0 0;
color: #c9d3e2;
font-size: 19px;
}
.cta {
margin: 34px 0 0;
}
.btn {
display: inline-block;
padding: 13px 22px;
border-radius: 10px;
background: var(--gold);
color: var(--navy);
font-weight: 700;
text-decoration: none;
}
.btn:hover {
background: #ffd23d;
}
/* the sections */
main section {
padding-top: 72px;
padding-bottom: 72px;
}
h2 {
margin: 0 0 28px;
color: var(--navy);
font-size: 30px;
line-height: 1.2;
}
h3 {
margin: 0 0 8px;
color: var(--navy);
font-size: 19px;
}
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 18px;
}
.card {
padding: 24px;
border: 1px solid var(--line);
border-top: 3px solid var(--gold);
border-radius: 12px;
background: #ffffff;
}
.card p {
margin: 0;
color: var(--mute);
font-size: 16px;
}
.band {
background: var(--paper);
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.steps {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 28px;
margin: 0;
padding: 0;
list-style: none;
counter-reset: step;
}
.steps li {
position: relative;
padding-top: 52px;
color: var(--mute);
font-size: 16px;
counter-increment: step;
}
.steps li::before {
content: counter(step);
position: absolute;
top: 0;
left: 0;
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--navy);
color: var(--gold);
font-weight: 800;
line-height: 38px;
text-align: center;
}
.steps b {
display: block;
margin-bottom: 4px;
color: var(--navy);
font-size: 18px;
}
.split {
display: grid;
grid-template-columns: 1.3fr 1fr;
gap: 56px;
}
.split p {
margin: 0 0 12px;
}
.muted {
color: var(--mute);
font-size: 15px;
}
.foot {
background: var(--navy);
color: #9ba8ba;
font-size: 14px;
}
.foot .bar {
padding-top: 22px;
padding-bottom: 22px;
}
.foot a {
margin-left: auto;
color: var(--gold);
}
@media (max-width: 860px) {
.grid,
.steps {
grid-template-columns: 1fr 1fr;
}
.split {
grid-template-columns: 1fr;
gap: 8px;
}
}
@media (max-width: 620px) {
body {
font-size: 16px;
}
.links a:not(.staff) {
display: none;
}
.logo img {
height: 36px;
}
.hero {
padding-top: 36px;
padding-bottom: 56px;
}
.lead {
font-size: 17px;
}
.grid,
.steps {
grid-template-columns: 1fr;
}
main section {
padding-top: 48px;
padding-bottom: 48px;
}
h2 {
font-size: 25px;
}
}