Skip to content

Add public landing page and consolidate brand identity - #13

Merged
prathamkashyap merged 1 commit into
mainfrom
feat/public-landing
Oct 4, 2026
Merged

prathamkashyap merged 1 commit into
mainfrom
feat/public-landing

Conversation

@prathamkashyap

Copy link
Copy Markdown
Owner

The domain root was the protected dashboard, so the product had no public face at all —
a first-time visitor was redirected straight to the login form. This adds one, and fixes
the brand inconsistencies that had to be settled before writing any public narrative.

No behaviour, data model or API change. README and KNOWN_LIMITATIONS.md are deliberately
untouched — they come after this, describing the finished public product.

1. Brand identity was inconsistent in three places

Not merely duplicated — actually in conflict:

Location Name Tagline Tile
AppSidebar "Athenaeum" "Intelligent Learning" bg-gradient-brand
Auth desktop "AthenaeumAI" "Intelligent Learning OS" bg-accent/15 + border
Auth mobile "AthenaeumAI" "Learning OS" bg-accent/15, no shadow
index.html "Athenaeum AI" — —

Three names, three taglines, and the logo changed appearance between the app and the login
screen
. A landing page would have made it four.

src/components/BrandLockup.tsx now owns the mark, the wordmark, the full name and the tagline
as exported constants, so the identity is a one-line edit rather than a scavenger hunt. Canonical:
wordmark Athenaeum, full name Athenaeum AI, tagline Intelligent Learning System. The
gradient tile is now used everywhere — it was already dominant (sidebar, FAB, every primary CTA),
so the auth screen's muted variant was the outlier. Dashboard's hero badge was a fourth hardcoded
tagline and now reads BRAND.tagline too.

src/lib/landingCopy.ts holds all public copy as data, so claims are testable without rendering.

2. Three correctness fixes found on the way

  • placeholder="Pratham Kashyap" in the signup form (Auth.tsx) — real personal data shipped
    as a UI default. Now "Ada Lovelace".
  • Auth loading flash — Auth checked isAuthenticated without consulting isLoading, unlike
    ProtectedRoute. On refresh with a stored token the whole login form painted for a frame before
    redirecting. It now mirrors ProtectedRoute's guard.
  • NotFound used bg-muted / text-primary (ignoring the light/dark tokens entirely) and a raw
    <a href="/"> that discarded the router and forced a full document reload. Now themed, with a
    client-side <Link>.

3. Routing

/            public landing          (Landing redirects a signed-in member to /dashboard)
/dashboard   authenticated dashboard (was Index.tsx at /, renamed to match)
/auth        public                  (unchanged)

/auth stays public, and / is a sibling of it rather than something ProtectedRoute
special-cases. Landing handles its own redirect, checking isLoading first so a refresh cannot
flash the marketing page at someone already signed in.

Cheap in practice: exactly one hardcoded / link existed (NotFound), and E2E only ever navigated
to /auth and /tutor. Index.tsx → Dashboard.tsx so the filename matches the route.
Auth's post-signup default moved from / to /dashboard — otherwise a new member would sign in,
land on the marketing page and get bounced straight back out.

4. The page

Hero → five-stage loop → capabilities → under the hood → inside the workspace → verification →
what it does and does not do → FAQ → footer.

Structure borrowed from Libris; nothing visual. Athenaeum's own Aurora background, Lucide icons,
existing type scale, no emoji anywhere. Reuses AuroraBackground as-is — it is already prop-less,
aria-hidden and honours prefers-reduced-motion.

Two deliberate choices:

  • The AI-boundary section. The Profile page shows nothing until an achievement is earned;
    a marketing page that outran that discipline would undo it. Each capability is paired with an
    explicit limit — the model writes questions, it does not grade you; mastery is computed from
    stored attempts, not predicted; badges come from recorded events, never inferred.
  • Surface names match the sidebar exactly. "Practice", "Review", "Assessments" — nothing is
    renamed between the landing page and the product.

5. SEO

index.html said "AI-powered quiz generation platform", describing the feature and none of the loop.
Rewritten around the actual differentiator, plus canonical, og:url, og:site_name. Added
public/sitemap.xml listing only / — every other route redirects to /auth, so advertising it
would offer crawlers an empty page.

Also fixed: twitter:card was summary_large_image with no og:image anywhere, asking for a
large card the page cannot supply. Now summary, to be restored when a real social image ships.

Two bugs I introduced and caught

A nested <a>. A string replace matched the header's BrandLockup instead of the footer's
(12-space indentation is a substring of 14-space), producing <a> inside <a> — invalid HTML that
browsers silently break. Nothing caught it; container.querySelectorAll("a a") now asserts it stays
at zero.

A stale public number. PROOF.frontend was written as 316, then this branch's own new tests
pushed the real count to 347 — so the page would have shipped a wrong figure in the very commit that
made it wrong. All four values are now verified against actual runs.

PR #8's tests caught this refactor too

branding.test.tsx and sidebarProportions.test.ts pinned inline className strings that moved into
BrandLockup. Same coupling as last time, and it is the reason brand drift went unnoticed: the
tests described the copies, not the identity. Rewritten to assert the single source, which is
strictly stronger — one place to be wrong instead of three.

Tests — 61 new

brandAndRouting.test.tsx (31) and landingPage.test.tsx (30): single brand definition and no
chrome file re-hardcoding it; both auth breakpoints share one component; no personal data as a
default; loading guards ordered before the redirect; / public and /dashboard protected; landing
redirects a signed-in member; all five stages render with their backing reference; every capability
has a does/does-not pair; no model is ever named (same rule the dashboard follows); no emoji;
exactly one h1; a skip link; accessible accordion; no nested anchors.

Check Before After
Frontend 316 / 25 347 / 27
Backend unit / integration / E2E 942 / 101 / 26 unchanged
typecheck / build / lint 0 / 0 / 0 0 / 0 / 0

Needs a human eye: the page has never been rendered visually, and summary social cards should
be confirmed once the domain resolves.

@prathamkashyap
prathamkashyap merged commit 5cae87f into main Oct 4, 2026
3 checks passed
@prathamkashyap
prathamkashyap deleted the feat/public-landing branch October 4, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant